Enum ClassField

    • Method Detail

      • values

        public static ClassField[] 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 (ClassField c : ClassField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClassField 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
      • getIndex

        public int getIndex()
        Description copied from interface: Field
        Returns the index of this field.
        Specified by:
        getIndex in interface Field<Class<?>>
        Returns:
        the index of this field.
      • getMarshaller

        public FieldMarshaller<Class<?>> getMarshaller()
        Description copied from interface: Field
        Returns the marshaller for this field.
        Specified by:
        getMarshaller in interface Field<Class<?>>
        Returns:
        the marshaller for this field.