Enum Class JsonText.Token

java.lang.Object
java.lang.Enum<JsonText.Token>
uk.blankaspect.common.json.JsonText.Token
All Implemented Interfaces:
Serializable, Comparable<JsonText.Token>, Constable
Enclosing class:
JsonText

public static enum JsonText.Token extends Enum<JsonText.Token>
This is an enumeration of the tokens that may be associated with elements of JSON text.
  • Enum Constant Details

    • NULL_VALUE

      public static final JsonText.Token NULL_VALUE
      A JSON null value.
    • BOOLEAN_VALUE

      public static final JsonText.Token BOOLEAN_VALUE
      A JSON Boolean value.
    • NUMBER_VALUE

      public static final JsonText.Token NUMBER_VALUE
      A JSON number value.
    • STRING_VALUE

      public static final JsonText.Token STRING_VALUE
      A JSON string value.
    • ARRAY_DELIMITER

      public static final JsonText.Token ARRAY_DELIMITER
      The start or end delimiter of a JSON array.
    • OBJECT_MEMBER_NAME

      public static final JsonText.Token OBJECT_MEMBER_NAME
      The name of a member of a JSON object.
    • OBJECT_NAME_VALUE_SEPARATOR

      public static final JsonText.Token OBJECT_NAME_VALUE_SEPARATOR
      The separator between the name and value of a member of a JSON object.
    • OBJECT_DELIMITER

      public static final JsonText.Token OBJECT_DELIMITER
      The start or end delimiter of a JSON object.
    • ITEM_SEPARATOR

      public static final JsonText.Token ITEM_SEPARATOR
      The separator between adjacent elements of a JSON array or adjacent members of a JSON object.
    • SPACE

      public static final JsonText.Token SPACE
      A sequence of space characters (U+0020).
    • NEW_LINE

      public static final JsonText.Token NEW_LINE
      A line-feed character (U+000A).
  • Method Details

    • values

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