EDU.purdue.jtb.visitor
Class GJNoArguDepthFirst<R>

java.lang.Object
  extended by EDU.purdue.jtb.visitor.GJNoArguDepthFirst<R>
All Implemented Interfaces:
GJNoArguVisitor<R>

public class GJNoArguDepthFirst<R>
extends java.lang.Object
implements GJNoArguVisitor<R>

Provides default methods which visit each node in the tree in depth-first order. Your visitors may extend this class.


Constructor Summary
GJNoArguDepthFirst()
           
 
Method Summary
 R visit(AdditiveExpression n)
          f0 -> MultiplicativeExpression() f1 -> ( ( "+" | "-" ) MultiplicativeExpression() )*
 R visit(AllocationExpression n)
          f0 -> "new" PrimitiveType() ArrayDimensions() [ ArrayInitializer() ] | "new" Name() ( ArrayDimensions() [ ArrayInitializer() ] | Arguments() [ ClassBody() ] )
 R visit(AndExpression n)
          f0 -> EqualityExpression() f1 -> ( "&" EqualityExpression() )*
 R visit(ArgumentList n)
          f0 -> Expression() f1 -> ( "," Expression() )*
 R visit(Arguments n)
          f0 -> "(" f1 -> [ ArgumentList() ] f2 -> ")"
 R visit(ArrayDimensions n)
          f0 -> ( "[" Expression() "]" )+ f1 -> ( "[" "]" )*
 R visit(ArrayInitializer n)
          f0 -> "{" f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ] f2 -> [ "," ] f3 -> "}"
 R visit(Assignment n)
          f0 -> PrimaryExpression() f1 -> AssignmentOperator() f2 -> Expression()
 R visit(AssignmentOperator n)
          f0 -> "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|="
 R visit(Block n)
          f0 -> "{" f1 -> ( BlockStatement() )* f2 -> "}"
 R visit(BlockStatement n)
          f0 -> LocalVariableDeclaration() ";" | Statement() | UnmodifiedClassDeclaration()
 R visit(BNFProduction n)
          f0 -> ResultType() f1 -> f2 -> FormalParameters() f3 -> f4 -> "{" f5 -> ( BlockStatement() )* f6 -> "}" f7 -> f8 -> ExpansionChoices() f9 ->
 R visit(BooleanLiteral n)
          f0 -> "true" | "false"
 R visit(BreakStatement n)
          f0 -> "break" f1 -> [ ] f2 -> ";"
 R visit(CastExpression n)
          f0 -> "(" Type() ")" UnaryExpression() | "(" Type() ")" UnaryExpressionNotPlusMinus()
 R visit(CastLookahead n)
          f0 -> "(" PrimitiveType() | "(" Name() "[" "]" | "(" Name() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() )
 R visit(CharacterDescriptor n)
          f0 -> f1 -> [ ]
 R visit(CharacterList n)
          f0 -> [ ] f1 -> f2 -> [ CharacterDescriptor() ( CharacterDescriptor() )* ] f3 ->
 R visit(ClassBody n)
          f0 -> "{" f1 -> ( ClassBodyDeclaration() )* f2 -> "}"
 R visit(ClassBodyDeclaration n)
          f0 -> Initializer() | NestedClassDeclaration() | NestedInterfaceDeclaration() | ConstructorDeclaration() | MethodDeclaration() | FieldDeclaration()
 R visit(ClassDeclaration n)
          f0 -> ( "abstract" | "final" | "public" )* f1 -> UnmodifiedClassDeclaration()
 R visit(CompilationUnit n)
          f0 -> [ PackageDeclaration() ] f1 -> ( ImportDeclaration() )* f2 -> ( TypeDeclaration() )*
 R visit(ComplexRegularExpression n)
          f0 -> ( ComplexRegularExpressionUnit() )*
 R visit(ComplexRegularExpressionChoices n)
          f0 -> ComplexRegularExpression() f1 -> ( ComplexRegularExpression() )*
 R visit(ComplexRegularExpressionUnit n)
          f0 -> | | CharacterList() | ComplexRegularExpressionChoices() [ | | ]
 R visit(ConditionalAndExpression n)
          f0 -> InclusiveOrExpression() f1 -> ( "&&" InclusiveOrExpression() )*
 R visit(ConditionalExpression n)
          f0 -> ConditionalOrExpression() f1 -> [ "?" Expression() ":" ConditionalExpression() ]
 R visit(ConditionalOrExpression n)
          f0 -> ConditionalAndExpression() f1 -> ( "||" ConditionalAndExpression() )*
 R visit(ConstructorDeclaration n)
          f0 -> [ "public" | "protected" | "private" ] f1 -> f2 -> FormalParameters() f3 -> [ "throws" NameList() ] f4 -> "{" f5 -> [ ExplicitConstructorInvocation() ] f6 -> ( BlockStatement() )* f7 -> "}"
 R visit(ContinueStatement n)
          f0 -> "continue" f1 -> [ ] f2 -> ";"
 R visit(DoStatement n)
          f0 -> "do" f1 -> Statement() f2 -> "while" f3 -> "(" f4 -> Expression() f5 -> ")" f6 -> ";"
 R visit(EmptyStatement n)
          f0 -> ";"
 R visit(EqualityExpression n)
          f0 -> InstanceOfExpression() f1 -> ( ( "==" | "!=" ) InstanceOfExpression() )*
 R visit(ExclusiveOrExpression n)
          f0 -> AndExpression() f1 -> ( "^" AndExpression() )*
 R visit(Expansion n)
          f0 -> ( ExpansionUnit() )*
 R visit(ExpansionChoices n)
          f0 -> Expansion() f1 -> ( Expansion() )*
 R visit(ExpansionUnit n)
          f0 -> LocalLookahead() | Block() | ExpansionChoices() [ | | ] | ExpansionChoices() | [ PrimaryExpression() ] ExpansionUnitTerm()
 R visit(ExpansionUnitTerm n)
          f0 -> RegularExpression() | Arguments()
 R visit(ExplicitConstructorInvocation n)
          f0 -> "this" Arguments() ";" | [ PrimaryExpression() "." ] "super" Arguments() ";"
 R visit(Expression n)
          f0 -> Assignment() | ConditionalExpression()
 R visit(FieldDeclaration n)
          f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )* f1 -> Type() f2 -> VariableDeclarator() f3 -> ( "," VariableDeclarator() )* f4 -> ";"
 R visit(ForInit n)
          f0 -> LocalVariableDeclaration() | StatementExpressionList()
 R visit(FormalParameter n)
          f0 -> [ "final" ] f1 -> Type() f2 -> VariableDeclaratorId()
 R visit(FormalParameters n)
          f0 -> "(" f1 -> [ FormalParameter() ( "," FormalParameter() )* ] f2 -> ")"
 R visit(ForStatement n)
          f0 -> "for" f1 -> "(" f2 -> [ ForInit() ] f3 -> ";" f4 -> [ Expression() ] f5 -> ";" f6 -> [ ForUpdate() ] f7 -> ")" f8 -> Statement()
 R visit(ForUpdate n)
          f0 -> StatementExpressionList()
 R visit(IfStatement n)
          f0 -> "if" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Statement() f5 -> [ "else" Statement() ]
 R visit(ImportDeclaration n)
          f0 -> "import" f1 -> Name() f2 -> [ "." "*" ] f3 -> ";"
 R visit(InclusiveOrExpression n)
          f0 -> ExclusiveOrExpression() f1 -> ( "|" ExclusiveOrExpression() )*
 R visit(Initializer n)
          f0 -> [ "static" ] f1 -> Block()
 R visit(InstanceOfExpression n)
          f0 -> RelationalExpression() f1 -> [ "instanceof" Type() ]
 R visit(InterfaceDeclaration n)
          f0 -> ( "abstract" | "public" )* f1 -> UnmodifiedInterfaceDeclaration()
 R visit(InterfaceMemberDeclaration n)
          f0 -> NestedClassDeclaration() | NestedInterfaceDeclaration() | MethodDeclaration() | FieldDeclaration()
 R visit(JavaCCInput n)
          f0 -> JavaCCOptions() f1 -> f2 -> f3 -> f4 -> f5 -> CompilationUnit() f6 -> f7 -> f8 -> f9 -> f10 -> ( Production() )* f11 ->
 R visit(JavaCCOptions n)
          f0 -> [ ( OptionBinding() )* ]
 R visit(JavaCodeProduction n)
          f0 -> f1 -> ResultType() f2 -> f3 -> FormalParameters() f4 -> Block()
 R visit(LabeledStatement n)
          f0 -> f1 -> ":" f2 -> Statement()
 R visit(LexicalStateList n)
          f0 -> | ( )*
 R visit(Literal n)
          f0 -> | | | | BooleanLiteral() | NullLiteral()
 R visit(LocalLookahead n)
          f0 -> f1 -> f2 -> [ ] f3 -> [ ] f4 -> ExpansionChoices() f5 -> [ ] f6 -> [ Expression() ] f7 ->
 R visit(LocalVariableDeclaration n)
          f0 -> [ "final" ] f1 -> Type() f2 -> VariableDeclarator() f3 -> ( "," VariableDeclarator() )*
 R visit(MethodDeclaration n)
          f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )* f1 -> ResultType() f2 -> MethodDeclarator() f3 -> [ "throws" NameList() ] f4 -> ( Block() | ";" )
 R visit(MethodDeclarationLookahead n)
          f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )* f1 -> ResultType() f2 -> f3 -> "("
 R visit(MethodDeclarator n)
          f0 -> f1 -> FormalParameters() f2 -> ( "[" "]" )*
 R visit(MultiplicativeExpression n)
          f0 -> UnaryExpression() f1 -> ( ( "*" | "/" | "%" ) UnaryExpression() )*
 R visit(Name n)
          f0 -> f1 -> ( "." )*
 R visit(NameList n)
          f0 -> Name() f1 -> ( "," Name() )*
 R visit(NestedClassDeclaration n)
          f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )* f1 -> UnmodifiedClassDeclaration()
 R visit(NestedInterfaceDeclaration n)
          f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )* f1 -> UnmodifiedInterfaceDeclaration()
 R visit(NodeList n)
           
 R visit(NodeListOptional n)
           
 R visit(NodeOptional n)
           
 R visit(NodeSequence n)
           
 R visit(NodeToken n)
           
 R visit(NullLiteral n)
          f0 -> "null"
 R visit(OptionBinding n)
          f0 -> ( | | | ) f1 -> f2 -> ( | BooleanLiteral() | ) f3 ->
 R visit(PackageDeclaration n)
          f0 -> "package" f1 -> Name() f2 -> ";"
 R visit(PostfixExpression n)
          f0 -> PrimaryExpression() f1 -> [ "++" | "--" ]
 R visit(PreDecrementExpression n)
          f0 -> "--" f1 -> PrimaryExpression()
 R visit(PreIncrementExpression n)
          f0 -> "++" f1 -> PrimaryExpression()
 R visit(PrimaryExpression n)
          f0 -> PrimaryPrefix() f1 -> ( PrimarySuffix() )*
 R visit(PrimaryPrefix n)
          f0 -> Literal() | Name() | "this" | "super" "." | "(" Expression() ")" | AllocationExpression()
 R visit(PrimarySuffix n)
          f0 -> "." "this" | "." "class" | "." AllocationExpression() | "[" Expression() "]" | "." | Arguments()
 R visit(PrimitiveType n)
          f0 -> "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"
 R visit(Production n)
          f0 -> JavaCodeProduction() | RegularExprProduction() | BNFProduction() | TokenManagerDecls()
 R visit(RegExprKind n)
          f0 -> | | |
 R visit(RegExprSpec n)
          f0 -> RegularExpression() f1 -> [ Block() ] f2 -> [ ]
 R visit(RegularExpression n)
          f0 -> | [ [ ] ] ComplexRegularExpressionChoices() | |
 R visit(RegularExprProduction n)
          f0 -> [ LexicalStateList() ] f1 -> RegExprKind() f2 -> [ ] f3 -> f4 -> f5 -> RegExprSpec() f6 -> ( RegExprSpec() )* f7 ->
 R visit(RelationalExpression n)
          f0 -> ShiftExpression() f1 -> ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression() )*
 R visit(ResultType n)
          f0 -> "void" | Type()
 R visit(ReturnStatement n)
          f0 -> "return" f1 -> [ Expression() ] f2 -> ";"
 R visit(ShiftExpression n)
          f0 -> AdditiveExpression() f1 -> ( ( "<<" | ">>" | ">>>" ) AdditiveExpression() )*
 R visit(Statement n)
          f0 -> LabeledStatement() | Block() | EmptyStatement() | StatementExpression() ";" | SwitchStatement() | IfStatement() | WhileStatement() | DoStatement() | ForStatement() | BreakStatement() | ContinueStatement() | ReturnStatement() | ThrowStatement() | SynchronizedStatement() | TryStatement()
 R visit(StatementExpression n)
          f0 -> PreIncrementExpression() | PreDecrementExpression() | Assignment() | PostfixExpression()
 R visit(StatementExpressionList n)
          f0 -> StatementExpression() f1 -> ( "," StatementExpression() )*
 R visit(SwitchLabel n)
          f0 -> "case" Expression() ":" | "default" ":"
 R visit(SwitchStatement n)
          f0 -> "switch" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> "{" f5 -> ( SwitchLabel() ( BlockStatement() )* )* f6 -> "}"
 R visit(SynchronizedStatement n)
          f0 -> "synchronized" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Block()
 R visit(ThrowStatement n)
          f0 -> "throw" f1 -> Expression() f2 -> ";"
 R visit(TokenManagerDecls n)
          f0 -> f1 -> f2 -> ClassBody()
 R visit(TryStatement n)
          f0 -> "try" f1 -> Block() f2 -> ( "catch" "(" FormalParameter() ")" Block() )* f3 -> [ "finally" Block() ]
 R visit(Type n)
          f0 -> ( PrimitiveType() | Name() ) f1 -> ( "[" "]" )*
 R visit(TypeDeclaration n)
          f0 -> ClassDeclaration() | InterfaceDeclaration() | ";"
 R visit(UnaryExpression n)
          f0 -> ( "+" | "-" ) UnaryExpression() | PreIncrementExpression() | PreDecrementExpression() | UnaryExpressionNotPlusMinus()
 R visit(UnaryExpressionNotPlusMinus n)
          f0 -> ( "~" | "!" ) UnaryExpression() | CastExpression() | PostfixExpression()
 R visit(UnmodifiedClassDeclaration n)
          f0 -> "class" f1 -> f2 -> [ "extends" Name() ] f3 -> [ "implements" NameList() ] f4 -> ClassBody()
 R visit(UnmodifiedInterfaceDeclaration n)
          f0 -> "interface" f1 -> f2 -> [ "extends" NameList() ] f3 -> "{" f4 -> ( InterfaceMemberDeclaration() )* f5 -> "}"
 R visit(VariableDeclarator n)
          f0 -> VariableDeclaratorId() f1 -> [ "=" VariableInitializer() ]
 R visit(VariableDeclaratorId n)
          f0 -> f1 -> ( "[" "]" )*
 R visit(VariableInitializer n)
          f0 -> ArrayInitializer() | Expression()
 R visit(WhileStatement n)
          f0 -> "while" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Statement()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GJNoArguDepthFirst

public GJNoArguDepthFirst()
Method Detail

visit

public R visit(NodeList n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeListOptional n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeOptional n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeSequence n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeToken n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(CompilationUnit n)
f0 -> [ PackageDeclaration() ] f1 -> ( ImportDeclaration() )* f2 -> ( TypeDeclaration() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PackageDeclaration n)
f0 -> "package" f1 -> Name() f2 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ImportDeclaration n)
f0 -> "import" f1 -> Name() f2 -> [ "." "*" ] f3 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(TypeDeclaration n)
f0 -> ClassDeclaration() | InterfaceDeclaration() | ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ClassDeclaration n)
f0 -> ( "abstract" | "final" | "public" )* f1 -> UnmodifiedClassDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(UnmodifiedClassDeclaration n)
f0 -> "class" f1 -> f2 -> [ "extends" Name() ] f3 -> [ "implements" NameList() ] f4 -> ClassBody()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ClassBody n)
f0 -> "{" f1 -> ( ClassBodyDeclaration() )* f2 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NestedClassDeclaration n)
f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )* f1 -> UnmodifiedClassDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ClassBodyDeclaration n)
f0 -> Initializer() | NestedClassDeclaration() | NestedInterfaceDeclaration() | ConstructorDeclaration() | MethodDeclaration() | FieldDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MethodDeclarationLookahead n)
f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )* f1 -> ResultType() f2 -> f3 -> "("

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(InterfaceDeclaration n)
f0 -> ( "abstract" | "public" )* f1 -> UnmodifiedInterfaceDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NestedInterfaceDeclaration n)
f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )* f1 -> UnmodifiedInterfaceDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(UnmodifiedInterfaceDeclaration n)
f0 -> "interface" f1 -> f2 -> [ "extends" NameList() ] f3 -> "{" f4 -> ( InterfaceMemberDeclaration() )* f5 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(InterfaceMemberDeclaration n)
f0 -> NestedClassDeclaration() | NestedInterfaceDeclaration() | MethodDeclaration() | FieldDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(FieldDeclaration n)
f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )* f1 -> Type() f2 -> VariableDeclarator() f3 -> ( "," VariableDeclarator() )* f4 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(VariableDeclarator n)
f0 -> VariableDeclaratorId() f1 -> [ "=" VariableInitializer() ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(VariableDeclaratorId n)
f0 -> f1 -> ( "[" "]" )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(VariableInitializer n)
f0 -> ArrayInitializer() | Expression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ArrayInitializer n)
f0 -> "{" f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ] f2 -> [ "," ] f3 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MethodDeclaration n)
f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )* f1 -> ResultType() f2 -> MethodDeclarator() f3 -> [ "throws" NameList() ] f4 -> ( Block() | ";" )

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MethodDeclarator n)
f0 -> f1 -> FormalParameters() f2 -> ( "[" "]" )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(FormalParameters n)
f0 -> "(" f1 -> [ FormalParameter() ( "," FormalParameter() )* ] f2 -> ")"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(FormalParameter n)
f0 -> [ "final" ] f1 -> Type() f2 -> VariableDeclaratorId()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ConstructorDeclaration n)
f0 -> [ "public" | "protected" | "private" ] f1 -> f2 -> FormalParameters() f3 -> [ "throws" NameList() ] f4 -> "{" f5 -> [ ExplicitConstructorInvocation() ] f6 -> ( BlockStatement() )* f7 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ExplicitConstructorInvocation n)
f0 -> "this" Arguments() ";" | [ PrimaryExpression() "." ] "super" Arguments() ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Initializer n)
f0 -> [ "static" ] f1 -> Block()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Type n)
f0 -> ( PrimitiveType() | Name() ) f1 -> ( "[" "]" )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PrimitiveType n)
f0 -> "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ResultType n)
f0 -> "void" | Type()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Name n)
f0 -> f1 -> ( "." )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NameList n)
f0 -> Name() f1 -> ( "," Name() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Expression n)
f0 -> Assignment() | ConditionalExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Assignment n)
f0 -> PrimaryExpression() f1 -> AssignmentOperator() f2 -> Expression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(AssignmentOperator n)
f0 -> "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|="

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ConditionalExpression n)
f0 -> ConditionalOrExpression() f1 -> [ "?" Expression() ":" ConditionalExpression() ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ConditionalOrExpression n)
f0 -> ConditionalAndExpression() f1 -> ( "||" ConditionalAndExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ConditionalAndExpression n)
f0 -> InclusiveOrExpression() f1 -> ( "&&" InclusiveOrExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(InclusiveOrExpression n)
f0 -> ExclusiveOrExpression() f1 -> ( "|" ExclusiveOrExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ExclusiveOrExpression n)
f0 -> AndExpression() f1 -> ( "^" AndExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(AndExpression n)
f0 -> EqualityExpression() f1 -> ( "&" EqualityExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(EqualityExpression n)
f0 -> InstanceOfExpression() f1 -> ( ( "==" | "!=" ) InstanceOfExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(InstanceOfExpression n)
f0 -> RelationalExpression() f1 -> [ "instanceof" Type() ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(RelationalExpression n)
f0 -> ShiftExpression() f1 -> ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ShiftExpression n)
f0 -> AdditiveExpression() f1 -> ( ( "<<" | ">>" | ">>>" ) AdditiveExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(AdditiveExpression n)
f0 -> MultiplicativeExpression() f1 -> ( ( "+" | "-" ) MultiplicativeExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MultiplicativeExpression n)
f0 -> UnaryExpression() f1 -> ( ( "*" | "/" | "%" ) UnaryExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(UnaryExpression n)
f0 -> ( "+" | "-" ) UnaryExpression() | PreIncrementExpression() | PreDecrementExpression() | UnaryExpressionNotPlusMinus()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PreIncrementExpression n)
f0 -> "++" f1 -> PrimaryExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PreDecrementExpression n)
f0 -> "--" f1 -> PrimaryExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(UnaryExpressionNotPlusMinus n)
f0 -> ( "~" | "!" ) UnaryExpression() | CastExpression() | PostfixExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(CastLookahead n)
f0 -> "(" PrimitiveType() | "(" Name() "[" "]" | "(" Name() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() )

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PostfixExpression n)
f0 -> PrimaryExpression() f1 -> [ "++" | "--" ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(CastExpression n)
f0 -> "(" Type() ")" UnaryExpression() | "(" Type() ")" UnaryExpressionNotPlusMinus()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PrimaryExpression n)
f0 -> PrimaryPrefix() f1 -> ( PrimarySuffix() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PrimaryPrefix n)
f0 -> Literal() | Name() | "this" | "super" "." | "(" Expression() ")" | AllocationExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PrimarySuffix n)
f0 -> "." "this" | "." "class" | "." AllocationExpression() | "[" Expression() "]" | "." | Arguments()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Literal n)
f0 -> | | | | BooleanLiteral() | NullLiteral()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(BooleanLiteral n)
f0 -> "true" | "false"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NullLiteral n)
f0 -> "null"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Arguments n)
f0 -> "(" f1 -> [ ArgumentList() ] f2 -> ")"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ArgumentList n)
f0 -> Expression() f1 -> ( "," Expression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(AllocationExpression n)
f0 -> "new" PrimitiveType() ArrayDimensions() [ ArrayInitializer() ] | "new" Name() ( ArrayDimensions() [ ArrayInitializer() ] | Arguments() [ ClassBody() ] )

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ArrayDimensions n)
f0 -> ( "[" Expression() "]" )+ f1 -> ( "[" "]" )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Statement n)
f0 -> LabeledStatement() | Block() | EmptyStatement() | StatementExpression() ";" | SwitchStatement() | IfStatement() | WhileStatement() | DoStatement() | ForStatement() | BreakStatement() | ContinueStatement() | ReturnStatement() | ThrowStatement() | SynchronizedStatement() | TryStatement()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(LabeledStatement n)
f0 -> f1 -> ":" f2 -> Statement()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Block n)
f0 -> "{" f1 -> ( BlockStatement() )* f2 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(BlockStatement n)
f0 -> LocalVariableDeclaration() ";" | Statement() | UnmodifiedClassDeclaration()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(LocalVariableDeclaration n)
f0 -> [ "final" ] f1 -> Type() f2 -> VariableDeclarator() f3 -> ( "," VariableDeclarator() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(EmptyStatement n)
f0 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(StatementExpression n)
f0 -> PreIncrementExpression() | PreDecrementExpression() | Assignment() | PostfixExpression()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(SwitchStatement n)
f0 -> "switch" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> "{" f5 -> ( SwitchLabel() ( BlockStatement() )* )* f6 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(SwitchLabel n)
f0 -> "case" Expression() ":" | "default" ":"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(IfStatement n)
f0 -> "if" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Statement() f5 -> [ "else" Statement() ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(WhileStatement n)
f0 -> "while" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Statement()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(DoStatement n)
f0 -> "do" f1 -> Statement() f2 -> "while" f3 -> "(" f4 -> Expression() f5 -> ")" f6 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ForStatement n)
f0 -> "for" f1 -> "(" f2 -> [ ForInit() ] f3 -> ";" f4 -> [ Expression() ] f5 -> ";" f6 -> [ ForUpdate() ] f7 -> ")" f8 -> Statement()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ForInit n)
f0 -> LocalVariableDeclaration() | StatementExpressionList()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(StatementExpressionList n)
f0 -> StatementExpression() f1 -> ( "," StatementExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ForUpdate n)
f0 -> StatementExpressionList()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(BreakStatement n)
f0 -> "break" f1 -> [ ] f2 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ContinueStatement n)
f0 -> "continue" f1 -> [ ] f2 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ReturnStatement n)
f0 -> "return" f1 -> [ Expression() ] f2 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ThrowStatement n)
f0 -> "throw" f1 -> Expression() f2 -> ";"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(SynchronizedStatement n)
f0 -> "synchronized" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Block()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(TryStatement n)
f0 -> "try" f1 -> Block() f2 -> ( "catch" "(" FormalParameter() ")" Block() )* f3 -> [ "finally" Block() ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(JavaCCInput n)
f0 -> JavaCCOptions() f1 -> f2 -> f3 -> f4 -> f5 -> CompilationUnit() f6 -> f7 -> f8 -> f9 -> f10 -> ( Production() )* f11 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(JavaCCOptions n)
f0 -> [ ( OptionBinding() )* ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(OptionBinding n)
f0 -> ( | | | ) f1 -> f2 -> ( | BooleanLiteral() | ) f3 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Production n)
f0 -> JavaCodeProduction() | RegularExprProduction() | BNFProduction() | TokenManagerDecls()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(JavaCodeProduction n)
f0 -> f1 -> ResultType() f2 -> f3 -> FormalParameters() f4 -> Block()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(BNFProduction n)
f0 -> ResultType() f1 -> f2 -> FormalParameters() f3 -> f4 -> "{" f5 -> ( BlockStatement() )* f6 -> "}" f7 -> f8 -> ExpansionChoices() f9 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(RegularExprProduction n)
f0 -> [ LexicalStateList() ] f1 -> RegExprKind() f2 -> [ ] f3 -> f4 -> f5 -> RegExprSpec() f6 -> ( RegExprSpec() )* f7 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(TokenManagerDecls n)
f0 -> f1 -> f2 -> ClassBody()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(LexicalStateList n)
f0 -> | ( )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(RegExprKind n)
f0 -> | | |

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(RegExprSpec n)
f0 -> RegularExpression() f1 -> [ Block() ] f2 -> [ ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ExpansionChoices n)
f0 -> Expansion() f1 -> ( Expansion() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Expansion n)
f0 -> ( ExpansionUnit() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ExpansionUnit n)
f0 -> LocalLookahead() | Block() | ExpansionChoices() [ | | ] | ExpansionChoices() | [ PrimaryExpression() ] ExpansionUnitTerm()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ExpansionUnitTerm n)
f0 -> RegularExpression() | Arguments()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(LocalLookahead n)
f0 -> f1 -> f2 -> [ ] f3 -> [ ] f4 -> ExpansionChoices() f5 -> [ ] f6 -> [ Expression() ] f7 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(RegularExpression n)
f0 -> | [ [ ] ] ComplexRegularExpressionChoices() | |

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ComplexRegularExpressionChoices n)
f0 -> ComplexRegularExpression() f1 -> ( ComplexRegularExpression() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ComplexRegularExpression n)
f0 -> ( ComplexRegularExpressionUnit() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ComplexRegularExpressionUnit n)
f0 -> | | CharacterList() | ComplexRegularExpressionChoices() [ | | ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(CharacterList n)
f0 -> [ ] f1 -> f2 -> [ CharacterDescriptor() ( CharacterDescriptor() )* ] f3 ->

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(CharacterDescriptor n)
f0 -> f1 -> [ ]

Specified by:
visit in interface GJNoArguVisitor<R>