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 Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JSUtilities.JSON.Parser.CommentMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Comments are not allowed. -
JS
Comments start with '//' and go to the end of the line. -
YAML
Comments start with '#' and go to the end of the line.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-