Enum DirectiveLocation
java.lang.Object
java.lang.Enum<DirectiveLocation>
com.graphql_java_generator.client.directive.DirectiveLocation
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DirectiveLocation>
,java.lang.constant.Constable
public enum DirectiveLocation extends java.lang.Enum<DirectiveLocation>
All possible directive locations
- Author:
- etienne-sf
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ARGUMENT_DEFINITION
ENUM
ENUM_VALUE
FIELD
FIELD_DEFINITION
FRAGMENT_DEFINITION
FRAGMENT_SPREAD
INLINE_FRAGMENT
INPUT_FIELD_DEFINITION
INPUT_OBJECT
INTERFACE
MUTATION
OBJECT
QUERY
SCALAR
SCHEMA
SUBSCRIPTION
UNION
-
Method Summary
Modifier and Type Method Description static DirectiveLocation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DirectiveLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-