/** Return the scope containing name */ public AttributeScope getAttributeScope(String name) { AttributeScope scope = getLocalAttributeScope(name); if ( scope!=null ) { return scope; } if ( ruleScope!=null && ruleScope.getAttribute(name)!=null ) { scope = ruleScope; } return scope; }
/** Return the scope containing name */ public AttributeScope getAttributeScope(String name) { AttributeScope scope = getLocalAttributeScope(name); if ( scope!=null ) { return scope; } if ( ruleScope!=null && ruleScope.getAttribute(name)!=null ) { scope = ruleScope; } return scope; }
/** Return the scope containing name */ public AttributeScope getAttributeScope(String name) { AttributeScope scope = getLocalAttributeScope(name); if ( scope!=null ) { return scope; } if ( ruleScope!=null && ruleScope.getAttribute(name)!=null ) { scope = ruleScope; } return scope; }
/** Return the scope containing name */ public AttributeScope getAttributeScope(String name) { AttributeScope scope = getLocalAttributeScope(name); if ( scope!=null ) { return scope; } if ( ruleScope!=null && ruleScope.getAttribute(name)!=null ) { scope = ruleScope; } return scope; }
/** For $rulelabel.name, return the Attribute found for name. It * will be a predefined property or a return value. */ public Attribute getRuleLabelAttribute(String ruleName, String attrName) { Rule r = grammar.getRule(ruleName); AttributeScope scope = r.getLocalAttributeScope(attrName); if ( scope!=null && !scope.isParameterScope ) { return scope.getAttribute(attrName); } return null; }
/** For $rulelabel.name, return the Attribute found for name. It * will be a predefined property or a return value. */ public Attribute getRuleLabelAttribute(String ruleName, String attrName) { Rule r = grammar.getRule(ruleName); AttributeScope scope = r.getLocalAttributeScope(attrName); if ( scope!=null && !scope.isParameterScope ) { return scope.getAttribute(attrName); } return null; }
/** For $rulelabel.name, return the Attribute found for name. It * will be a predefined property or a return value. */ public Attribute getRuleLabelAttribute(String ruleName, String attrName) { Rule r = grammar.getRule(ruleName); AttributeScope scope = r.getLocalAttributeScope(attrName); if ( scope!=null && !scope.isParameterScope ) { return scope.getAttribute(attrName); } return null; }
mID(); if (state.failed) return ; ID1 = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, ID1Start97, getCharIndex()-1); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "Y", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null)); if ( scope!=null && (scope.isPredefinedRuleScope||scope.isPredefinedLexerRuleScope) )
ID1.setCharPositionInLine(ID1StartCharPos104); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "Y", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null)); if ( scope!=null && (scope.isPredefinedRuleScope||scope.isPredefinedLexerRuleScope) )
ID1.setCharPositionInLine(ID1StartCharPos104); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "Y", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID1!=null?ID1.getText():null)); if ( scope!=null && (scope.isPredefinedRuleScope||scope.isPredefinedLexerRuleScope) )
scope = enclosingRule.getLocalAttributeScope((y!=null?y.getText():null)); Rule refdRule = grammar.getRule(refdRuleName); if ( refdRule!=null ) { scope = refdRule.getLocalAttributeScope((y!=null?y.getText():null)); Rule refdRule = grammar.getRule(refdRuleName); if ( refdRule!=null ) { scope = refdRule.getLocalAttributeScope((y!=null?y.getText():null));
&& enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null))!=null && !enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null)).isPredefinedLexerRuleScope)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "SET_LOCAL_ATTR", "enclosingRule!=null\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& enclosingRule.getLocalAttributeScope($ID.text)!=null\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !enclosingRule.getLocalAttributeScope($ID.text).isPredefinedLexerRuleScope"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null)); if ( scope.isPredefinedRuleScope ) { if ((ID4!=null?ID4.getText():null).equals("tree") || (ID4!=null?ID4.getText():null).equals("st")) {
&& enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null))!=null && !enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null)).isPredefinedLexerRuleScope)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "SET_LOCAL_ATTR", "enclosingRule!=null\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& enclosingRule.getLocalAttributeScope($ID.text)!=null\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& !enclosingRule.getLocalAttributeScope($ID.text).isPredefinedLexerRuleScope"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID4!=null?ID4.getText():null)); if ( scope.isPredefinedRuleScope ) { if ((ID4!=null?ID4.getText():null).equals("tree") || (ID4!=null?ID4.getText():null).equals("st")) {
mID(); if (state.failed) return ; ID5 = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, ID5Start421, getCharIndex()-1); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "LOCAL_ATTR", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null)); if ( scope.isPredefinedRuleScope ) { st = template("rulePropertyRef_"+(ID5!=null?ID5.getText():null));
ID5.setCharPositionInLine(ID5StartCharPos428); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "LOCAL_ATTR", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null)); if ( scope.isPredefinedRuleScope ) { st = template("rulePropertyRef_"+(ID5!=null?ID5.getText():null));
ID5.setCharPositionInLine(ID5StartCharPos428); if ( !((enclosingRule!=null && enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "LOCAL_ATTR", "enclosingRule!=null && enclosingRule.getLocalAttributeScope($ID.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((ID5!=null?ID5.getText():null)); if ( scope.isPredefinedRuleScope ) { st = template("rulePropertyRef_"+(ID5!=null?ID5.getText():null));
if ( !((enclosingRule!=null && (x!=null?x.getText():null).equals(enclosingRule.name) && enclosingRule.getLocalAttributeScope((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "SET_ENCLOSING_RULE_SCOPE_ATTR", "enclosingRule!=null &&\n\t $x.text.equals(enclosingRule.name) &&\n\t enclosingRule.getLocalAttributeScope($y.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((y!=null?y.getText():null)); if ( scope.isPredefinedRuleScope ) { if ( (y!=null?y.getText():null).equals("st") || (y!=null?y.getText():null).equals("tree") ) {
if ( !((enclosingRule!=null && (x!=null?x.getText():null).equals(enclosingRule.name) && enclosingRule.getLocalAttributeScope((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "ENCLOSING_RULE_SCOPE_ATTR", "enclosingRule!=null &&\n\t $x.text.equals(enclosingRule.name) &&\n\t enclosingRule.getLocalAttributeScope($y.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((y!=null?y.getText():null)); if ( scope.isPredefinedRuleScope ) { st = template("rulePropertyRef_"+(y!=null?y.getText():null));
if ( !((enclosingRule!=null && (x!=null?x.getText():null).equals(enclosingRule.name) && enclosingRule.getLocalAttributeScope((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "SET_ENCLOSING_RULE_SCOPE_ATTR", "enclosingRule!=null &&\n\t $x.text.equals(enclosingRule.name) &&\n\t enclosingRule.getLocalAttributeScope($y.text)!=null"); AttributeScope scope = enclosingRule.getLocalAttributeScope((y!=null?y.getText():null)); if ( scope.isPredefinedRuleScope ) { if ( (y!=null?y.getText():null).equals("st") || (y!=null?y.getText():null).equals("tree") ) {
AttributeScope scope = refdRule.getLocalAttributeScope((y!=null?y.getText():null)); if ( scope.isPredefinedRuleScope ) { st = template("ruleLabelPropertyRef_"+(y!=null?y.getText():null));