Examples of ASTPair


Examples of antlr.ASTPair

  }
 
  public final void modifiersInternal() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST modifiersInternal_AST = null;
    int seenDef = 0;
   
    {
    int _cnt79=0;
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationArguments() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationArguments_AST = null;
    AST v_AST = null;
   
    if ((_tokenSet_47.member(LA(1))) && (_tokenSet_48.member(LA(2)))) {
      annotationMemberValueInitializer();
      v_AST = (AST)returnAST;
      astFactory.addASTChild(currentAST, returnAST);
      if ( inputState.guessing==0 ) {
        annotationArguments_AST = (AST)currentAST.root;
        Token itkn = new Token(IDENT, "value");
        AST i;
        i = (AST)astFactory.make( (new ASTArray(1)).add(create(IDENT,"value",itkn,itkn)));
        annotationArguments_AST = (AST)astFactory.make( (new ASTArray(3)).add(create(ANNOTATION_MEMBER_VALUE_PAIR,"ANNOTATION_MEMBER_VALUE_PAIR",LT(1),LT(1))).add(i).add(v_AST));
        currentAST.root = annotationArguments_AST;
        currentAST.child = annotationArguments_AST!=null &&annotationArguments_AST.getFirstChild()!=null ?
          annotationArguments_AST.getFirstChild() : annotationArguments_AST;
        currentAST.advanceChildToEnd();
      }
      annotationArguments_AST = (AST)currentAST.root;
    }
    else if ((_tokenSet_49.member(LA(1))) && (LA(2)==ASSIGN)) {
      annotationMemberValuePairs();
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationsInternal() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationsInternal_AST = null;
   
    {
    _loop89:
    do {
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationMemberValueInitializer() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationMemberValueInitializer_AST = null;
   
    switch ( LA(1)) {
    case LBRACK:
    case IDENT:
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationMemberValuePairs() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationMemberValuePairs_AST = null;
   
    annotationMemberValuePair();
    astFactory.addASTChild(currentAST, returnAST);
    {
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationMemberValuePair() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationMemberValuePair_AST = null;
    AST i_AST = null;
    AST v_AST = null;
    Token first = LT(1);
   
    annotationIdent();
    i_AST = (AST)returnAST;
    match(ASSIGN);
    nls();
    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;
  }
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationIdent() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationIdent_AST = null;
   
    switch ( LA(1)) {
    case IDENT:
    {
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void keywordPropertyNames() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST keywordPropertyNames_AST = null;
   
    {
    switch ( LA(1)) {
    case LITERAL_as:
View Full Code Here

Examples of antlr.ASTPair

  public final void conditionalExpression(
    int lc_stmt
  ) throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST conditionalExpression_AST = null;
   
    logicalOrExpression(lc_stmt);
    astFactory.addASTChild(currentAST, returnAST);
    {
View Full Code Here

Examples of antlr.ASTPair

  }
 
  public final void annotationMemberArrayValueInitializer() throws RecognitionException, TokenStreamException {
   
    returnAST = null;
    ASTPair currentAST = new ASTPair();
    AST annotationMemberArrayValueInitializer_AST = null;
   
    switch ( LA(1)) {
    case LBRACK:
    case IDENT:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.