Class/Object

com.github.takayahilton.sqlformatter.core

Tokenizer

Related Docs: object Tokenizer | package core

Permalink

class Tokenizer extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tokenizer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tokenizer(cfg: DialectConfig)

    Permalink

    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 #

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val cfg: DialectConfig

    Permalink

    {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 #

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. def tokenize(input: String): Vector[Token]

    Permalink

    Takes a SQL string and breaks it into tokens.

    Takes a SQL string and breaks it into tokens. Each token is an object with type and value.

    input

    input The SQL string

    returns

    {Object[]} tokens An array of tokens.

  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped