public final void traditionalForClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST traditionalForClause_AST = null; forInit(); astFactory.addASTChild(currentAST, returnAST); match(SEMI); forCond(); astFactory.addASTChild(currentAST, returnAST); match(SEMI); forIter(); astFactory.addASTChild(currentAST, returnAST); traditionalForClause_AST = (AST)currentAST.root; returnAST = traditionalForClause_AST; }
public final void throwsClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST throwsClause_AST = null; AST tmp121_AST = null; tmp121_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp121_AST); match(LITERAL_throws); identifier(); astFactory.addASTChild(currentAST, returnAST); { _loop173: do { if ((LA(1)==COMMA)) { match(COMMA); identifier(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop173; } } while (true); } throwsClause_AST = (AST)currentAST.root; returnAST = throwsClause_AST; }
public final void finallyClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST finallyClause_AST = null; AST tmp188_AST = null; tmp188_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp188_AST); match(LITERAL_finally); compoundStatement(); astFactory.addASTChild(currentAST, returnAST); finallyClause_AST = (AST)currentAST.root; returnAST = finallyClause_AST; }
public final void handler() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST handler_AST = null; AST pd_AST = null; AST handlerCs_AST = null; Token first = LT(1); match(LITERAL_catch); match(LPAREN); multicatch(); pd_AST = (AST)returnAST; match(RPAREN); compoundStatement(); handlerCs_AST = (AST)returnAST; if ( inputState.guessing==0 ) { handler_AST = (AST)currentAST.root; handler_AST = (AST)astFactory.make( (new ASTArray(3)).add(create(LITERAL_catch,"catch",first,LT(1))).add(pd_AST).add(handlerCs_AST)); currentAST.root = handler_AST; currentAST.child = handler_AST!=null &&handler_AST.getFirstChild()!=null ? handler_AST.getFirstChild() : handler_AST; currentAST.advanceChildToEnd(); } handler_AST = (AST)currentAST.root; returnAST = handler_AST; }
public final void typeArgumentsOrDiamond() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST typeArgumentsOrDiamond_AST = null; if ((LA(1)==LT) && (LA(2)==GT)) { match(LT); match(GT); typeArgumentsOrDiamond_AST = (AST)currentAST.root; } else if ((LA(1)==LT) && (_tokenSet_5.member(LA(2)))) { typeArguments(); astFactory.addASTChild(currentAST, returnAST); typeArgumentsOrDiamond_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = typeArgumentsOrDiamond_AST; }
public final void anntotationMemberValuePairs() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST anntotationMemberValuePairs_AST = null; annotationMemberValuePair(); astFactory.addASTChild(currentAST, returnAST); { _loop67: do { if ((LA(1)==COMMA)) { match(COMMA); annotationMemberValuePair(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop67; } } while (true); } anntotationMemberValuePairs_AST = (AST)currentAST.root; returnAST = anntotationMemberValuePairs_AST; }
public final void annotationDefinition( AST modifiers ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST annotationDefinition_AST = null; AST ab_AST = null; Token first = LT(1); AST tmp20_AST = null; tmp20_AST = astFactory.create(LT(1)); match(AT); match(LITERAL_interface); AST tmp22_AST = null; tmp22_AST = astFactory.create(LT(1)); match(IDENT); annotationBlock(); ab_AST = (AST)returnAST; if ( inputState.guessing==0 ) { annotationDefinition_AST = (AST)currentAST.root; annotationDefinition_AST = (AST)astFactory.make( (new ASTArray(4)).add(create(ANNOTATION_DEF,"ANNOTATION_DEF",first,LT(1))).add(modifiers).add(tmp22_AST).add(ab_AST)); currentAST.root = annotationDefinition_AST; currentAST.child = annotationDefinition_AST!=null &&annotationDefinition_AST.getFirstChild()!=null ? annotationDefinition_AST.getFirstChild() : annotationDefinition_AST; currentAST.advanceChildToEnd(); } returnAST = annotationDefinition_AST; }
public final void multicatch_types() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST multicatch_types_AST = null; Token first = LT(1); classOrInterfaceType(false); astFactory.addASTChild(currentAST, returnAST); { _loop234: do { if ((LA(1)==BOR)) { match(BOR); classOrInterfaceType(false); astFactory.addASTChild(currentAST, returnAST); } else { break _loop234; } } while (true); } multicatch_types_AST = (AST)currentAST.root; returnAST = multicatch_types_AST; }
public final void annotationMemberValuePair() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST annotationMemberValuePair_AST = null; Token i = null; AST i_AST = null; AST v_AST = null; Token first = LT(1); i = LT(1); i_AST = astFactory.create(i); match(IDENT); match(ASSIGN); annotationMemberValueInitializer(); v_AST = (AST)returnAST; if ( inputState.guessing==0 ) { annotationMemberValuePair_AST = (AST)currentAST.root; annotationMemberValuePair_AST = (AST)astFactory.make( (new ASTArray(3)).add(create(ANNOTATION_MEMBER_VALUE_PAIR,"ANNOTATION_MEMBER_VALUE_PAIR",first,LT(1))).add(i_AST).add(v_AST)); currentAST.root = annotationMemberValuePair_AST; currentAST.child = annotationMemberValuePair_AST!=null &&annotationMemberValuePair_AST.getFirstChild()!=null ? annotationMemberValuePair_AST.getFirstChild() : annotationMemberValuePair_AST; currentAST.advanceChildToEnd(); } returnAST = annotationMemberValuePair_AST; }
public final void inclusiveOrExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST inclusiveOrExpression_AST = null; exclusiveOrExpression(); astFactory.addASTChild(currentAST, returnAST); { _loop255: do { if ((LA(1)==BOR)) { AST tmp205_AST = null; tmp205_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp205_AST); match(BOR); exclusiveOrExpression(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop255; } } while (true); } inclusiveOrExpression_AST = (AST)currentAST.root; returnAST = inclusiveOrExpression_AST; }
public final void andExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST andExpression_AST = null; equalityExpression(); astFactory.addASTChild(currentAST, returnAST); { _loop261: do { if ((LA(1)==BAND)) { AST tmp207_AST = null; tmp207_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp207_AST); match(BAND); equalityExpression(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop261; } } while (true); } andExpression_AST = (AST)currentAST.root; returnAST = andExpression_AST; }
public final void enumDefinition( AST modifiers ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST enumDefinition_AST = null; AST ic_AST = null; AST eb_AST = null; Token first = LT(1); match(LITERAL_enum); AST tmp19_AST = null; tmp19_AST = astFactory.create(LT(1)); match(IDENT); implementsClause(); ic_AST = (AST)returnAST; enumBlock(); eb_AST = (AST)returnAST; if ( inputState.guessing==0 ) { enumDefinition_AST = (AST)currentAST.root; enumDefinition_AST = (AST)astFactory.make( (new ASTArray(5)).add(create(ENUM_DEF,"ENUM_DEF",first,LT(1))).add(modifiers).add(tmp19_AST).add(ic_AST).add(eb_AST)); currentAST.root = enumDefinition_AST; currentAST.child = enumDefinition_AST!=null &&enumDefinition_AST.getFirstChild()!=null ? enumDefinition_AST.getFirstChild() : enumDefinition_AST; currentAST.advanceChildToEnd(); } returnAST = enumDefinition_AST; }
public final void logicalAndExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST logicalAndExpression_AST = null; inclusiveOrExpression(); astFactory.addASTChild(currentAST, returnAST); { _loop252: do { if ((LA(1)==LAND)) { AST tmp204_AST = null; tmp204_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp204_AST); match(LAND); inclusiveOrExpression(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop252; } } while (true); } logicalAndExpression_AST = (AST)currentAST.root; returnAST = logicalAndExpression_AST; }
public final void exclusiveOrExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST exclusiveOrExpression_AST = null; andExpression(); astFactory.addASTChild(currentAST, returnAST); { _loop258: do { if ((LA(1)==BXOR)) { AST tmp206_AST = null; tmp206_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp206_AST); match(BXOR); andExpression(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop258; } } while (true); } exclusiveOrExpression_AST = (AST)currentAST.root; returnAST = exclusiveOrExpression_AST; }
public final void logicalOrExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST logicalOrExpression_AST = null; logicalAndExpression(); astFactory.addASTChild(currentAST, returnAST); { _loop249: do { if ((LA(1)==LOR)) { AST tmp203_AST = null; tmp203_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp203_AST); match(LOR); logicalAndExpression(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop249; } } while (true); } logicalOrExpression_AST = (AST)currentAST.root; returnAST = logicalOrExpression_AST; }
tmp170_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp170_AST); match(ASSIGN); initializer(); astFactory.addASTChild(currentAST, returnAST);
public final void variableDefinitions( AST mods, AST t ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST variableDefinitions_AST = null; variableDeclarator(getASTFactory().dupTree(mods), getASTFactory().dupTree(t)); astFactory.addASTChild(currentAST, returnAST); { _loop156: do { if ((LA(1)==COMMA)) { match(COMMA); variableDeclarator(getASTFactory().dupTree(mods), getASTFactory().dupTree(t)); astFactory.addASTChild(currentAST, returnAST); } else { break _loop156; } } while (true); } variableDefinitions_AST = (AST)currentAST.root; returnAST = variableDefinitions_AST; }
public final void forEachClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST forEachClause_AST = null; AST p_AST = null; Token first = LT(1); parameterDeclaration(); p_AST = (AST)returnAST; astFactory.addASTChild(currentAST, returnAST); match(COLON); expression(); astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { forEachClause_AST = (AST)currentAST.root; forEachClause_AST = (AST)astFactory.make( (new ASTArray(2)).add(create(FOR_EACH_CLAUSE,"FOR_EACH_CLAUSE",first,LT(1))).add(forEachClause_AST)); currentAST.root = forEachClause_AST; currentAST.child = forEachClause_AST!=null &&forEachClause_AST.getFirstChild()!=null ? forEachClause_AST.getFirstChild() : forEachClause_AST; currentAST.advanceChildToEnd(); } forEachClause_AST = (AST)currentAST.root; returnAST = forEachClause_AST; }
do { if ((LA(1)==COMMA)) { match(COMMA); expression(); astFactory.addASTChild(currentAST, returnAST);