Class SQLServerLexer
- java.lang.Object
-
- com.alibaba.druid.sql.parser.Lexer
-
- com.alibaba.druid.sql.dialect.sqlserver.parser.SQLServerLexer
-
- Direct Known Subclasses:
SynapseLexer
public class SQLServerLexer extends Lexer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.alibaba.druid.sql.parser.Lexer
Lexer.CommentHandler, Lexer.SavePoint
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.parser.Lexer
buf, bufPos, ch, commentCount, commentHandler, comments, dbType, dialectFeature, 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
Constructors Constructor Description SQLServerLexer(char[] input, int inputLength, boolean skipComment)SQLServerLexer(String input)SQLServerLexer(String input, SQLParserFeature... features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeywordsloadKeywords()voidscanComment()protected voidscanLBracket()-
Methods inherited from class com.alibaba.druid.sql.parser.Lexer
addComment, addSymbol, arraycopy, bp, charAt, computeRowAndColumn, computeRowAndColumn, config, current, decimalValue, dialectFeatureEnabled, getCommentCount, getCommentHandler, getComments, getDbType, getKeywords, getLine, getPosColumn, getPosLine, getSource, getTimeZone, hasComment, hashLCase, hexString, identifierEquals, identifierEquals, info, initBuff, initDialectFeature, integerValue, isAllowComment, isDigit, isDigit2, isEnabled, isEndOfComment, isEOF, isFirstIdentifierChar0, isKeepComments, isKeepSourceLocation, isNegativeIntegerValue, isSafeComment, lexError, mark, markOut, nextIf, nextIfComma, nextIfIdentifier, nextIfIdentifier, nextPath, nextToken, nextTokenAlias, nextTokenBy, nextTokenComma, nextTokenCommaValue, nextTokenEq, nextTokenForSet, nextTokenIdent, nextTokenLParen, nextTokenNotOrNull, nextTokenQues, nextTokenValue, nextVarIndex, numberExpr, numberExpr, numberExpr, numberString, parameterize, pos, putChar, readAndResetComments, reset, reset, reset, reset, scanAlias, scanChar, scanHexaDecimal, scanIdentifier, scanIdentifier0, scanLineArgument, scanMultiLineComment, scanNumber, scanSharp, scanSingleLineComment, scanSQLType, scanSQLTypeV2, scanString, scanString2, scanString2_d, scanVariable, scanVariable_at, setAllowComment, setCommentHandler, setKeepComments, setTimeZone, setToken, skipToEOF, skipToNextLine, skipToNextLineOrParameter, stringVal, sub_chars, subString, subString, token, unscan
-
-
-
-
Constructor Detail
-
SQLServerLexer
public SQLServerLexer(char[] input, int inputLength, boolean skipComment)
-
SQLServerLexer
public SQLServerLexer(String input)
-
SQLServerLexer
public SQLServerLexer(String input, SQLParserFeature... features)
-
-
Method Detail
-
loadKeywords
protected Keywords loadKeywords()
- Overrides:
loadKeywordsin classLexer
-
scanComment
public void scanComment()
- Overrides:
scanCommentin classLexer
-
scanLBracket
protected void scanLBracket()
- Overrides:
scanLBracketin classLexer
-
-