Enum FieldLocator.Resolution.Illegal

    • Constructor Detail

      • Illegal

        private Illegal()
    • Method Detail

      • values

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

        public static FieldLocator.Resolution.Illegal valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isResolved

        public boolean isResolved()
        Returns true if a field was located.
        Specified by:
        isResolved in interface FieldLocator.Resolution
        Returns:
        true if a field was located.
      • getField

        public FieldDescription getField()
        Returns the field description if a field was located. This method must only be called if this resolution was actually resolved.
        Specified by:
        getField in interface FieldLocator.Resolution
        Returns:
        The located field.