All Packages Class Hierarchy This Package Previous Next Index
Class hpjava.compiler.grammar.visitor.DepthFirstVisitor
java.lang.Object
|
+----hpjava.compiler.grammar.visitor.DepthFirstVisitor
- public class DepthFirstVisitor
- extends Object
- implements Visitor
Provides default methods which visit each node in the tree in depth-first
order. Your visitors may extend this class.
DepthFirstVisitor()
-
visit(AdditiveExpression)
- f0 -> MultiplicativeExpression()
f1 -> ( ( "+" | "-" ) MultiplicativeExpression() )*
visit(AllocatedShape)
- f0 -> "[" "[" Expression() ( "," Expression() )* "]" "]"
| "[" Expression() "]"
visit(AllocationExpression)
- f0 -> "new" PrimitiveType() ArrayShapes()
| "new" Name() ( ArrayShapes() | Arguments() [ ClassBody() ] )
visit(AndExpression)
- f0 -> EqualityExpression()
f1 -> ( "&" EqualityExpression() )*
visit(ArgumentList)
- f0 -> Expression()
f1 -> ( "," Expression() )*
visit(Arguments)
- f0 -> "("
f1 -> [ ArgumentList() ]
f2 -> ")"
visit(ArrayInitializer)
- f0 -> "{"
f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ]
f2 -> [ "," ]
f3 -> "}"
visit(ArrayShapes)
- f0 -> ( AllocatedShape() )+ ( ArraySignature() )* [ "on" GroupExpression() ]
| ( "[" "]" )+ ArrayInitializer()
| "#" [ "on" GroupExpression() ]
visit(ArraySignature)
- f0 -> "[" "]"
| "[" "[" DistArrayDimAttList() "]" "]"
| "#"
visit(AssignmentOperator)
- f0 -> "="
| "*="
| "/="
| "%="
| "+="
| "-="
| "<<="
| ">>="
| ">>>="
| "&="
| "^="
| "|="
visit(AtStatement)
- f0 -> "at"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
visit(Block)
- f0 -> "{"
f1 -> ( BlockStatement() )*
f2 -> "}"
visit(BlockStatement)
- f0 -> LocalVariableDeclaration() ";"
| Statement()
| UnmodifiedClassDeclaration()
| UnmodifiedInterfaceDeclaration()
visit(BooleanLiteral)
- f0 -> "true"
| "false"
visit(BreakStatement)
- f0 -> "break"
f1 -> [ ]
f2 -> ";"
visit(CastExpression)
- f0 -> "(" Type() ")" UnaryExpression()
| "(" Type() ")" UnaryExpressionNotPlusMinus()
visit(CastLookahead)
- f0 -> "(" PrimitiveType()
| "(" Name() ArraySignature()
| "(" Name() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() )
visit(ClassBody)
- f0 -> "{"
f1 -> ( ClassBodyDeclaration() )*
f2 -> "}"
visit(ClassBodyDeclaration)
- f0 -> Initializer()
| NestedClassDeclaration()
| NestedInterfaceDeclaration()
| ConstructorDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
visit(ClassDeclaration)
- f0 -> ( "abstract" | "final" | "public" )*
f1 -> UnmodifiedClassDeclaration()
visit(CompilationUnit)
- f0 -> [ PackageDeclaration() ]
f1 -> ( ImportDeclaration() )*
f2 -> ( TypeDeclaration() )*
f3 ->
visit(ConditionalAndExpression)
- f0 -> InclusiveOrExpression()
f1 -> ( "&&" InclusiveOrExpression() )*
visit(ConditionalExpression)
- f0 -> ConditionalOrExpression()
f1 -> [ "?" Expression() ":" ConditionalExpression() ]
visit(ConditionalOrExpression)
- f0 -> ConditionalAndExpression()
f1 -> ( "||" ConditionalAndExpression() )*
visit(ConstructorDeclaration)
- f0 -> [ "public" | "protected" | "private" ]
f1 ->
f2 -> FormalParameters()
f3 -> [ "throws" NameList() ]
f4 -> "{"
f5 -> [ ExplicitConstructorInvocation() ]
f6 -> ( BlockStatement() )*
f7 -> "}"
visit(ContinueStatement)
- f0 -> "continue"
f1 -> [ ]
f2 -> ";"
visit(DistArrayDimAttList)
- f0 -> [ "*" ]
f1 -> ( "," [ "*" ] )*
visit(DistArraySecRefDim)
- f0 -> Triplet()
| Expression()
| KernelSubrange()
visit(DistArraySecRefDimList)
- f0 -> DistArraySecRefDim()
f1 -> ( "," DistArraySecRefDim() )*
visit(DoStatement)
- f0 -> "do"
f1 -> Statement()
f2 -> "while"
f3 -> "("
f4 -> Expression()
f5 -> ")"
f6 -> ";"
visit(EmptyStatement)
- f0 -> ";"
visit(EqualityExpression)
- f0 -> InstanceOfExpression()
f1 -> ( ( "==" | "!=" ) InstanceOfExpression() )*
visit(ExclusiveOrExpression)
- f0 -> AndExpression()
f1 -> ( "^" AndExpression() )*
visit(ExplicitConstructorInvocation)
- f0 -> "this" Arguments() ";"
| [ PrimaryExpression() "." ] "super" Arguments() ";"
visit(Expression)
- f0 -> ConditionalExpression()
f1 -> [ AssignmentOperator() Expression() ]
visit(FieldDeclaration)
- f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )*
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
f4 -> ";"
visit(ForInit)
- f0 -> LocalVariableDeclaration()
| StatementExpressionList()
visit(FormalParameter)
- f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclaratorId()
visit(FormalParameters)
- f0 -> "("
f1 -> [ FormalParameter() ( "," FormalParameter() )* ]
f2 -> ")"
visit(ForStatement)
- f0 -> "for"
f1 -> "("
f2 -> [ ForInit() ]
f3 -> ";"
f4 -> [ Expression() ]
f5 -> ";"
f6 -> [ ForUpdate() ]
f7 -> ")"
f8 -> Statement()
visit(ForUpdate)
- f0 -> StatementExpressionList()
visit(GroupExpression)
- f0 -> PrimaryExpression()
f1 -> ( "/" PrimaryExpression() )*
visit(IfStatement)
- f0 -> "if"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
f5 -> [ "else" Statement() ]
visit(ImportDeclaration)
- f0 -> "import"
f1 -> Name()
f2 -> [ "." "*" ]
f3 -> ";"
visit(InclusiveOrExpression)
- f0 -> ExclusiveOrExpression()
f1 -> ( "|" ExclusiveOrExpression() )*
visit(Initializer)
- f0 -> [ "static" ]
f1 -> Block()
visit(InstanceOfExpression)
- f0 -> RelationalExpression()
f1 -> [ "instanceof" Type() ]
visit(InterfaceDeclaration)
- f0 -> ( "abstract" | "public" )*
f1 -> UnmodifiedInterfaceDeclaration()
visit(InterfaceMemberDeclaration)
- f0 -> NestedClassDeclaration()
| NestedInterfaceDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
visit(KernelSubrange)
- f0 -> "<" ( PrimaryExpression() | ":" ) ">"
| "<" KernelSubrange() ">"
visit(LabeledStatement)
- f0 ->
f1 -> ":"
f2 -> Statement()
visit(Literal)
- f0 ->
|
|
|
| BooleanLiteral()
| NullLiteral()
visit(LocalVariableDeclaration)
- f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
visit(MethodDeclaration)
- f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 -> MethodDeclarator()
f3 -> [ "throws" NameList() ]
f4 -> ( Block() | ";" )
visit(MethodDeclarationLookahead)
- f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 ->
f3 -> "("
visit(MethodDeclarator)
- f0 ->
f1 -> FormalParameters()
f2 -> ( ArraySignature() )*
visit(MultiplicativeExpression)
- f0 -> UnaryExpression()
f1 -> ( ( "*" | "/" | "%" ) UnaryExpression() )*
visit(Name)
- f0 ->
f1 -> ( "." )*
visit(NamedLocation)
- f0 ->
f1 -> "="
f2 -> Expression()
visit(NamedLocationList)
- f0 -> NamedLocation()
f1 -> ( "," NamedLocation() )*
visit(NameList)
- f0 -> Name()
f1 -> ( "," Name() )*
visit(NestedClassDeclaration)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedClassDeclaration()
visit(NestedInterfaceDeclaration)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedInterfaceDeclaration()
visit(NodeList)
-
visit(NodeListOptional)
-
visit(NodeOptional)
-
visit(NodeSequence)
-
visit(NodeToken)
-
visit(NullLiteral)
- f0 -> "null"
visit(OnStatement)
- f0 -> "on"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
visit(OverallStatement)
- f0 -> "overall"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
visit(PackageDeclaration)
- f0 -> "package"
f1 -> Name()
f2 -> ";"
visit(PostfixExpression)
- f0 -> PrimaryExpression()
f1 -> [ "++" | "--" ]
visit(PreDecrementExpression)
- f0 -> "--"
f1 -> PrimaryExpression()
visit(PreIncrementExpression)
- f0 -> "++"
f1 -> PrimaryExpression()
visit(PrimaryExpression)
- f0 -> PrimaryPrefix()
f1 -> ( PrimarySuffix() )*
visit(PrimaryPrefix)
- f0 -> Literal()
| ResultType() "." "class"
| AllocationExpression()
| "this"
| "super"
| "(" Expression() ")"
|
visit(PrimarySuffix)
- f0 -> "." "this"
| "." AllocationExpression()
| "[" "[" DistArraySecRefDimList() "]" "]"
| "[" TripletOrExpressionList() "]"
| "."
| Arguments()
visit(PrimitiveType)
- f0 -> "boolean"
| "char"
| "byte"
| "short"
| "int"
| "long"
| "float"
| "double"
visit(RelationalExpression)
- f0 -> ShiftExpression()
f1 -> ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression() )*
visit(ResultType)
- f0 -> "void"
| Type()
visit(ReturnStatement)
- f0 -> "return"
f1 -> [ Expression() ]
f2 -> ";"
visit(ShiftExpression)
- f0 -> AdditiveExpression()
f1 -> ( ( "<<" | ">>" | ">>>" ) AdditiveExpression() )*
visit(Statement)
- f0 -> LabeledStatement()
| Block()
| EmptyStatement()
| StatementExpression() ";"
| SwitchStatement()
| IfStatement()
| WhileStatement()
| DoStatement()
| ForStatement()
| BreakStatement()
| ContinueStatement()
| ReturnStatement()
| ThrowStatement()
| SynchronizedStatement()
| TryStatement()
| OnStatement()
| AtStatement()
| OverallStatement()
visit(StatementExpression)
- f0 -> PreIncrementExpression()
| PreDecrementExpression()
| PrimaryExpression() [ "++" | "--" | AssignmentOperator() Expression() ]
visit(StatementExpressionList)
- f0 -> StatementExpression()
f1 -> ( "," StatementExpression() )*
visit(SwitchLabel)
- f0 -> "case" Expression() ":"
| "default" ":"
visit(SwitchStatement)
- f0 -> "switch"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> "{"
f5 -> ( SwitchLabel() ( BlockStatement() )* )*
f6 -> "}"
visit(SynchronizedStatement)
- f0 -> "synchronized"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Block()
visit(ThrowStatement)
- f0 -> "throw"
f1 -> Expression()
f2 -> ";"
visit(Triplet)
- f0 -> [ Expression() ]
f1 -> ":"
f2 -> [ Expression() ]
f3 -> [ ":" Expression() ]
visit(TripletOrExpression)
- f0 -> Triplet()
| Expression()
visit(TripletOrExpressionList)
- f0 -> TripletOrExpression()
f1 -> ( "," TripletOrExpression() )*
visit(TryStatement)
- f0 -> "try"
f1 -> Block()
f2 -> ( "catch" "(" FormalParameter() ")" Block() )*
f3 -> [ "finally" Block() ]
visit(Type)
- f0 -> ( PrimitiveType() | Name() )
f1 -> ( ArraySignature() )*
visit(TypeDeclaration)
- f0 -> ClassDeclaration()
| InterfaceDeclaration()
| ";"
visit(UnaryExpression)
- f0 -> ( "+" | "-" ) UnaryExpression()
| PreIncrementExpression()
| PreDecrementExpression()
| UnaryExpressionNotPlusMinus()
visit(UnaryExpressionNotPlusMinus)
- f0 -> ( "~" | "!" ) UnaryExpression()
| CastExpression()
| PostfixExpression()
visit(UnmodifiedClassDeclaration)
- f0 -> "class"
f1 ->
f2 -> [ "extends" Name() ]
f3 -> [ "implements" NameList() ]
f4 -> ClassBody()
visit(UnmodifiedInterfaceDeclaration)
- f0 -> "interface"
f1 ->
f2 -> [ "extends" NameList() ]
f3 -> "{"
f4 -> ( InterfaceMemberDeclaration() )*
f5 -> "}"
visit(VariableDeclarator)
- f0 -> VariableDeclaratorId()
f1 -> [ "=" VariableInitializer() ]
visit(VariableDeclaratorId)
- f0 ->
f1 -> ( ArraySignature() )*
visit(VariableInitializer)
- f0 -> ArrayInitializer()
| Expression()
visit(WhileStatement)
- f0 -> "while"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
DepthFirstVisitor
public DepthFirstVisitor()
visit
public void visit(NodeList n)
visit
public void visit(NodeListOptional n)
visit
public void visit(NodeOptional n)
visit
public void visit(NodeSequence n)
visit
public void visit(NodeToken n)
visit
public void visit(CompilationUnit n)
- f0 -> [ PackageDeclaration() ]
f1 -> ( ImportDeclaration() )*
f2 -> ( TypeDeclaration() )*
f3 ->
visit
public void visit(PackageDeclaration n)
- f0 -> "package"
f1 -> Name()
f2 -> ";"
visit
public void visit(ImportDeclaration n)
- f0 -> "import"
f1 -> Name()
f2 -> [ "." "*" ]
f3 -> ";"
visit
public void visit(TypeDeclaration n)
- f0 -> ClassDeclaration()
| InterfaceDeclaration()
| ";"
visit
public void visit(ClassDeclaration n)
- f0 -> ( "abstract" | "final" | "public" )*
f1 -> UnmodifiedClassDeclaration()
visit
public void visit(UnmodifiedClassDeclaration n)
- f0 -> "class"
f1 ->
f2 -> [ "extends" Name() ]
f3 -> [ "implements" NameList() ]
f4 -> ClassBody()
visit
public void visit(ClassBody n)
- f0 -> "{"
f1 -> ( ClassBodyDeclaration() )*
f2 -> "}"
visit
public void visit(NestedClassDeclaration n)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedClassDeclaration()
visit
public void visit(ClassBodyDeclaration n)
- f0 -> Initializer()
| NestedClassDeclaration()
| NestedInterfaceDeclaration()
| ConstructorDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
visit
public void visit(MethodDeclarationLookahead n)
- f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 ->
f3 -> "("
visit
public void visit(InterfaceDeclaration n)
- f0 -> ( "abstract" | "public" )*
f1 -> UnmodifiedInterfaceDeclaration()
visit
public void visit(NestedInterfaceDeclaration n)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedInterfaceDeclaration()
visit
public void visit(UnmodifiedInterfaceDeclaration n)
- f0 -> "interface"
f1 ->
f2 -> [ "extends" NameList() ]
f3 -> "{"
f4 -> ( InterfaceMemberDeclaration() )*
f5 -> "}"
visit
public void visit(InterfaceMemberDeclaration n)
- f0 -> NestedClassDeclaration()
| NestedInterfaceDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
visit
public void visit(FieldDeclaration n)
- f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )*
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
f4 -> ";"
visit
public void visit(VariableDeclarator n)
- f0 -> VariableDeclaratorId()
f1 -> [ "=" VariableInitializer() ]
visit
public void visit(VariableDeclaratorId n)
- f0 ->
f1 -> ( ArraySignature() )*
visit
public void visit(VariableInitializer n)
- f0 -> ArrayInitializer()
| Expression()
visit
public void visit(ArrayInitializer n)
- f0 -> "{"
f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ]
f2 -> [ "," ]
f3 -> "}"
visit
public void visit(MethodDeclaration n)
- f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 -> MethodDeclarator()
f3 -> [ "throws" NameList() ]
f4 -> ( Block() | ";" )
visit
public void visit(MethodDeclarator n)
- f0 ->
f1 -> FormalParameters()
f2 -> ( ArraySignature() )*
visit
public void visit(FormalParameters n)
- f0 -> "("
f1 -> [ FormalParameter() ( "," FormalParameter() )* ]
f2 -> ")"
visit
public void visit(FormalParameter n)
- f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclaratorId()
visit
public void visit(ConstructorDeclaration n)
- f0 -> [ "public" | "protected" | "private" ]
f1 ->
f2 -> FormalParameters()
f3 -> [ "throws" NameList() ]
f4 -> "{"
f5 -> [ ExplicitConstructorInvocation() ]
f6 -> ( BlockStatement() )*
f7 -> "}"
visit
public void visit(ExplicitConstructorInvocation n)
- f0 -> "this" Arguments() ";"
| [ PrimaryExpression() "." ] "super" Arguments() ";"
visit
public void visit(Initializer n)
- f0 -> [ "static" ]
f1 -> Block()
visit
public void visit(ArraySignature n)
- f0 -> "[" "]"
| "[" "[" DistArrayDimAttList() "]" "]"
| "#"
visit
public void visit(DistArrayDimAttList n)
- f0 -> [ "*" ]
f1 -> ( "," [ "*" ] )*
visit
public void visit(Type n)
- f0 -> ( PrimitiveType() | Name() )
f1 -> ( ArraySignature() )*
visit
public void visit(PrimitiveType n)
- f0 -> "boolean"
| "char"
| "byte"
| "short"
| "int"
| "long"
| "float"
| "double"
visit
public void visit(ResultType n)
- f0 -> "void"
| Type()
visit
public void visit(Name n)
- f0 ->
f1 -> ( "." )*
visit
public void visit(NameList n)
- f0 -> Name()
f1 -> ( "," Name() )*
visit
public void visit(Expression n)
- f0 -> ConditionalExpression()
f1 -> [ AssignmentOperator() Expression() ]
visit
public void visit(AssignmentOperator n)
- f0 -> "="
| "*="
| "/="
| "%="
| "+="
| "-="
| "<<="
| ">>="
| ">>>="
| "&="
| "^="
| "|="
visit
public void visit(ConditionalExpression n)
- f0 -> ConditionalOrExpression()
f1 -> [ "?" Expression() ":" ConditionalExpression() ]
visit
public void visit(ConditionalOrExpression n)
- f0 -> ConditionalAndExpression()
f1 -> ( "||" ConditionalAndExpression() )*
visit
public void visit(ConditionalAndExpression n)
- f0 -> InclusiveOrExpression()
f1 -> ( "&&" InclusiveOrExpression() )*
visit
public void visit(InclusiveOrExpression n)
- f0 -> ExclusiveOrExpression()
f1 -> ( "|" ExclusiveOrExpression() )*
visit
public void visit(ExclusiveOrExpression n)
- f0 -> AndExpression()
f1 -> ( "^" AndExpression() )*
visit
public void visit(AndExpression n)
- f0 -> EqualityExpression()
f1 -> ( "&" EqualityExpression() )*
visit
public void visit(EqualityExpression n)
- f0 -> InstanceOfExpression()
f1 -> ( ( "==" | "!=" ) InstanceOfExpression() )*
visit
public void visit(InstanceOfExpression n)
- f0 -> RelationalExpression()
f1 -> [ "instanceof" Type() ]
visit
public void visit(RelationalExpression n)
- f0 -> ShiftExpression()
f1 -> ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression() )*
visit
public void visit(ShiftExpression n)
- f0 -> AdditiveExpression()
f1 -> ( ( "<<" | ">>" | ">>>" ) AdditiveExpression() )*
visit
public void visit(AdditiveExpression n)
- f0 -> MultiplicativeExpression()
f1 -> ( ( "+" | "-" ) MultiplicativeExpression() )*
visit
public void visit(MultiplicativeExpression n)
- f0 -> UnaryExpression()
f1 -> ( ( "*" | "/" | "%" ) UnaryExpression() )*
visit
public void visit(UnaryExpression n)
- f0 -> ( "+" | "-" ) UnaryExpression()
| PreIncrementExpression()
| PreDecrementExpression()
| UnaryExpressionNotPlusMinus()
visit
public void visit(PreIncrementExpression n)
- f0 -> "++"
f1 -> PrimaryExpression()
visit
public void visit(PreDecrementExpression n)
- f0 -> "--"
f1 -> PrimaryExpression()
visit
public void visit(UnaryExpressionNotPlusMinus n)
- f0 -> ( "~" | "!" ) UnaryExpression()
| CastExpression()
| PostfixExpression()
visit
public void visit(CastLookahead n)
- f0 -> "(" PrimitiveType()
| "(" Name() ArraySignature()
| "(" Name() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() )
visit
public void visit(PostfixExpression n)
- f0 -> PrimaryExpression()
f1 -> [ "++" | "--" ]
visit
public void visit(CastExpression n)
- f0 -> "(" Type() ")" UnaryExpression()
| "(" Type() ")" UnaryExpressionNotPlusMinus()
visit
public void visit(PrimaryExpression n)
- f0 -> PrimaryPrefix()
f1 -> ( PrimarySuffix() )*
visit
public void visit(PrimaryPrefix n)
- f0 -> Literal()
| ResultType() "." "class"
| AllocationExpression()
| "this"
| "super"
| "(" Expression() ")"
|
visit
public void visit(PrimarySuffix n)
- f0 -> "." "this"
| "." AllocationExpression()
| "[" "[" DistArraySecRefDimList() "]" "]"
| "[" TripletOrExpressionList() "]"
| "."
| Arguments()
visit
public void visit(DistArraySecRefDimList n)
- f0 -> DistArraySecRefDim()
f1 -> ( "," DistArraySecRefDim() )*
visit
public void visit(DistArraySecRefDim n)
- f0 -> Triplet()
| Expression()
| KernelSubrange()
visit
public void visit(Triplet n)
- f0 -> [ Expression() ]
f1 -> ":"
f2 -> [ Expression() ]
f3 -> [ ":" Expression() ]
visit
public void visit(KernelSubrange n)
- f0 -> "<" ( PrimaryExpression() | ":" ) ">"
| "<" KernelSubrange() ">"
visit
public void visit(TripletOrExpressionList n)
- f0 -> TripletOrExpression()
f1 -> ( "," TripletOrExpression() )*
visit
public void visit(TripletOrExpression n)
- f0 -> Triplet()
| Expression()
visit
public void visit(Literal n)
- f0 ->
|
|
|
| BooleanLiteral()
| NullLiteral()
visit
public void visit(BooleanLiteral n)
- f0 -> "true"
| "false"
visit
public void visit(NullLiteral n)
- f0 -> "null"
visit
public void visit(Arguments n)
- f0 -> "("
f1 -> [ ArgumentList() ]
f2 -> ")"
visit
public void visit(ArgumentList n)
- f0 -> Expression()
f1 -> ( "," Expression() )*
visit
public void visit(AllocationExpression n)
- f0 -> "new" PrimitiveType() ArrayShapes()
| "new" Name() ( ArrayShapes() | Arguments() [ ClassBody() ] )
visit
public void visit(ArrayShapes n)
- f0 -> ( AllocatedShape() )+ ( ArraySignature() )* [ "on" GroupExpression() ]
| ( "[" "]" )+ ArrayInitializer()
| "#" [ "on" GroupExpression() ]
visit
public void visit(AllocatedShape n)
- f0 -> "[" "[" Expression() ( "," Expression() )* "]" "]"
| "[" Expression() "]"
visit
public void visit(GroupExpression n)
- f0 -> PrimaryExpression()
f1 -> ( "/" PrimaryExpression() )*
visit
public void visit(Statement n)
- f0 -> LabeledStatement()
| Block()
| EmptyStatement()
| StatementExpression() ";"
| SwitchStatement()
| IfStatement()
| WhileStatement()
| DoStatement()
| ForStatement()
| BreakStatement()
| ContinueStatement()
| ReturnStatement()
| ThrowStatement()
| SynchronizedStatement()
| TryStatement()
| OnStatement()
| AtStatement()
| OverallStatement()
visit
public void visit(LabeledStatement n)
- f0 ->
f1 -> ":"
f2 -> Statement()
visit
public void visit(Block n)
- f0 -> "{"
f1 -> ( BlockStatement() )*
f2 -> "}"
visit
public void visit(BlockStatement n)
- f0 -> LocalVariableDeclaration() ";"
| Statement()
| UnmodifiedClassDeclaration()
| UnmodifiedInterfaceDeclaration()
visit
public void visit(LocalVariableDeclaration n)
- f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
visit
public void visit(EmptyStatement n)
- f0 -> ";"
visit
public void visit(StatementExpression n)
- f0 -> PreIncrementExpression()
| PreDecrementExpression()
| PrimaryExpression() [ "++" | "--" | AssignmentOperator() Expression() ]
visit
public void visit(SwitchStatement n)
- f0 -> "switch"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> "{"
f5 -> ( SwitchLabel() ( BlockStatement() )* )*
f6 -> "}"
visit
public void visit(SwitchLabel n)
- f0 -> "case" Expression() ":"
| "default" ":"
visit
public void visit(IfStatement n)
- f0 -> "if"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
f5 -> [ "else" Statement() ]
visit
public void visit(WhileStatement n)
- f0 -> "while"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
visit
public void visit(DoStatement n)
- f0 -> "do"
f1 -> Statement()
f2 -> "while"
f3 -> "("
f4 -> Expression()
f5 -> ")"
f6 -> ";"
visit
public void visit(ForStatement n)
- f0 -> "for"
f1 -> "("
f2 -> [ ForInit() ]
f3 -> ";"
f4 -> [ Expression() ]
f5 -> ";"
f6 -> [ ForUpdate() ]
f7 -> ")"
f8 -> Statement()
visit
public void visit(ForInit n)
- f0 -> LocalVariableDeclaration()
| StatementExpressionList()
visit
public void visit(StatementExpressionList n)
- f0 -> StatementExpression()
f1 -> ( "," StatementExpression() )*
visit
public void visit(ForUpdate n)
- f0 -> StatementExpressionList()
visit
public void visit(BreakStatement n)
- f0 -> "break"
f1 -> [ ]
f2 -> ";"
visit
public void visit(ContinueStatement n)
- f0 -> "continue"
f1 -> [ ]
f2 -> ";"
visit
public void visit(ReturnStatement n)
- f0 -> "return"
f1 -> [ Expression() ]
f2 -> ";"
visit
public void visit(ThrowStatement n)
- f0 -> "throw"
f1 -> Expression()
f2 -> ";"
visit
public void visit(SynchronizedStatement n)
- f0 -> "synchronized"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Block()
visit
public void visit(TryStatement n)
- f0 -> "try"
f1 -> Block()
f2 -> ( "catch" "(" FormalParameter() ")" Block() )*
f3 -> [ "finally" Block() ]
visit
public void visit(OnStatement n)
- f0 -> "on"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
visit
public void visit(AtStatement n)
- f0 -> "at"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
visit
public void visit(NamedLocationList n)
- f0 -> NamedLocation()
f1 -> ( "," NamedLocation() )*
visit
public void visit(NamedLocation n)
- f0 ->
f1 -> "="
f2 -> Expression()
visit
public void visit(OverallStatement n)
- f0 -> "overall"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
All Packages Class Hierarchy This Package Previous Next Index