java.lang.Object
org.klojang.invoke.Getter
Represents a getter for a single property.
- Author:
- Ayco Holleman
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the property.Class<?> Returns the type of the property.Reads the value of the property off the specified bean
-
Method Details
-
getProperty
Returns the name of the property.- Returns:
- the name of the property
-
getReturnType
Returns the type of the property.- Returns:
- the type of the property
-
read
Reads the value of the property off the specified bean- Parameters:
bean- The bean off which to read the property's value- Returns:
- the value of the property
- Throws:
Throwable- The unspecifiedThrowableassociated with calls toMethodHandle.invoke.
-