public class NestedBaseTokens extends CompoundBaseToken
Constructor and Description |
---|
NestedBaseTokens(char chStart,
char chEnd,
BaseToken[] aTokens)
Construct a new NestedBaseTokens with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
char |
getNestEnd()
Obtain the character that ends the nesting.
|
char |
getNestStart()
Obtain the character that begins the nesting.
|
BaseToken[] |
getTokens()
Return an array of BaseTokens making up the receiver.
|
boolean |
isNest()
Answer whether this token represents a nested collection of tokens.
|
String |
toString()
Return a human-readable description for this token.
|
get, isCompound, isLeaf, match, size
getSimpleName, isIdentifier, isLiteral, isOperator, isPunctuation, match
public NestedBaseTokens(char chStart, char chEnd, BaseToken[] aTokens)
chStart
- the character that starts the nestingchEnd
- the character that ends the nestingaTokens
- the right argument for the nodepublic BaseToken[] getTokens()
getTokens
in class CompoundBaseToken
public boolean isNest()
public char getNestStart()
public char getNestEnd()
public String toString()
toString
in class CompoundBaseToken