mID(); if (state.failed) return ; y = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, yStart503, getCharIndex()-1); if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { StringTemplate st = template("scopeAttributeRef");
public final void mISOLATED_DYNAMIC_SCOPE() throws RecognitionException { try { int _type = ISOLATED_DYNAMIC_SCOPE; int _channel = DEFAULT_TOKEN_CHANNEL; CommonToken ID6=null; // org/antlr/grammar/v3/ActionTranslator.g:651:2: ( '$' ID {...}?) // org/antlr/grammar/v3/ActionTranslator.g:651:4: '$' ID {...}? { match('$'); if (state.failed) return ; int ID6Start662 = getCharIndex(); mID(); if (state.failed) return ; ID6 = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, ID6Start662, getCharIndex()-1); if ( !((resolveDynamicScope((ID6!=null?ID6.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "ISOLATED_DYNAMIC_SCOPE", "resolveDynamicScope($ID.text)!=null"); } if ( state.backtracking==1 ) { StringTemplate st = template("isolatedDynamicScopeRef"); st.setAttribute("scope", (ID6!=null?ID6.getText():null)); } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "ISOLATED_DYNAMIC_SCOPE"
y.setCharPositionInLine(yStartCharPos510); if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { ST st = template("scopeAttributeRef");
expr = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, exprStart462, getCharIndex()-1); match(';'); if (state.failed) return ; if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return ;} throw new FailedPredicateException(input, "SET_DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { StringTemplate st = template("scopeSetAttributeRef");
y.setCharPositionInLine(yStartCharPos510); if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { ST st = template("scopeAttributeRef");
ID6.setCharPositionInLine(ID6StartCharPos669); if ( !((resolveDynamicScope((ID6!=null?ID6.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "ISOLATED_DYNAMIC_SCOPE", "resolveDynamicScope($ID.text)!=null");
ID6.setCharPositionInLine(ID6StartCharPos669); if ( !((resolveDynamicScope((ID6!=null?ID6.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "ISOLATED_DYNAMIC_SCOPE", "resolveDynamicScope($ID.text)!=null");
if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "SET_DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { ST st = template("scopeSetAttributeRef");
if ( !((resolveDynamicScope((x!=null?x.getText():null))!=null && resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))!=null)) ) { if (state.backtracking>0) {state.failed=true; return;} throw new FailedPredicateException(input, "SET_DYNAMIC_SCOPE_ATTR", "resolveDynamicScope($x.text)!=null &&\n\t\t\t\t\t\t resolveDynamicScope($x.text).getAttribute($y.text)!=null"); AttributeScope scope = resolveDynamicScope((x!=null?x.getText():null)); if ( scope!=null ) { ST st = template("scopeSetAttributeRef");
st.setAttribute("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.setAttribute("index", (expr!=null?expr.getText():null));
st.setAttribute("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.setAttribute("negIndex", (expr!=null?expr.getText():null));
ST st = template("scopeAttributeRef"); st.add("scope", (x!=null?x.getText():null)); st.add("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.add("index", (expr!=null?expr.getText():null));
ST st = template("scopeAttributeRef"); st.add("scope", (x!=null?x.getText():null)); st.add("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.add("negIndex", (expr!=null?expr.getText():null));
ST st = template("scopeAttributeRef"); st.add("scope", (x!=null?x.getText():null)); st.add("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.add("negIndex", (expr!=null?expr.getText():null));
ST st = template("scopeAttributeRef"); st.add("scope", (x!=null?x.getText():null)); st.add("attr", resolveDynamicScope((x!=null?x.getText():null)).getAttribute((y!=null?y.getText():null))); st.add("index", (expr!=null?expr.getText():null));