public abstract class BaseToken extends Object
Constructor and Description |
---|
BaseToken() |
Modifier and Type | Method and Description |
---|---|
String |
getSimpleName()
Return the simple class name for this instance.
|
abstract boolean |
isCompound()
Answer whether this token is a compound token.
|
boolean |
isIdentifier()
Answer whether this token represents an identifier.
|
abstract boolean |
isLeaf()
Answer whether this token is a leaf token.
|
boolean |
isLiteral()
Answer whether this token represents a literal.
|
boolean |
isNest()
Answer whether this token represents a nested collection of tokens.
|
boolean |
isOperator()
Answer whether this token represents a know operator.
|
boolean |
isPunctuation()
Answer whether this token represents a punctuation character.
|
boolean |
match(String s)
Answer whether this token matches the given string.
|
abstract boolean |
match(String s,
boolean fIgnoreCaseFlag)
Answer whether this token matches the given string.
|
public abstract boolean isLeaf()
public abstract boolean isCompound()
public boolean isLiteral()
public boolean isOperator()
public boolean isIdentifier()
public boolean isNest()
public boolean isPunctuation()
public boolean match(String s)
s
- the String to match againspublic abstract boolean match(String s, boolean fIgnoreCaseFlag)
s
- the String to match againsfIgnoreCaseFlag
- the flag that controls if case matterspublic String getSimpleName()