Enum Class Kind

java.lang.Object
java.lang.Enum<Kind>
io.github.jbastgen.stemma.app.syntax.Kind
All Implemented Interfaces:
Serializable, Comparable<Kind>, Constable

public enum Kind extends Enum<Kind>
What a piece of source text is, as far as its colour goes (feature 52).
  • Enum Constant Details

    • PLAIN

      public static final Kind PLAIN
    • KEYWORD

      public static final Kind KEYWORD
    • TYPE

      public static final Kind TYPE
    • STRING

      public static final Kind STRING
    • COMMENT

      public static final Kind COMMENT
    • NUMBER

      public static final Kind NUMBER
    • META

      public static final Kind META
      Annotations, preprocessor lines, variables, entities, directives.
    • TAG

      public static final Kind TAG
      The name of a markup element or a section.
    • ATTRIBUTE

      public static final Kind ATTRIBUTE
      The name of an attribute (or a CSS selector in brackets, a quoted SQL name).
    • KEY

      public static final Kind KEY
      The key of a key/value pair: a property, a JSON or YAML key.
  • Method Details

    • values

      public static Kind[] 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 Kind 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