Lexer

Undocumented in source.
class Lexer {}

Constructors

this
this(string input)
Undocumented in source.
this
this(string input, CommentHandler commentHandler)
Undocumented in source.
this
this(string input, CommentHandler commentHandler, string dbType)
Undocumented in source.
this
this(string input, bool skipComment)
Undocumented in source.
this
this(char[] input, int inputLength, bool skipComment)
Undocumented in source.

Members

Classes

SavePoint
class SavePoint
Undocumented in source.

Functions

addComment
void addComment(string comment)
Undocumented in source. Be warned that the author may not have intended to support it.
addSymbol
string addSymbol()
Undocumented in source. Be warned that the author may not have intended to support it.
arraycopy
void arraycopy(int srcPos, char[] dest, int destPos, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
bp
int bp()
Undocumented in source. Be warned that the author may not have intended to support it.
charAt
char charAt(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
computeRowAndColumn
void computeRowAndColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
config
void config(SQLParserFeature feature, bool state)
Undocumented in source. Be warned that the author may not have intended to support it.
current
char current()
Undocumented in source. Be warned that the author may not have intended to support it.
decimalValue
BigDecimal decimalValue()
Undocumented in source. Be warned that the author may not have intended to support it.
getCommentCount
int getCommentCount()
Undocumented in source. Be warned that the author may not have intended to support it.
getCommentHandler
CommentHandler getCommentHandler()
Undocumented in source. Be warned that the author may not have intended to support it.
getDbType
string getDbType()
Undocumented in source. Be warned that the author may not have intended to support it.
getKeywods
Keywords getKeywods()
Undocumented in source. Be warned that the author may not have intended to support it.
getLine
int getLine()
Undocumented in source. Be warned that the author may not have intended to support it.
getPosColumn
int getPosColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
getPosLine
int getPosLine()
Undocumented in source. Be warned that the author may not have intended to support it.
getSource
string getSource()
Undocumented in source. Be warned that the author may not have intended to support it.
hasComment
bool hasComment()
Undocumented in source. Be warned that the author may not have intended to support it.
hash_lower
long hash_lower()
Undocumented in source. Be warned that the author may not have intended to support it.
hexString
string hexString()
Undocumented in source. Be warned that the author may not have intended to support it.
identifierEquals
bool identifierEquals(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
identifierEquals
bool identifierEquals(long _hash_lower)
Undocumented in source. Be warned that the author may not have intended to support it.
info
string info()
Undocumented in source. Be warned that the author may not have intended to support it.
initBuff
void initBuff(int size)
Undocumented in source. Be warned that the author may not have intended to support it.
integerValue
Number integerValue()
Undocumented in source. Be warned that the author may not have intended to support it.
isAllowComment
bool isAllowComment()
Undocumented in source. Be warned that the author may not have intended to support it.
isDigit
bool isDigit(char ch)
Undocumented in source. Be warned that the author may not have intended to support it.
isEOF
bool isEOF()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnabled
bool isEnabled(SQLParserFeature feature)
Undocumented in source. Be warned that the author may not have intended to support it.
isEndOfComment
bool isEndOfComment()
Undocumented in source. Be warned that the author may not have intended to support it.
isKeepComments
bool isKeepComments()
Undocumented in source. Be warned that the author may not have intended to support it.
isSafeComment
bool isSafeComment(string comment)
Undocumented in source. Be warned that the author may not have intended to support it.
lexError
void lexError(string key, Object[] args)

Report an error at the given _position using the provided arguments.

mark
SavePoint mark()
Undocumented in source. Be warned that the author may not have intended to support it.
nextToken
void nextToken()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenBy
void nextTokenBy()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenComma
void nextTokenComma()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenCommaValue
void nextTokenCommaValue()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenEq
void nextTokenEq()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenIdent
void nextTokenIdent()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenLParen
void nextTokenLParen()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenNotOrNull
void nextTokenNotOrNull()
Undocumented in source. Be warned that the author may not have intended to support it.
nextTokenValue
void nextTokenValue()
Undocumented in source. Be warned that the author may not have intended to support it.
nextVarIndex
int nextVarIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
numberExpr
SQLNumberExpr numberExpr()
Undocumented in source. Be warned that the author may not have intended to support it.
numberExpr
SQLNumberExpr numberExpr(bool negate)
Undocumented in source. Be warned that the author may not have intended to support it.
numberString
string numberString()
Undocumented in source. Be warned that the author may not have intended to support it.
pos
int pos()

Return the current _token's _position: a 0-based offset from beginning of the raw input stream (before unicode translation)

putChar
void putChar(char ch)

Append a character to sbuf.

readAndResetComments
List!string readAndResetComments()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset(SavePoint savePoint)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset(int _pos)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset(int _mark, char _markChar, Token _token)
Undocumented in source. Be warned that the author may not have intended to support it.
scanAlias
void scanAlias()
Undocumented in source. Be warned that the author may not have intended to support it.
scanChar
void scanChar()
Undocumented in source. Be warned that the author may not have intended to support it.
scanComment
void scanComment()
Undocumented in source. Be warned that the author may not have intended to support it.
scanHexaDecimal
void scanHexaDecimal()
Undocumented in source. Be warned that the author may not have intended to support it.
scanIdentifier
void scanIdentifier()
Undocumented in source. Be warned that the author may not have intended to support it.
scanLBracket
void scanLBracket()
Undocumented in source. Be warned that the author may not have intended to support it.
scanNumber
void scanNumber()
Undocumented in source. Be warned that the author may not have intended to support it.
scanSharp
void scanSharp()
Undocumented in source. Be warned that the author may not have intended to support it.
scanString
void scanString()
Undocumented in source. Be warned that the author may not have intended to support it.
scanString2
void scanString2()
Undocumented in source. Be warned that the author may not have intended to support it.
scanString2_d
void scanString2_d()
Undocumented in source. Be warned that the author may not have intended to support it.
scanVariable
void scanVariable()
Undocumented in source. Be warned that the author may not have intended to support it.
scanVariable_at
void scanVariable_at()
Undocumented in source. Be warned that the author may not have intended to support it.
setAllowComment
void setAllowComment(bool allowComment)
Undocumented in source. Be warned that the author may not have intended to support it.
setCommentHandler
void setCommentHandler(CommentHandler commentHandler)
Undocumented in source. Be warned that the author may not have intended to support it.
setKeepComments
void setKeepComments(bool keepComments)
Undocumented in source. Be warned that the author may not have intended to support it.
skipToEOF
void skipToEOF()
Undocumented in source. Be warned that the author may not have intended to support it.
stringVal
string stringVal()

The value of a literal _token, recorded as a string. For integers, leading 0x and 'l' suffixes are suppressed.

subString
string subString(int offset, int count)
Undocumented in source. Be warned that the author may not have intended to support it.
sub_chars
char[] sub_chars(int offset, int count)
Undocumented in source. Be warned that the author may not have intended to support it.
token
Token token()

Return the current token, set by nextToken().

unscan
void unscan()
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

CommentHandler
interface CommentHandler
Undocumented in source.

Static functions

digits
int[] digits()
Undocumented in source. Be warned that the author may not have intended to support it.
parameterize
string parameterize(string sql, string dbType)
Undocumented in source. Be warned that the author may not have intended to support it.
symbols_l2
SymbolTable symbols_l2()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_hash_lower
long _hash_lower;
Undocumented in source.
_mark
int _mark;
Undocumented in source.
_pos
int _pos;
Undocumented in source.
_stringVal
string _stringVal;
Undocumented in source.
_token
Token _token;
Undocumented in source.
buf
char[] buf;
Undocumented in source.
bufPos
int bufPos;
Undocumented in source.
ch
char ch;
Undocumented in source.
commentCount
int commentCount;
Undocumented in source.
commentHandler
CommentHandler commentHandler;
Undocumented in source.
comments
List!string comments;
Undocumented in source.
dbType
string dbType;
Undocumented in source.
endOfComment
bool endOfComment;
Undocumented in source.
features
int features;
Undocumented in source.
hash
long hash;
Undocumented in source.
keepComments
bool keepComments;
Undocumented in source.
keywods
Keywords keywods;
Undocumented in source.
line
int line;
Undocumented in source.
lines
int lines;
Undocumented in source.
optimizedForParameterized
bool optimizedForParameterized;
Undocumented in source.
skipComment
bool skipComment;
Undocumented in source.
text
string text;
Undocumented in source.

Meta