Enum __DirectiveLocation

    • Enum Constant Detail

      • ARGUMENT_DEFINITION

        public static final __DirectiveLocation ARGUMENT_DEFINITION
        Indicates the directive is valid on a field argument IDL definition.
      • ENUM

        public static final __DirectiveLocation ENUM
        Indicates the directive is valid on an enum IDL definition.
      • FIELD

        public static final __DirectiveLocation FIELD
        Indicates the directive is valid on fields.
      • FIELD_DEFINITION

        public static final __DirectiveLocation FIELD_DEFINITION
        Indicates the directive is valid on a field IDL definition.
      • FRAGMENT_DEFINITION

        public static final __DirectiveLocation FRAGMENT_DEFINITION
        Indicates the directive is valid on fragment definitions.
      • FRAGMENT_SPREAD

        public static final __DirectiveLocation FRAGMENT_SPREAD
        Indicates the directive is valid on fragment spreads.
      • INLINE_FRAGMENT

        public static final __DirectiveLocation INLINE_FRAGMENT
        Indicates the directive is valid on inline fragments.
      • INPUT_FIELD_DEFINITION

        public static final __DirectiveLocation INPUT_FIELD_DEFINITION
        Indicates the directive is valid on an input object field IDL definition.
      • INPUT_OBJECT

        public static final __DirectiveLocation INPUT_OBJECT
        Indicates the directive is valid on an input object IDL definition.
      • INTERFACE

        public static final __DirectiveLocation INTERFACE
        Indicates the directive is valid on an interface IDL definition.
      • MUTATION

        public static final __DirectiveLocation MUTATION
        Indicates the directive is valid on mutations.
      • OBJECT

        public static final __DirectiveLocation OBJECT
        Indicates the directive is valid on an object IDL definition.
      • QUERY

        public static final __DirectiveLocation QUERY
        Indicates the directive is valid on queries.
      • SCALAR

        public static final __DirectiveLocation SCALAR
        Indicates the directive is valid on a scalar IDL definition.
      • SCHEMA

        public static final __DirectiveLocation SCHEMA
        Indicates the directive is valid on a schema IDL definition.
      • UNION

        public static final __DirectiveLocation UNION
        Indicates the directive is valid on an union IDL definition.
    • Method Detail

      • values

        public static __DirectiveLocation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (__DirectiveLocation c : __DirectiveLocation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static __DirectiveLocation 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