Enum Class JsonTokenKind

java.lang.Object
java.lang.Enum<JsonTokenKind>
de.monticore.symboltable.serialization.JsonTokenKind
All Implemented Interfaces:
Serializable, Comparable<JsonTokenKind>, Constable

public enum JsonTokenKind extends Enum<JsonTokenKind>
Enumeration of all token kinds that occur in the JSON language. Tokens of some kinds (such as a boolean that can be either 'true' or 'false') have a value, while other kinds have a static value (such as begin_object, which is always '{') that is not represented inside of the token.
  • Enum Constant Details

  • Method Details

    • values

      public static JsonTokenKind[] 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 JsonTokenKind 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
    • hasValue

      public boolean hasValue()
      returns true, iff the token kind has a (variable) value.
      Returns: