Package org.h2.command
Class Token
- java.lang.Object
-
- org.h2.command.Token
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
Token.EndOfInputToken,Token.IdentifierToken,Token.KeywordOrIdentifierToken,Token.KeywordToken,Token.LiteralToken,Token.ParameterToken
public abstract class Token extends java.lang.Object implements java.lang.CloneableToken.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classToken.BigintToken(package private) static classToken.BinaryStringToken(package private) static classToken.CharacterStringToken(package private) static classToken.EndOfInputToken(package private) static classToken.IdentifierToken(package private) static classToken.IntegerToken(package private) static classToken.KeywordOrIdentifierToken(package private) static classToken.KeywordToken(package private) static classToken.LiteralToken(package private) static classToken.ParameterToken(package private) static classToken.ValueToken
-
Field Summary
Fields Modifier and Type Field Description (package private) static intASTERISKThe token "*".(package private) static intATThe token "@".(package private) static intBIGGERThe token ">".(package private) static intBIGGER_EQUALThe token ">=".(package private) static intCLOSE_BRACEThe token "}".(package private) static intCLOSE_BRACKETThe token "]".(package private) static intCLOSE_PARENThe token ")".(package private) static intCOLONThe token ":".(package private) static intCOLON_COLONThe token "::".(package private) static intCOLON_EQThe token ":=".(package private) static intCOMMAThe token ",".(package private) static intCONCATENATIONThe token "||".(package private) static intDOTThe token ".".(package private) static intEND_OF_INPUTEnd of input.(package private) static intEQUALThe token "=".(package private) static intLITERALToken with literal.(package private) static intMINUS_SIGNThe token "-".(package private) static intNOT_EQUALThe token "<>" or "!=".(package private) static intNOT_TILDEThe token "!~".(package private) static intOPEN_BRACEThe token "{".(package private) static intOPEN_BRACKETThe token "[".(package private) static intOPEN_PARENThe token "(".(package private) static intPARAMETERToken with parameter.(package private) static intPERCENTThe token "%".(package private) static intPLUS_SIGNThe token "+".(package private) static intSEMICOLONThe token ";".(package private) static intSLASHThe token "/".(package private) static intSMALLERThe token "<".(package private) static intSMALLER_EQUALThe token "<=".(package private) static intSPATIAL_INTERSECTSThe token "&&".private intstart(package private) static intTILDEThe token "~".(package private) static java.lang.String[]TOKENS
-
Constructor Summary
Constructors Constructor Description Token(int start)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringasIdentifier()protected Tokenclone()(package private) voidconvertUnicode(int uescape)(package private) booleanisQuoted()(package private) booleanneedsUnicodeConversion()(package private) voidsetStart(int offset)(package private) intstart()(package private) voidsubtractFromStart(int offset)(package private) abstract inttokenType()(package private) Valuevalue(CastDataProvider provider)
-
-
-
Field Detail
-
PARAMETER
static final int PARAMETER
Token with parameter.- See Also:
- Constant Field Values
-
END_OF_INPUT
static final int END_OF_INPUT
End of input.- See Also:
- Constant Field Values
-
LITERAL
static final int LITERAL
Token with literal.- See Also:
- Constant Field Values
-
EQUAL
static final int EQUAL
The token "=".- See Also:
- Constant Field Values
-
BIGGER_EQUAL
static final int BIGGER_EQUAL
The token ">=".- See Also:
- Constant Field Values
-
BIGGER
static final int BIGGER
The token ">".- See Also:
- Constant Field Values
-
SMALLER
static final int SMALLER
The token "<".- See Also:
- Constant Field Values
-
SMALLER_EQUAL
static final int SMALLER_EQUAL
The token "<=".- See Also:
- Constant Field Values
-
NOT_EQUAL
static final int NOT_EQUAL
The token "<>" or "!=".- See Also:
- Constant Field Values
-
AT
static final int AT
The token "@".- See Also:
- Constant Field Values
-
MINUS_SIGN
static final int MINUS_SIGN
The token "-".- See Also:
- Constant Field Values
-
PLUS_SIGN
static final int PLUS_SIGN
The token "+".- See Also:
- Constant Field Values
-
CONCATENATION
static final int CONCATENATION
The token "||".- See Also:
- Constant Field Values
-
OPEN_PAREN
static final int OPEN_PAREN
The token "(".- See Also:
- Constant Field Values
-
CLOSE_PAREN
static final int CLOSE_PAREN
The token ")".- See Also:
- Constant Field Values
-
SPATIAL_INTERSECTS
static final int SPATIAL_INTERSECTS
The token "&&".- See Also:
- Constant Field Values
-
ASTERISK
static final int ASTERISK
The token "*".- See Also:
- Constant Field Values
-
COMMA
static final int COMMA
The token ",".- See Also:
- Constant Field Values
-
DOT
static final int DOT
The token ".".- See Also:
- Constant Field Values
-
OPEN_BRACE
static final int OPEN_BRACE
The token "{".- See Also:
- Constant Field Values
-
CLOSE_BRACE
static final int CLOSE_BRACE
The token "}".- See Also:
- Constant Field Values
-
SLASH
static final int SLASH
The token "/".- See Also:
- Constant Field Values
-
PERCENT
static final int PERCENT
The token "%".- See Also:
- Constant Field Values
-
SEMICOLON
static final int SEMICOLON
The token ";".- See Also:
- Constant Field Values
-
COLON
static final int COLON
The token ":".- See Also:
- Constant Field Values
-
OPEN_BRACKET
static final int OPEN_BRACKET
The token "[".- See Also:
- Constant Field Values
-
CLOSE_BRACKET
static final int CLOSE_BRACKET
The token "]".- See Also:
- Constant Field Values
-
TILDE
static final int TILDE
The token "~".- See Also:
- Constant Field Values
-
COLON_COLON
static final int COLON_COLON
The token "::".- See Also:
- Constant Field Values
-
COLON_EQ
static final int COLON_EQ
The token ":=".- See Also:
- Constant Field Values
-
NOT_TILDE
static final int NOT_TILDE
The token "!~".- See Also:
- Constant Field Values
-
TOKENS
static final java.lang.String[] TOKENS
-
start
private int start
-
-
Method Detail
-
start
final int start()
-
setStart
final void setStart(int offset)
-
subtractFromStart
final void subtractFromStart(int offset)
-
tokenType
abstract int tokenType()
-
asIdentifier
java.lang.String asIdentifier()
-
isQuoted
boolean isQuoted()
-
value
Value value(CastDataProvider provider)
-
needsUnicodeConversion
boolean needsUnicodeConversion()
-
convertUnicode
void convertUnicode(int uescape)
-
clone
protected Token clone()
- Overrides:
clonein classjava.lang.Object
-
-