public final class FieldGetExecutor extends Object implements JexlPropertyGet
| Modifier and Type | Method and Description |
|---|---|
static JexlPropertyGet |
discover(Introspector is,
Class<?> clazz,
String identifier)
Attempts to discover a FieldGetExecutor.
|
Object |
invoke(Object obj)
Method used to get the property value of an object.
|
boolean |
isCacheable()
Specifies if this JexlPropertyGet is cacheable and able to be reused for
this class of object it was returned for.
|
boolean |
tryFailed(Object rval)
Checks whether a tryInvoke failed or not.
|
Object |
tryInvoke(Object obj,
Object key)
Attempts to reuse this JexlPropertyGet, checking that it is compatible with
the actual set of arguments.
|
public static JexlPropertyGet discover(Introspector is, Class<?> clazz, String identifier)
is - the introspectorclazz - the class to find the get method fromidentifier - the key to use as an argument to the get methodpublic Object invoke(Object obj) throws Exception
JexlPropertyGetinvoke in interface JexlPropertyGetobj - the object to get the property value from.Exception - on any error.public Object tryInvoke(Object obj, Object key)
JexlPropertyGettryInvoke in interface JexlPropertyGetobj - the object to invoke the property get uponkey - the property key to getpublic boolean tryFailed(Object rval)
JexlPropertyGettryFailed in interface JexlPropertyGetrval - the value returned by tryInvokepublic boolean isCacheable()
JexlPropertyGetisCacheable in interface JexlPropertyGetCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.