Class MySqlLexer
java.lang.Object
com.alibaba.druid.sql.parser.Lexer
com.alibaba.druid.sql.dialect.mysql.parser.MySqlLexer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.alibaba.druid.sql.parser.Lexer
Lexer.CommentHandler, Lexer.SavePoint -
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.parser.Lexer
buf, bufPos, ch, commentCount, commentHandler, comments, dbType, endOfComment, features, hash, hashLCase, keepComments, keepSourceLocation, keywords, line, lines, mark, numberExp, numberSale, optimizedForParameterized, pos, posColumn, posLine, skipComment, startPos, stringVal, symbols_l2, text, timeZone, token -
Constructor Summary
ConstructorsConstructorDescriptionMySqlLexer(char[] input, int inputLength, boolean skipComment) MySqlLexer(String input) MySqlLexer(String input, boolean skipComment, boolean keepComments) MySqlLexer(String input, SQLParserFeature... features) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisIdentifierChar(char c) voidvoidvoidprotected final voidvoidprotected voidvoidMethods inherited from class com.alibaba.druid.sql.parser.Lexer
addComment, addSymbol, arraycopy, bp, charAt, computeRowAndColumn, config, current, decimalValue, getCommentCount, getCommentHandler, getComments, getDbType, getKeywords, getLine, getPosColumn, getPosLine, getSource, getTimeZone, hasComment, hashLCase, hexString, identifierEquals, identifierEquals, info, initBuff, integerValue, isAllowComment, isDigit, isDigit2, isEnabled, isEndOfComment, isEOF, isKeepComments, isNegativeIntegerValue, isSafeComment, lexError, mark, markOut, nextPath, nextToken, nextTokenAlias, nextTokenBy, nextTokenComma, nextTokenCommaValue, nextTokenEq, nextTokenForSet, nextTokenIdent, nextTokenLParen, nextTokenNotOrNull, nextTokenValue, nextVarIndex, numberExpr, numberExpr, numberExpr, numberString, parameterize, pos, putChar, readAndResetComments, reset, reset, reset, reset, scanAlias, scanChar, scanHexaDecimal, scanHiveComment, scanLBracket, scanLineArgument, scanNumber, scanSQLType, scanSQLTypeV2, scanString2, scanString2_d, setAllowComment, setCommentHandler, setKeepComments, setTimeZone, setToken, skipToEOF, skipToNextLine, skipToNextLineOrParameter, stringVal, sub_chars, subString, subString, token, unscan
-
Field Details
-
quoteTable
-
DEFAULT_MYSQL_KEYWORDS
-
-
Constructor Details
-
MySqlLexer
public MySqlLexer(char[] input, int inputLength, boolean skipComment) -
MySqlLexer
-
MySqlLexer
-
MySqlLexer
-
-
Method Details
-
scanSharp
public void scanSharp() -
scanVariable
public void scanVariable()- Overrides:
scanVariablein classLexer
-
scanVariable_at
protected void scanVariable_at()- Overrides:
scanVariable_atin classLexer
-
scanIdentifier
public void scanIdentifier()- Overrides:
scanIdentifierin classLexer
-
scanString
protected final void scanString()- Overrides:
scanStringin classLexer
-
skipFirstHintsOrMultiCommentAndNextToken
public void skipFirstHintsOrMultiCommentAndNextToken() -
scanComment
public void scanComment()- Overrides:
scanCommentin classLexer
-
isIdentifierChar
public static boolean isIdentifierChar(char c)
-