protected class AbstractLexicalAnalyzer.DefaultToken extends java.lang.Object implements LexicalAnalyzer.Token
ARGUMENT_ASSIGNMENT, ASSIGNMENT, BEGIN_$CONSTANT, CHAR, CLOSED_BRACKET, COLON, COMA, END_$CONSTANT, EOF, FALSE, FLOATING_POINT_LITERAL, IDENTIFIER, INTEGER_LITERAL, ISNULL, NOTNULL, NULL, OP_ADD, OP_AND, OP_CONCAT, OP_DIV, OP_EQ, OP_GE, OP_GETATTR, OP_GT, OP_LE, OP_LT, OP_MOD, OP_MULT, OP_NE, OP_NOT, OP_OR, OP_REGEXP, OP_SUBST, OPEN_BRACKET, PARENTHESIS_CLOSE, PARENTHESIS_OPEN, PRED_BETWEEN, PRED_ILIKE, PRED_IN, PRED_IS, PRED_LIKE, STRING_LITERAL, TRUE
Constructor and Description |
---|
DefaultToken() |
Modifier and Type | Method and Description |
---|---|
LexicalAnalyzer.Token |
clone()
Creates a copy of the object.
|
java.lang.String |
getLiteral() |
int |
getType() |
java.lang.Object |
getValue() |
boolean |
is(java.lang.String... values) |
void |
set(int type,
java.lang.String literal) |
void |
set(int type,
java.lang.String literal,
java.lang.Object value) |
void |
setLiteral(java.lang.String literal) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
public LexicalAnalyzer.Token clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface LexicalAnalyzer.Token
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public void set(int type, java.lang.String literal)
set
in interface LexicalAnalyzer.Token
public void set(int type, java.lang.String literal, java.lang.Object value)
set
in interface LexicalAnalyzer.Token
public int getType()
getType
in interface LexicalAnalyzer.Token
public java.lang.Object getValue()
getValue
in interface LexicalAnalyzer.Token
public java.lang.String getLiteral()
getLiteral
in interface LexicalAnalyzer.Token
public void setLiteral(java.lang.String literal)
setLiteral
in interface LexicalAnalyzer.Token
public boolean is(java.lang.String... values)
is
in interface LexicalAnalyzer.Token
public java.lang.String toString()
toString
in class java.lang.Object