Package org.tomlj

Enum Class TomlComment.Placement

java.lang.Object
java.lang.Enum<TomlComment.Placement>
org.tomlj.TomlComment.Placement
All Implemented Interfaces:
Serializable, Comparable<TomlComment.Placement>, Constable
Enclosing class:
TomlComment

public static enum TomlComment.Placement extends Enum<TomlComment.Placement>
Where a comment sits relative to the entry it is attached to.
  • Enum Constant Details

    • ABOVE

      public static final TomlComment.Placement ABOVE
      A run of comment lines written directly above the entry it is attached to.
    • AFTER

      public static final TomlComment.Placement AFTER
      The comment written on the same line as the entry, after it.
    • UNATTACHED

      public static final TomlComment.Placement UNATTACHED
      A comment attached to no entry: a run that is not directly above one, or a comment on a line with none. It belongs to the table or array it was written in.
  • Method Details

    • values

      public static TomlComment.Placement[] 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 TomlComment.Placement 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