クラス Tokenizer
java.lang.Object
com.github.vertical_blank.sqlformatter.core.Tokenizer
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明Takes a SQL string and breaks it into tokens.
-
コンストラクタの詳細
-
Tokenizer
- パラメータ:
cfg- {String[]} cfg.reservedWords Reserved words in SQL {String[]} cfg.reservedTopLevelWords Words that are set to new line separately {String[]} cfg.reservedNewlineWords Words that are set to newline {String[]} cfg.stringTypes String types to enable: "", "", ``, [], N"" {String[]} cfg.openParens Opening parentheses to enable, like (, [ {String[]} cfg.closeParens Closing parentheses to enable, like ), ] {String[]} cfg.indexedPlaceholderTypes Prefixes for indexed placeholders, like ? {String[]} cfg.namedPlaceholderTypes Prefixes for named placeholders, like @ and : {String[]} cfg.lineCommentTypes Line comments to enable, like # and -- {String[]} cfg.specialWordChars Special chars that can be found inside of words, like @ and #
-
-
メソッドの詳細
-
tokenize
Takes a SQL string and breaks it into tokens. Each token is an object with type and value.- パラメータ:
input- input The SQL string- 戻り値:
- {Object[]} tokens An array of tokens.
-