org.springframework.expression.spel.standard
Class Token
java.lang.Object
org.springframework.expression.spel.standard.Token
class Token
- extends java.lang.Object
Holder for a kind of token, the associated data and its position in the input data stream (start/end).
- Since:
- 3.0
- Author:
- Andy Clement
Constructor Summary |
Token(TokenKind tokenKind,
char[] tokenData,
int pos,
int endpos)
|
Token(TokenKind tokenKind,
int startpos,
int endpos)
Constructor for use when there is no particular data for the token (eg. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
kind
TokenKind kind
data
java.lang.String data
startpos
int startpos
endpos
int endpos
Token
Token(TokenKind tokenKind,
int startpos,
int endpos)
- Constructor for use when there is no particular data for the token (eg. TRUE or '+')
- Parameters:
startpos
- the exact startendpos
- the index to the last character
Token
Token(TokenKind tokenKind,
char[] tokenData,
int pos,
int endpos)
getKind
public TokenKind getKind()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isIdentifier
public boolean isIdentifier()
isNumericRelationalOperator
public boolean isNumericRelationalOperator()
stringValue
public java.lang.String stringValue()
asInstanceOfToken
public Token asInstanceOfToken()
asMatchesToken
public Token asMatchesToken()
asBetweenToken
public Token asBetweenToken()