Enum RemoveVisitor.TargetType

    • Method Detail

      • values

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

        public static RemoveVisitor.TargetType 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
      • forClass

        @Nullable
        public static RemoveVisitor.TargetType forClass​(@NonNull
                                                        Class<?> clazz)
        Get the target type associated with the provided clazz.
        Parameters:
        clazz - the class to identify the target type for
        Returns:
        the associated target type or null if the class is not associated with a target type
      • forFieldName

        @Nullable
        public static RemoveVisitor.TargetType forFieldName​(@Nullable
                                                            String name)
        Get the target type associated with the provided field name.
        Parameters:
        name - the field name to identify the target type for
        Returns:
        the associated target type or null if the name is not associated with a target type
      • fieldName

        public String fieldName()
        Get the field name associated with the target type.
        Returns:
        the name
      • getClazz

        public Class<?> getClazz()
        Get the bound class associated with the target type.
        Returns:
        the class