クラス AbstractFormatter
- java.lang.Object
-
- com.github.vertical_blank.sqlformatter.core.AbstractFormatter
-
- すべての実装されたインタフェース:
DialectConfigurator
- 直系の既知のサブクラス:
Db2Formatter,MariaDbFormatter,MySqlFormatter,N1qlFormatter,PlSqlFormatter,PostgreSqlFormatter,RedshiftFormatter,SparkSqlFormatter,StandardSqlFormatter,TSqlFormatter
public abstract class AbstractFormatter extends Object implements DialectConfigurator
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected TokenpreviousReservedToken
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AbstractFormatter(FormatConfig cfg)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Stringformat(String query)Formats whitespaces in a SQL string to make it easier to read.Tokenizertokenizer()protected TokentokenLookAhead()protected TokentokenLookAhead(int n)protected TokentokenLookBehind()protected TokentokenLookBehind(int n)protected TokentokenOverride(Token token)Reprocess and modify a token based on parsed context.-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド com.github.vertical_blank.sqlformatter.languages.DialectConfigurator
dialectConfig
-
-
-
-
フィールドの詳細
-
previousReservedToken
protected Token previousReservedToken
-
-
コンストラクタの詳細
-
AbstractFormatter
public AbstractFormatter(FormatConfig cfg)
- パラメータ:
cfg- FormatConfig
-
-
メソッドの詳細
-
tokenizer
public Tokenizer tokenizer()
-
tokenOverride
protected Token tokenOverride(Token token)
Reprocess and modify a token based on parsed context.- パラメータ:
token- The token to modify- 戻り値:
- token
-
format
public String format(String query)
Formats whitespaces in a SQL string to make it easier to read.- パラメータ:
query- The SQL query string- 戻り値:
- formatted query
-
tokenLookBehind
protected Token tokenLookBehind()
-
tokenLookBehind
protected Token tokenLookBehind(int n)
-
tokenLookAhead
protected Token tokenLookAhead()
-
tokenLookAhead
protected Token tokenLookAhead(int n)
-
-