Package org.apache.ignite.internal.sql
Class SqlLexerLookAheadToken
- java.lang.Object
-
- org.apache.ignite.internal.sql.SqlLexerLookAheadToken
-
- All Implemented Interfaces:
SqlLexerToken
public class SqlLexerLookAheadToken extends Object implements SqlLexerToken
Plain immutable look-ahead parser token.
-
-
Constructor Summary
Constructors Constructor Description SqlLexerLookAheadToken(String sql, String token, int tokenPos, SqlLexerTokenType tokenTyp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringsql()Stringtoken()chartokenFirstChar()inttokenPosition()SqlLexerTokenTypetokenType()
-
-
-
Constructor Detail
-
SqlLexerLookAheadToken
public SqlLexerLookAheadToken(String sql, String token, int tokenPos, SqlLexerTokenType tokenTyp)
Constructor.- Parameters:
sql- Original SQL.token- Token.tokenPos- Token position.tokenTyp- Token type.
-
-
Method Detail
-
sql
public String sql()
- Specified by:
sqlin interfaceSqlLexerToken- Returns:
- Original SQL.
-
token
public String token()
- Specified by:
tokenin interfaceSqlLexerToken- Returns:
- Current token.
-
tokenFirstChar
public char tokenFirstChar()
- Specified by:
tokenFirstCharin interfaceSqlLexerToken- Returns:
- First character of the current token.
-
tokenPosition
public int tokenPosition()
- Specified by:
tokenPositionin interfaceSqlLexerToken- Returns:
- Current token start position.
-
tokenType
public SqlLexerTokenType tokenType()
- Specified by:
tokenTypein interfaceSqlLexerToken- Returns:
- Token type.
-
-