クラス AbstractFormatter

    • フィールドの詳細

      • previousReservedToken

        protected Token previousReservedToken
    • コンストラクタの詳細

      • AbstractFormatter

        public AbstractFormatter​(FormatConfig cfg)
        パラメータ:
        cfg - FormatConfig
    • メソッドの詳細

      • 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)