public static enum ReflectMember.Result extends java.lang.Enum<ReflectMember.Result>
Enum Constant and Description |
---|
DATA
The result will not be used for anything.
|
INSTANCE
The result should be used to create and return a new
ReflectClass instance. |
RECEIVER
The result should be used as a receiver for the current associated
ReflectClass instance. |
Modifier and Type | Method and Description |
---|---|
static ReflectMember.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReflectMember.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectMember.Result INSTANCE
ReflectClass
instance. Depending on the data type,
this would search for a class if the data is a String
, or simply use it as is if the
data is a Class
, or be used as a receiver if the data is an instance of some sort. ReflectClass
instance will be returned to the caller instead of the datapublic static final ReflectMember.Result RECEIVER
ReflectClass
instance.
The data itself will also be returned just like when using DATA
public static final ReflectMember.Result DATA
public static ReflectMember.Result[] values()
for (ReflectMember.Result c : ReflectMember.Result.values()) System.out.println(c);
public static ReflectMember.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null