All Packages Class Hierarchy This Package Previous Next Index
Class hpjava.compiler.expression.ExpressionFindingVisitor
java.lang.Object
|
+----hpjava.compiler.grammar.visitor.DepthFirstVisitor
|
+----hpjava.compiler.expression.ExpressionFindingVisitor
- public class ExpressionFindingVisitor
- extends DepthFirstVisitor
ExpressionFindingVisitor()
-
visit(AllocatedShape)
- f0 -> "[" "[" Expression() ( "," Expression() )* "]" "]"
| "[" Expression() "]"
visit(AllocationExpression)
- f0 -> "new" PrimitiveType() ArrayShapes()
| "new" Name() ( ArrayShapes() | Arguments() [ ClassBody() ] )
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(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(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(ConstructorDeclaration)
- f0 -> [ "public" | "protected" | "private" ]
f1 ->
f2 -> FormalParameters()
f3 -> [ "throws" NameList() ]
f4 -> "{"
f5 -> [ ExplicitConstructorInvocation() ]
f6 -> ( BlockStatement() )*
f7 -> "}"
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(ExplicitConstructorInvocation)
- f0 -> "this" Arguments() ";"
| [ PrimaryExpression() "." ] "super" Arguments() ";"
visit(FieldDeclaration)
- f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )*
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
f4 -> ";"
visit(ForInit)
- f0 -> LocalVariableDeclaration()
| StatementExpressionList()
visit(ForStatement)
- f0 -> "for"
f1 -> "("
f2 -> [ ForInit() ]
f3 -> ";"
f4 -> [ Expression() ]
f5 -> ";"
f6 -> [ ForUpdate() ]
f7 -> ")"
f8 -> Statement()
visit(ForUpdate)
- f0 -> StatementExpressionList()
visit(IfStatement)
- f0 -> "if"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
f5 -> [ "else" Statement() ]
visit(Initializer)
- f0 -> [ "static" ]
f1 -> Block()
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(NamedLocation)
- f0 ->
f1 -> "="
f2 -> Expression()
visit(NestedClassDeclaration)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedClassDeclaration()
visit(NestedInterfaceDeclaration)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedInterfaceDeclaration()
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(Statement)
- f0 -> LabeledStatement()
| Block()
| EmptyStatement()
| StatementExpression() ";"
| SwitchStatement()
| IfStatement()
| WhileStatement()
| DoStatement()
| ForStatement()
| BreakStatement()
| ContinueStatement()
| ReturnStatement()
| ThrowStatement()
| SynchronizedStatement()
| TryStatement()
| OnStatement()
| AtStatement()
| OverallStatement()
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(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(VariableInitializer)
- f0 -> ArrayInitializer()
| Expression()
visit(WhileStatement)
- f0 -> "while"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
ExpressionFindingVisitor
public ExpressionFindingVisitor()
visit
public void visit(CompilationUnit n)
- f0 -> [ PackageDeclaration() ]
f1 -> ( ImportDeclaration() )*
f2 -> ( TypeDeclaration() )*
f3 ->
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(TypeDeclaration n)
- f0 -> ClassDeclaration()
| InterfaceDeclaration()
| ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ClassDeclaration n)
- f0 -> ( "abstract" | "final" | "public" )*
f1 -> UnmodifiedClassDeclaration()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(UnmodifiedClassDeclaration n)
- f0 -> "class"
f1 ->
f2 -> [ "extends" Name() ]
f3 -> [ "implements" NameList() ]
f4 -> ClassBody()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ClassBody n)
- f0 -> "{"
f1 -> ( ClassBodyDeclaration() )*
f2 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(NestedClassDeclaration n)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedClassDeclaration()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ClassBodyDeclaration n)
- f0 -> Initializer()
| NestedClassDeclaration()
| NestedInterfaceDeclaration()
| ConstructorDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(InterfaceDeclaration n)
- f0 -> ( "abstract" | "public" )*
f1 -> UnmodifiedInterfaceDeclaration()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(NestedInterfaceDeclaration n)
- f0 -> ( "static" | "abstract" | "final" | "public" | "protected" | "private" )*
f1 -> UnmodifiedInterfaceDeclaration()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(UnmodifiedInterfaceDeclaration n)
- f0 -> "interface"
f1 ->
f2 -> [ "extends" NameList() ]
f3 -> "{"
f4 -> ( InterfaceMemberDeclaration() )*
f5 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(InterfaceMemberDeclaration n)
- f0 -> NestedClassDeclaration()
| NestedInterfaceDeclaration()
| MethodDeclaration()
| FieldDeclaration()
| ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(FieldDeclaration n)
- f0 -> ( "public" | "protected" | "private" | "static" | "final" | "transient" | "volatile" )*
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
f4 -> ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(VariableDeclarator n)
- f0 -> VariableDeclaratorId()
f1 -> [ "=" VariableInitializer() ]
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(VariableInitializer n)
- f0 -> ArrayInitializer()
| Expression()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ArrayInitializer n)
- f0 -> "{"
f1 -> [ VariableInitializer() ( "," VariableInitializer() )* ]
f2 -> [ "," ]
f3 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(MethodDeclaration n)
- f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 -> MethodDeclarator()
f3 -> [ "throws" NameList() ]
f4 -> ( Block() | ";" )
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ConstructorDeclaration n)
- f0 -> [ "public" | "protected" | "private" ]
f1 ->
f2 -> FormalParameters()
f3 -> [ "throws" NameList() ]
f4 -> "{"
f5 -> [ ExplicitConstructorInvocation() ]
f6 -> ( BlockStatement() )*
f7 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ExplicitConstructorInvocation n)
- f0 -> "this" Arguments() ";"
| [ PrimaryExpression() "." ] "super" Arguments() ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Initializer n)
- f0 -> [ "static" ]
f1 -> Block()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Type n)
- f0 -> ( PrimitiveType() | Name() )
f1 -> ( ArraySignature() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(DistArraySecRefDimList n)
- f0 -> DistArraySecRefDim()
f1 -> ( "," DistArraySecRefDim() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(DistArraySecRefDim n)
- f0 -> Triplet()
| Expression()
| KernelSubrange()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Triplet n)
- f0 -> [ Expression() ]
f1 -> ":"
f2 -> [ Expression() ]
f3 -> [ ":" Expression() ]
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(KernelSubrange n)
- f0 -> "<" ( PrimaryExpression() | ":" ) ">"
| "<" KernelSubrange() ">"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(TripletOrExpressionList n)
- f0 -> TripletOrExpression()
f1 -> ( "," TripletOrExpression() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(TripletOrExpression n)
- f0 -> Triplet()
| Expression()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Literal n)
- f0 ->
|
|
|
| BooleanLiteral()
| NullLiteral()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(BooleanLiteral n)
- f0 -> "true"
| "false"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(NullLiteral n)
- f0 -> "null"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Arguments n)
- f0 -> "("
f1 -> [ ArgumentList() ]
f2 -> ")"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ArgumentList n)
- f0 -> Expression()
f1 -> ( "," Expression() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(AllocationExpression n)
- f0 -> "new" PrimitiveType() ArrayShapes()
| "new" Name() ( ArrayShapes() | Arguments() [ ClassBody() ] )
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ArrayShapes n)
- f0 -> ( AllocatedShape() )+ ( ArraySignature() )* [ "on" GroupExpression() ]
| ( "[" "]" )+ ArrayInitializer()
| "#" [ "on" GroupExpression() ]
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(AllocatedShape n)
- f0 -> "[" "[" Expression() ( "," Expression() )* "]" "]"
| "[" Expression() "]"
- Overrides:
- visit in class DepthFirstVisitor
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()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(LabeledStatement n)
- f0 ->
f1 -> ":"
f2 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(Block n)
- f0 -> "{"
f1 -> ( BlockStatement() )*
f2 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(BlockStatement n)
- f0 -> LocalVariableDeclaration() ";"
| Statement()
| UnmodifiedClassDeclaration()
| UnmodifiedInterfaceDeclaration()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(LocalVariableDeclaration n)
- f0 -> [ "final" ]
f1 -> Type()
f2 -> VariableDeclarator()
f3 -> ( "," VariableDeclarator() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(SwitchStatement n)
- f0 -> "switch"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> "{"
f5 -> ( SwitchLabel() ( BlockStatement() )* )*
f6 -> "}"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(SwitchLabel n)
- f0 -> "case" Expression() ":"
| "default" ":"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(IfStatement n)
- f0 -> "if"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
f5 -> [ "else" Statement() ]
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(WhileStatement n)
- f0 -> "while"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(DoStatement n)
- f0 -> "do"
f1 -> Statement()
f2 -> "while"
f3 -> "("
f4 -> Expression()
f5 -> ")"
f6 -> ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ForStatement n)
- f0 -> "for"
f1 -> "("
f2 -> [ ForInit() ]
f3 -> ";"
f4 -> [ Expression() ]
f5 -> ";"
f6 -> [ ForUpdate() ]
f7 -> ")"
f8 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ForInit n)
- f0 -> LocalVariableDeclaration()
| StatementExpressionList()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(StatementExpressionList n)
- f0 -> StatementExpression()
f1 -> ( "," StatementExpression() )*
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ForUpdate n)
- f0 -> StatementExpressionList()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(ThrowStatement n)
- f0 -> "throw"
f1 -> Expression()
f2 -> ";"
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(SynchronizedStatement n)
- f0 -> "synchronized"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Block()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(TryStatement n)
- f0 -> "try"
f1 -> Block()
f2 -> ( "catch" "(" FormalParameter() ")" Block() )*
f3 -> [ "finally" Block() ]
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(OnStatement n)
- f0 -> "on"
f1 -> "("
f2 -> Expression()
f3 -> ")"
f4 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(AtStatement n)
- f0 -> "at"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(NamedLocation n)
- f0 ->
f1 -> "="
f2 -> Expression()
- Overrides:
- visit in class DepthFirstVisitor
visit
public void visit(OverallStatement n)
- f0 -> "overall"
f1 -> "("
f2 -> NamedLocationList()
f3 -> ")"
f4 -> Statement()
- Overrides:
- visit in class DepthFirstVisitor
All Packages Class Hierarchy This Package Previous Next Index