Type Parameters:
RT - the type of the receiver.
T - the type of the returned value.
final class ReflectField<RT, T>
extends java.lang.Object
Utility class for accessing to a field by reflection.
Parameters:
<RT> -
<T> -
Maven Group Identifier:
Maven Artifact Identifier:
Since:
Constructor Summary
Constructors
Action Summary
All actions Static actions Instance actions
Modifier and type
Action and description
T
get
Get the value from the static field.
T
get(RT)
Get the value from the field from an object.
Constructor Details
new(Class<T>,Class<T>,String)
protected new (Class<T>,Class<T>,String)
Constructor.
Parameters:
receiverType -
returnType -
fieldName -
Action Details
get
def get : T
Get the value from the static field.
Returns:
get(RT)
def get(RT) : T
Get the value from the field from an object.
Parameters:
receiver -
Returns:
of(Class<T>,Class<T>,String)
def of(Class<T>,Class<T>,String) : ReflectField <RT,T> with RT, T
Static constructor.
Parameters:
<RT> -
<T> -
receiverType -
returnType -
fieldName -
Returns: