Class CompoundBaseToken
java.lang.Object
com.tangosol.coherence.dsltools.base.BaseToken
com.tangosol.coherence.dsltools.base.CompoundBaseToken
- Direct Known Subclasses:
 NestedBaseTokens,SequenceBaseToken
CompoundBaseToken is the abstract base class for all tokens processed by the
 low level BaseTokenScanner that are made up of two or more BaseTokens.
- Author:
 - djl 2009.03.14
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionget(int index) Return the BaseToken at the given indexabstract BaseToken[]Return an array of BaseTokens making up the receiver.booleanAnswer whether this token is a compound token.booleanisLeaf()Answer whether this token is a leaf token.booleanAnswer whether this token matches the given string.intsize()Return the size of the collection of BaseTokens making up the receiver.toString()Return a human-readable description for this token.Methods inherited from class com.tangosol.coherence.dsltools.base.BaseToken
getSimpleName, isIdentifier, isLiteral, isNest, isOperator, isPunctuation, match 
- 
Constructor Details
- 
CompoundBaseToken
public CompoundBaseToken() 
 - 
 - 
Method Details
- 
getTokens
Return an array of BaseTokens making up the receiver.- Returns:
 - the an array of BaseTokens making up the receiver.
 
 - 
size
public int size()Return the size of the collection of BaseTokens making up the receiver.- Returns:
 - the size of the BaseTocken collection making up the receiver
 
 - 
get
Return the BaseToken at the given index- Parameters:
 index- the zero base index for retreiving a BaseToken- Returns:
 - the BaseToken at the given index
 
 - 
isLeaf
public boolean isLeaf()Answer whether this token is a leaf token. - 
isCompound
public boolean isCompound()Answer whether this token is a compound token.- Specified by:
 isCompoundin classBaseToken- Returns:
 - the answer to the question "is this token compound?"
 
 - 
match
Answer whether this token matches the given string. - 
toString
Return a human-readable description for this token. 
 -