EDU.purdue.jtb.syntaxtree
Class IfStatement

java.lang.Object
  extended by EDU.purdue.jtb.syntaxtree.IfStatement
All Implemented Interfaces:
Node, java.io.Serializable

public class IfStatement
extends java.lang.Object
implements Node

Grammar production: f0 -> "if" f1 -> "(" f2 -> Expression() f3 -> ")" f4 -> Statement() f5 -> [ "else" Statement() ]

See Also:
Serialized Form

Field Summary
 NodeToken f0
           
 NodeToken f1
           
 Expression f2
           
 NodeToken f3
           
 Statement f4
           
 NodeOptional f5
           
 
Constructor Summary
IfStatement(Expression n0, Statement n1, NodeOptional n2)
           
IfStatement(NodeToken n0, NodeToken n1, Expression n2, NodeToken n3, Statement n4, NodeOptional 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

f0

public NodeToken f0

f1

public NodeToken f1

f2

public Expression f2

f3

public NodeToken f3

f4

public Statement f4

f5

public NodeOptional f5
Constructor Detail

IfStatement

public IfStatement(NodeToken n0,
                   NodeToken n1,
                   Expression n2,
                   NodeToken n3,
                   Statement n4,
                   NodeOptional n5)

IfStatement

public IfStatement(Expression n0,
                   Statement n1,
                   NodeOptional 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