Package it.jKey.util.javaParser.syntaxtree

Class Diagram Summary
syntaxtree 
 

Interface Summary
NodeThe interface which all syntax tree classes must implement.
NodeListInterfaceThe interface which NodeList, NodeListOptional, and NodeSequence
implement.
 

Class Summary
AdditiveExpressionGrammar production:
f0 -> MultiplicativeExpression()
f1 -> ( ( "+" | "-" ) MultiplicativeExpression() )*
AllocationExpressionGrammar production:
f0 -> "new" PrimitiveType() ArrayDimsAndInits()
| "new" Name() ( ArrayDimsAndInits() | Arguments() [ ClassBody() ] )
AndExpressionGrammar production:
f0 -> EqualityExpression()
f1 -> ( "&" EqualityExpression() )*
ArgumentListGrammar production:
f0 -> Expression()
f1 -> ( "," Expression() )*
ArgumentsGrammar production:
f0 -> "("
f1 -> [ ArgumentList() ]
f2 -> ")"
ArrayDimsAndInitsGrammar production:
f0 -> ( "[" Expression() "]" )+ ( "[" "]" )*
| ( "[" "]" )+ ArrayInitializer()
ArrayInitializerGrammar production:
f0 -> "{"
f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ]
f2 -> [ "," ]
f3 -> "}"
AssertStatementGrammar production:
f0 -> "assert"
f1 -> Expression()
f2 -> [ ":" Expression() ]
f3 -> ";"
AssignmentOperatorGrammar production:
f0 -> "="
| "*="
| "/="
| "%="
| "+="
| "-="
| "<<="
| ">>="
| ">>>="
| "&="
| "^="
| "|="
BlockGrammar production:
f0 -> "{"
f1 -> ( BlockStatement() )*
f2 -> "}"
BlockStatementGrammar production:
f0 -> LocalVariableDeclaration() ";"
| Statement()
| UnmodifiedClassDeclaration()
| UnmodifiedInterfaceDeclaration()
BooleanLiteralGrammar production:
f0 -> "true"
| "false"
BreakStatementGrammar production:
f0 -> "break"
f1 -> [ ]
f2 -> ";"
CastExpressionGrammar production:
f0 -> "(" Type() ")" UnaryExpression()
| "(" Type() ")" UnaryExpressionNotPlusMinus()
CastLookaheadGrammar production:
f0 -> "(" PrimitiveType()
| "(" Name() "[" "]"
| "(" Name() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() )
ClassBodyGrammar production:
f0 -> "{"
f1 -> ( ClassBodyDeclaration() )*
f2 -> "}"
ClassBodyDeclarationGrammar production:
f0 -> Initializer()
| NestedClassDeclaration()
| NestedInterfaceDeclaration()
| ConstructorDeclaration()
| MethodDeclaration()
| FieldDeclaration()
ClassDeclarationGrammar production:
f0 -> ( "abstract" | "final" | "public" | "strictfp" )*
f1 -> UnmodifiedClassDeclaration()
CompilationUnitGrammar production:
f0 -> [ PackageDeclaration() ]
f1 -> ( ImportDeclaration() )*
f2 -> ( TypeDeclaration() )*
f3 ->
ConditionalAndExpressionGrammar production:
f0 -> InclusiveOrExpression()
f1 -> ( "&&" InclusiveOrExpression() )*
ConditionalExpressionGrammar production:
f0 -> ConditionalOrExpression()
f1 -> [ "?" Expression() ":" ConditionalExpression() ]
ConditionalOrExpressionGrammar production:
f0 -> ConditionalAndExpression()
f1 -> ( "||" ConditionalAndExpression() )*
ConstructorDeclarationGrammar production:
f0 -> [ "public" | "protected" | "private" ]
f1 ->
f2 -> FormalParameters()
f3 -> [ "throws" NameList() ]
f4 -> "{"
f5 -> [ ExplicitConstructorInvocation() ]
f6 -> ( BlockStatement() )*
f7 -> "}"
ContinueStatementGrammar production:
f0 -> "continue"
f1 -> [ ]
f2 -> ";"
DoStatementGrammar production:
f0 -> "do"
f1 -> Statement()
f2 -> "while"
f3 -> "("
f4 -> Expression()
f5 -> ")"
f6 -> ";"
EmptyStatementGrammar production:
f0 -> ";"
EqualityExpressionGrammar production:
f0 -> InstanceOfExpression()
f1 -> ( ( "==" | "!=" ) InstanceOfExpression() )*
ExclusiveOrExpressionGrammar production:
f0 -> AndExpression()
f1 -> ( "^" AndExpression() )*
ExplicitConstructorInvocationGrammar production:
f0 -> "this" Arguments() ";"
| [ PrimaryExpression() "." ] "super" Arguments() ";"
ExpressionGrammar production:
f0 -> ConditionalExpression()
f1 -> [ AssignmentOperator() Expression() ]
FieldDeclarationGrammar production:
f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )*
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
f4 -> ";"
ForInitGrammar production:
f0 -> LocalVariableDeclaration()
| StatementExpressionList()
FormalParameterGrammar production:
f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclaratorId()
FormalParametersGrammar production:
f0 -> "("
f1 -> [ FormalParameter() ( "," FormalParameter() )* ]
f2 -> ")"
ForStatementGrammar production:
f0 -> "for"
f1 -> "("
f2 -> [ ForInit() ]
f3 -> ";"
f4 -> [ Expression() ]
f5 -> ";"
f6 -> [ ForUpdate() ]
f7 -> ")"
f8 -> Statement()
ForUpdateGrammar production:
f0 -> StatementExpressionList()
IfStatementGrammar production:
f0 -> "if"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
f5 -> [ "else" Statement() ]
ImportDeclarationGrammar production:
f0 -> "import"
f1 -> Name()
f2 -> [ "." "*" ]
f3 -> ";"
InclusiveOrExpressionGrammar production:
f0 -> ExclusiveOrExpression()
f1 -> ( "|" ExclusiveOrExpression() )*
InitializerGrammar production:
f0 -> [ "static" ]
f1 -> Block()
InstanceOfExpressionGrammar production:
f0 -> RelationalExpression()
f1 -> [ "instanceof" Type() ]
InterfaceDeclarationGrammar production:
f0 -> ( "abstract" | "public" | "strictfp" )*
f1 -> UnmodifiedInterfaceDeclaration()
InterfaceMemberDeclarationGrammar production:
f0 -> NestedClassDeclaration()
| NestedInterfaceDeclaration()
| MethodDeclaration()
| FieldDeclaration()
LabeledStatementGrammar production:
f0 ->
f1 -> ":"
f2 -> Statement()
LiteralGrammar production:
f0 ->
|
|
|
| BooleanLiteral()
| NullLiteral()
LocalVariableDeclarationGrammar production:
f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
MethodDeclarationGrammar production:
f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" | "strictfp" )*
f1 -> ResultType()
f2 -> MethodDeclarator()
f3 -> [ "throws" NameList() ]
f4 -> ( Block() | ";" )
MethodDeclarationLookaheadGrammar production:
f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" | "strictfp" )*
f1 -> ResultType()
f2 ->
f3 -> "("
MethodDeclaratorGrammar production:
f0 ->
f1 -> FormalParameters()
f2 -> ( "[" "]" )*
MultiplicativeExpressionGrammar production:
f0 -> UnaryExpression()
f1 -> ( ( "*" | "/" | "%" ) UnaryExpression() )*
NameGrammar production:
f0 ->
f1 -> ( "." )*
NameListGrammar production:
f0 -> Name()
f1 -> ( "," Name() )*
NestedClassDeclarationGrammar production:
f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" | "strictfp" )*
f1 -> UnmodifiedClassDeclaration()
NestedInterfaceDeclarationGrammar production:
f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" | "strictfp" )*
f1 -> UnmodifiedInterfaceDeclaration()
NodeChoiceRepresents a grammar choice, e.g.
NodeListRepresents a grammar list, e.g.
NodeListOptionalRepresents an optional grammar list, e.g.
NodeOptionalRepresents an grammar optional node, e.g.
NodeSequenceRepresents a sequence of nodes nested within a choice, list,
optional list, or optional, e.g.
NodeTokenRepresents a single token in the grammar.
NullLiteralGrammar production:
f0 -> "null"
PackageDeclarationGrammar production:
f0 -> "package"
f1 -> Name()
f2 -> ";"
PostfixExpressionGrammar production:
f0 -> PrimaryExpression()
f1 -> [ "++" | "--" ]
PreDecrementExpressionGrammar production:
f0 -> "--"
f1 -> PrimaryExpression()
PreIncrementExpressionGrammar production:
f0 -> "++"
f1 -> PrimaryExpression()
PrimaryExpressionGrammar production:
f0 -> PrimaryPrefix()
f1 -> ( PrimarySuffix() )*
PrimaryPrefixGrammar production:
f0 -> Literal()
| "this"
| "super" "."
| "(" Expression() ")"
| AllocationExpression()
| ResultType() "." "class"
| Name()
PrimarySuffixGrammar production:
f0 -> "." "this"
| "." AllocationExpression()
| "[" Expression() "]"
| "."
| Arguments()
PrimitiveTypeGrammar production:
f0 -> "boolean"
| "char"
| "byte"
| "short"
| "int"
| "long"
| "float"
| "double"
RelationalExpressionGrammar production:
f0 -> ShiftExpression()
f1 -> ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression() )*
ResultTypeGrammar production:
f0 -> "void"
| Type()
ReturnStatementGrammar production:
f0 -> "return"
f1 -> [ Expression() ]
f2 -> ";"
ShiftExpressionGrammar production:
f0 -> AdditiveExpression()
f1 -> ( ( "<<" | ">>" | ">>>" ) AdditiveExpression() )*
StatementGrammar production:
f0 -> LabeledStatement()
| Block()
| EmptyStatement()
| StatementExpression() ";"
| SwitchStatement()
| IfStatement()
| WhileStatement()
| DoStatement()
| ForStatement()
| BreakStatement()
| ContinueStatement()
| ReturnStatement()
| ThrowStatement()
| SynchronizedStatement()
| TryStatement()
| AssertStatement()
StatementExpressionGrammar production:
f0 -> PreIncrementExpression()
| PreDecrementExpression()
| PrimaryExpression() [ "++" | "--" | AssignmentOperator() Expression() ]
StatementExpressionListGrammar production:
f0 -> StatementExpression()
f1 -> ( "," StatementExpression() )*
SwitchLabelGrammar production:
f0 -> "case" Expression() ":"
| "default" ":"
SwitchStatementGrammar production:
f0 -> "switch"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> "{"
f5 -> ( SwitchLabel() ( BlockStatement() )* )*
f6 -> "}"
SynchronizedStatementGrammar production:
f0 -> "synchronized"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Block()
ThrowStatementGrammar production:
f0 -> "throw"
f1 -> Expression()
f2 -> ";"
TryStatementGrammar production:
f0 -> "try"
f1 -> Block()
f2 -> ( "catch" "(" FormalParameter() ")" Block() )*
f3 -> [ "finally" Block() ]
TypeGrammar production:
f0 -> ( PrimitiveType() | Name() )
f1 -> ( "[" "]" )*
TypeDeclarationGrammar production:
f0 -> ClassDeclaration()
| InterfaceDeclaration()
| ";"
UnaryExpressionGrammar production:
f0 -> ( "+" | "-" ) UnaryExpression()
| PreIncrementExpression()
| PreDecrementExpression()
| UnaryExpressionNotPlusMinus()
UnaryExpressionNotPlusMinusGrammar production:
f0 -> ( "~" | "!" ) UnaryExpression()
| CastExpression()
| PostfixExpression()
UnmodifiedClassDeclarationGrammar production:
f0 -> "class"
f1 ->
f2 -> [ "extends" Name() ]
f3 -> [ "implements" NameList() ]
f4 -> ClassBody()
UnmodifiedInterfaceDeclarationGrammar production:
f0 -> "interface"
f1 ->
f2 -> [ "extends" NameList() ]
f3 -> "{"
f4 -> ( InterfaceMemberDeclaration() )*
f5 -> "}"
VariableDeclaratorGrammar production:
f0 -> VariableDeclaratorId()
f1 -> [ "=" VariableInitializer() ]
VariableDeclaratorIdGrammar production:
f0 ->
f1 -> ( "[" "]" )*
VariableInitializerGrammar production:
f0 -> ArrayInitializer()
| Expression()
WhileStatementGrammar production:
f0 -> "while"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()