minijava.syntaxtree
Class ClassDeclaration

java.lang.Object
  extended by minijava.syntaxtree.ClassDeclaration
All Implemented Interfaces:
java.io.Serializable, Node

public class ClassDeclaration
extends java.lang.Object
implements Node

Grammar production:

 nodeToken -> "class"
 identifier -> Identifier()
 nodeToken1 -> "{"
 nodeListOptional -> ( VarDeclaration() )*
 nodeListOptional1 -> ( MethodDeclaration() )*
 nodeToken2 -> "}"
 

See Also:
Serialized Form

Field Summary
 Identifier identifier
           
 NodeListOptional nodeListOptional
           
 NodeListOptional nodeListOptional1
           
 NodeToken nodeToken
           
 NodeToken nodeToken1
           
 NodeToken nodeToken2
           
 
Constructor Summary
ClassDeclaration(Identifier n0, NodeListOptional n1, NodeListOptional n2)
           
ClassDeclaration(NodeToken n0, Identifier n1, NodeToken n2, NodeListOptional n3, NodeListOptional n4, NodeToken n5)
           
 
Method Summary
<R> R
accept(GJNoArguVisitor<R> v)
           
<R,A> R
accept(GJVisitor<R,A> v, A argu)
           
<A> void
accept(GJVoidVisitor<A> v, A argu)
           
 void accept(Visitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeToken

public NodeToken nodeToken

identifier

public Identifier identifier

nodeToken1

public NodeToken nodeToken1

nodeListOptional

public NodeListOptional nodeListOptional

nodeListOptional1

public NodeListOptional nodeListOptional1

nodeToken2

public NodeToken nodeToken2
Constructor Detail

ClassDeclaration

public ClassDeclaration(NodeToken n0,
                        Identifier n1,
                        NodeToken n2,
                        NodeListOptional n3,
                        NodeListOptional n4,
                        NodeToken n5)

ClassDeclaration

public ClassDeclaration(Identifier n0,
                        NodeListOptional n1,
                        NodeListOptional n2)
Method Detail

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