Enum Class IndentDirection

java.lang.Object
java.lang.Enum<IndentDirection>
org.pgcodekeeper.core.database.base.formatter.IndentDirection
All Implemented Interfaces:
Serializable, Comparable<IndentDirection>, Constable

public enum IndentDirection extends Enum<IndentDirection>
Enumeration of indentation directions used during SQL formatting. Determines how indentation should be applied to different parts of SQL statements.
  • Enum Constant Details

    • BLOCK_START

      public static final IndentDirection BLOCK_START
      First token in new block
    • BLOCK_STOP

      public static final IndentDirection BLOCK_STOP
      Last token in block
    • BLOCK_LINE

      public static final IndentDirection BLOCK_LINE
      New line in block
    • NEW_LINE

      public static final IndentDirection NEW_LINE
      Forced new line
  • Method Details

    • values

      public static IndentDirection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IndentDirection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null