Enum Class Token.WrapMode

java.lang.Object
java.lang.Enum<Token.WrapMode>
org.aspectj.org.eclipse.jdt.internal.formatter.Token.WrapMode
All Implemented Interfaces:
Serializable, Comparable<Token.WrapMode>, java.lang.constant.Constable
Enclosing class:
Token

public static enum Token.WrapMode extends Enum<Token.WrapMode>
  • Enum Constant Details

    • DISABLED

      public static final Token.WrapMode DISABLED
      Wrap mode for the "Do not wrap" policy. Tokens still should be indented as if wrapped when a preceding line break cannot be removed due to a line comment or formatting region restriction.
    • WHERE_NECESSARY

      public static final Token.WrapMode WHERE_NECESSARY
      Wrap mode for the "Wrap where necessary" policies.
    • TOP_PRIORITY

      public static final Token.WrapMode TOP_PRIORITY
      Wrap mode for the "Wrap all elements" policies.
    • FORCE

      public static final Token.WrapMode FORCE
      Wrap mode for tokens that must be wrapped due to "Force wrap" setting.
    • BLOCK_INDENT

      public static final Token.WrapMode BLOCK_INDENT
      Wrap mode used for lines in anonymous class and lambda body. Means that tokens that are already in new line before wrapping, but their indentation should be adjusted in similar way to wrapping.
  • Method Details

    • values

      public static Token.WrapMode[] 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 Token.WrapMode 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