EDU.purdue.jtb.syntaxtree
Class MethodDeclaration
java.lang.Object
EDU.purdue.jtb.syntaxtree.MethodDeclaration
- All Implemented Interfaces:
- Node, java.io.Serializable
public class MethodDeclaration
- extends java.lang.Object
- implements Node
Grammar production:
f0 -> ( "public" | "protected" | "private" | "static" | "abstract" | "final" | "native" | "synchronized" )*
f1 -> ResultType()
f2 -> MethodDeclarator()
f3 -> [ "throws" NameList() ]
f4 -> ( Block() | ";" )
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
f0
public NodeListOptional f0
f1
public ResultType f1
f2
public MethodDeclarator f2
f3
public NodeOptional f3
f4
public NodeChoice f4
MethodDeclaration
public MethodDeclaration(NodeListOptional n0,
ResultType n1,
MethodDeclarator n2,
NodeOptional n3,
NodeChoice n4)
accept
public void accept(Visitor v)
- Specified by:
accept
in interface Node
accept
public <R,A> R accept(GJVisitor<R,A> v,
A argu)
- Specified by:
accept
in interface Node
accept
public <R> R accept(GJNoArguVisitor<R> v)
- Specified by:
accept
in interface Node
accept
public <A> void accept(GJVoidVisitor<A> v,
A argu)
- Specified by:
accept
in interface Node