Class SequenceBaseToken
java.lang.Object
com.tangosol.coherence.dsltools.base.BaseToken
com.tangosol.coherence.dsltools.base.CompoundBaseToken
com.tangosol.coherence.dsltools.base.SequenceBaseToken
SequenceBaseToken is a token that holds a sequence of tokens. This nesting
of tokens makes many algorithms easier in the higher levels of a parser.
- Author:
- djl 2009.03.14
-
Constructor Summary
ConstructorDescriptionSequenceBaseToken
(BaseToken[] aTokens) Construct a new SequenceBaseToken with the array of tokens. -
Method Summary
Methods inherited from class com.tangosol.coherence.dsltools.base.CompoundBaseToken
get, isCompound, isLeaf, match, size, toString
Methods inherited from class com.tangosol.coherence.dsltools.base.BaseToken
getSimpleName, isIdentifier, isLiteral, isNest, isOperator, isPunctuation, match
-
Constructor Details
-
SequenceBaseToken
Construct a new SequenceBaseToken with the array of tokens.- Parameters:
aTokens
- an array of BaseTokens
-
-
Method Details
-
getTokens
Return an array of BaseTokens making up the receiver.- Specified by:
getTokens
in classCompoundBaseToken
- Returns:
- the an array of BaseTokens making up the receiver.
-