Enum JSUtilities.JSON.Parser.CommentMode

java.lang.Object
java.lang.Enum<JSUtilities.JSON.Parser.CommentMode>
org.bzdev.util.JSUtilities.JSON.Parser.CommentMode
All Implemented Interfaces:
Serializable, Comparable<JSUtilities.JSON.Parser.CommentMode>
Enclosing class:
JSUtilities.JSON.Parser

protected static enum JSUtilities.JSON.Parser.CommentMode extends Enum<JSUtilities.JSON.Parser.CommentMode>
Specify whether or not comments are allowed and what their syntax is. The parsers prune out comments when they are skipping over whitespace.

This enum is part of the implementation and is only used internally.

  • Enum Constant Details

  • Method Details

    • values

      public static JSUtilities.JSON.Parser.CommentMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static JSUtilities.JSON.Parser.CommentMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null