Module org.apache.johnzon.core
Package org.apache.johnzon.core
Enum JsonGeneratorImpl.GeneratorState
java.lang.Object
java.lang.Enum<JsonGeneratorImpl.GeneratorState>
org.apache.johnzon.core.JsonGeneratorImpl.GeneratorState
- All Implemented Interfaces:
Serializable,Comparable<JsonGeneratorImpl.GeneratorState>
- Enclosing class:
- JsonGeneratorImpl
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGeneratorState(boolean acceptsKey, boolean acceptsValue, boolean endable) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JsonGeneratorImpl.GeneratorState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INITIAL
-
START_OBJECT
-
IN_OBJECT
-
AFTER_KEY
-
START_ARRAY
-
IN_ARRAY
-
END
-
ROOT_VALUE
-
-
Field Details
-
acceptsKey
private final boolean acceptsKey -
acceptsValue
private final boolean acceptsValue -
endable
private final boolean endable
-
-
Constructor Details
-
GeneratorState
private GeneratorState(boolean acceptsKey, boolean acceptsValue, boolean endable)
-
-
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
-