com.ibm.adt.ovf.ext.punit.ast
Class ASTNodeToken

java.lang.Object
  extended by com.ibm.adt.ovf.ext.punit.ast.ASTNode
      extended by com.ibm.adt.ovf.ext.punit.ast.ASTNodeToken
All Implemented Interfaces:
IASTNodeToken
Direct Known Subclasses:
Base, Exponent0, Lpar, Operator0, Operator1, OptionalSpace, OptionalWS0, OptionalWS1, PositiveNumber0, Rpar, SimpleName0

public class ASTNodeToken
extends ASTNode
implements IASTNodeToken


Field Summary
 
Fields inherited from class com.ibm.adt.ovf.ext.punit.ast.ASTNode
leftIToken, parent, rightIToken
 
Constructor Summary
ASTNodeToken(IToken token)
           
 
Method Summary
 void accept(ArgumentVisitor v, java.lang.Object o)
           
 java.lang.Object accept(ResultArgumentVisitor v, java.lang.Object o)
           
 java.lang.Object accept(ResultVisitor v)
           
 void accept(Visitor v)
           
 boolean equals(java.lang.Object o)
           
 java.util.ArrayList getAllChildren()
          A token class has no children.
 IToken getIToken()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.adt.ovf.ext.punit.ast.ASTNode
acceptAll, getChildren, getFollowingAdjuncts, getLeftIToken, getNextAst, getParent, getPrecedingAdjuncts, getRightIToken, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.adt.ovf.ext.punit.ast.IASTNodeToken
getLeftIToken, getRightIToken
 

Constructor Detail

ASTNodeToken

public ASTNodeToken(IToken token)
Method Detail

getIToken

public IToken getIToken()

toString

public java.lang.String toString()
Overrides:
toString in class ASTNode

getAllChildren

public java.util.ArrayList getAllChildren()
A token class has no children. So, we return the empty list.

Specified by:
getAllChildren in class ASTNode

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class ASTNode

hashCode

public int hashCode()
Overrides:
hashCode in class ASTNode

accept

public void accept(Visitor v)
Specified by:
accept in interface IASTNodeToken
Specified by:
accept in class ASTNode

accept

public void accept(ArgumentVisitor v,
                   java.lang.Object o)
Specified by:
accept in interface IASTNodeToken
Specified by:
accept in class ASTNode

accept

public java.lang.Object accept(ResultVisitor v)
Specified by:
accept in interface IASTNodeToken
Specified by:
accept in class ASTNode

accept

public java.lang.Object accept(ResultArgumentVisitor v,
                               java.lang.Object o)
Specified by:
accept in interface IASTNodeToken
Specified by:
accept in class ASTNode


© Copyright 2008 IBM Corp. 2008 All Rights Reserved