Class SequenceBaseToken
- java.lang.Object
-
- com.tangosol.coherence.dsltools.base.BaseToken
-
- com.tangosol.coherence.dsltools.base.CompoundBaseToken
-
- com.tangosol.coherence.dsltools.base.SequenceBaseToken
-
public class SequenceBaseToken extends CompoundBaseToken
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
Constructors Constructor Description SequenceBaseToken(BaseToken[] aTokens)
Construct a new SequenceBaseToken with the array of tokens.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseToken[]
getTokens()
Return an array of BaseTokens making up the receiver.-
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 Detail
-
SequenceBaseToken
public SequenceBaseToken(BaseToken[] aTokens)
Construct a new SequenceBaseToken with the array of tokens.- Parameters:
aTokens
- an array of BaseTokens
-
-
Method Detail
-
getTokens
public BaseToken[] 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.
-
-