Package org.evrete.api
Interface TypeField
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type<?>getDeclaringType()Returns the type on which this TypeField is declared.Class<?>getValueType()Returns the value type of the TypeField.<T> TreadValue(Object subject)Reads the value of a field from the given subject object.
-
-
-
Method Detail
-
getDeclaringType
Type<?> getDeclaringType()
Returns the type on which this TypeField is declared.- Returns:
- the declaring type of the TypeField
-
getValueType
Class<?> getValueType()
Returns the value type of the TypeField.- Returns:
- the class representing the value type of the TypeField
-
readValue
<T> T readValue(Object subject)
Reads the value of a field from the given subject object.- Type Parameters:
T- the type of the field value- Parameters:
subject- the Java object from which to read the field value- Returns:
- the field value
-
-