public abstract class CompoundBaseToken extends BaseToken
| Constructor and Description |
|---|
CompoundBaseToken() |
| Modifier and Type | Method and Description |
|---|---|
BaseToken |
get(int index)
Return the BaseToken at the given index
|
abstract BaseToken[] |
getTokens()
Return an array of BaseTokens making up the receiver.
|
boolean |
isCompound()
Answer whether this token is a compound token.
|
boolean |
isLeaf()
Answer whether this token is a leaf token.
|
boolean |
match(String s,
boolean fIgnoreCaseFlag)
Answer whether this token matches the given string.
|
int |
size()
Return the size of the collection of BaseTokens making up the receiver.
|
String |
toString()
Return a human-readable description for this token.
|
getSimpleName, isIdentifier, isLiteral, isNest, isOperator, isPunctuation, matchpublic abstract BaseToken[] getTokens()
public int size()
public BaseToken get(int index)
index - the zero base index for retreiving a BaseTokenpublic boolean isLeaf()
public boolean isCompound()
isCompound in class BaseTokenpublic boolean match(String s, boolean fIgnoreCaseFlag)