Package org.kiwiproject.reflect
Enum KiwiReflection.Accessor
- java.lang.Object
-
- java.lang.Enum<KiwiReflection.Accessor>
-
- org.kiwiproject.reflect.KiwiReflection.Accessor
-
- All Implemented Interfaces:
Serializable,Comparable<KiwiReflection.Accessor>
- Enclosing class:
- KiwiReflection
public static enum KiwiReflection.Accessor extends Enum<KiwiReflection.Accessor>
Defines the accessor method type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KiwiReflection.AccessorvalueOf(String name)Returns the enum constant of this type with the specified name.static KiwiReflection.Accessor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET
public static final KiwiReflection.Accessor SET
Setter method.
-
GET
public static final KiwiReflection.Accessor GET
Getter method for reference types and primitive types, except primitivebooleantypes.
-
IS
public static final KiwiReflection.Accessor IS
Getter method type for primitiveboolean.
-
-
Method Detail
-
values
public static KiwiReflection.Accessor[] 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 (KiwiReflection.Accessor c : KiwiReflection.Accessor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KiwiReflection.Accessor 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 nameNullPointerException- if the argument is null
-
-