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.Cloneable
Token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Token.BigintToken
(package private) static class
Token.BinaryStringToken
(package private) static class
Token.CharacterStringToken
(package private) static class
Token.EndOfInputToken
(package private) static class
Token.IdentifierToken
(package private) static class
Token.IntegerToken
(package private) static class
Token.KeywordOrIdentifierToken
(package private) static class
Token.KeywordToken
(package private) static class
Token.LiteralToken
(package private) static class
Token.ParameterToken
(package private) static class
Token.ValueToken
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
ASTERISK
The token "*".(package private) static int
AT
The token "@".(package private) static int
BIGGER
The token ">".(package private) static int
BIGGER_EQUAL
The token ">=".(package private) static int
CLOSE_BRACE
The token "}".(package private) static int
CLOSE_BRACKET
The token "]".(package private) static int
CLOSE_PAREN
The token ")".(package private) static int
COLON
The token ":".(package private) static int
COLON_COLON
The token "::".(package private) static int
COLON_EQ
The token ":=".(package private) static int
COMMA
The token ",".(package private) static int
CONCATENATION
The token "||".(package private) static int
DOT
The token ".".(package private) static int
END_OF_INPUT
End of input.(package private) static int
EQUAL
The token "=".(package private) static int
LITERAL
Token with literal.(package private) static int
MINUS_SIGN
The token "-".(package private) static int
NOT_EQUAL
The token "<>" or "!=".(package private) static int
NOT_TILDE
The token "!~".(package private) static int
OPEN_BRACE
The token "{".(package private) static int
OPEN_BRACKET
The token "[".(package private) static int
OPEN_PAREN
The token "(".(package private) static int
PARAMETER
Token with parameter.(package private) static int
PERCENT
The token "%".(package private) static int
PLUS_SIGN
The token "+".(package private) static int
SEMICOLON
The token ";".(package private) static int
SLASH
The token "/".(package private) static int
SMALLER
The token "<".(package private) static int
SMALLER_EQUAL
The token "<=".(package private) static int
SPATIAL_INTERSECTS
The token "&&".private int
start
(package private) static int
TILDE
The 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.String
asIdentifier()
protected Token
clone()
(package private) void
convertUnicode(int uescape)
(package private) boolean
isQuoted()
(package private) boolean
needsUnicodeConversion()
(package private) void
setStart(int offset)
(package private) int
start()
(package private) void
subtractFromStart(int offset)
(package private) abstract int
tokenType()
(package private) Value
value(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:
clone
in classjava.lang.Object
-
-