|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.configurableparser.tokens.Token
public abstract class Token
Base class for tokens. Different token types should subclass this class.
| Constructor Summary | |
|---|---|
protected |
Token(java.lang.String source)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object arg)
|
int |
getColumnNumber()
|
int |
getLength()
Gets the length of the source text matched by this token |
int |
getLineNumber()
|
java.lang.String |
getSource()
Gets the source text matched by this token |
int |
hashCode()
|
boolean |
isBinary()
|
boolean |
isComment()
|
boolean |
isFunction()
|
boolean |
isIdentifier()
|
boolean |
isImplicitMulRhs()
Whether the token can appear on the right hand side of implicit multiplication '2 x'. |
boolean |
isNumber()
|
boolean |
isOperator()
|
boolean |
isPrefix()
|
boolean |
isString()
|
boolean |
isSuffix()
|
boolean |
isSymbol()
|
boolean |
isTerminal()
|
boolean |
isTernary()
|
boolean |
isWhiteSpace()
|
void |
setPosition(int line,
int column)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Token(java.lang.String source)
source - | Method Detail |
|---|
public java.lang.String getSource()
public int getLength()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isWhiteSpace()
public boolean isIdentifier()
public boolean isFunction()
public boolean isOperator()
public boolean isBinary()
public boolean isPrefix()
public boolean isSuffix()
public boolean isTernary()
public boolean isNumber()
public boolean isComment()
public boolean isString()
public boolean isSymbol()
public boolean isImplicitMulRhs()
public boolean equals(java.lang.Object arg)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isTerminal()
public void setPosition(int line,
int column)
public int getLineNumber()
public int getColumnNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||