public final class BooleanGetExecutor extends AbstractExecutor.Get
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AbstractExecutor.GetAbstract class that is used to execute an arbitrary 'get' method. | 
| static class  | AbstractExecutor.MethodAbstract class that is used to execute an arbitrary method. | 
| static class  | AbstractExecutor.SetAbstract class that is used to execute an arbitrary 'set' method. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Object | TRY_FAILEDA marker for invocation failures in tryInvoke. | 
| Modifier and Type | Method and Description | 
|---|---|
| static BooleanGetExecutor | discover(Introspector is,
        Class<?> clazz,
        String property)Discovers a BooleanGetExecutor. | 
| boolean | equals(org.apache.commons.jexl3.internal.introspection.AbstractExecutor arg)Indicates whether some other executor is equivalent to this one. | 
| boolean | equals(Object obj) | 
| Method | getMethod()Gets the method to be executed or used as a marker. | 
| String | getMethodName()Gets the method name used. | 
| Class<?> | getTargetClass()Gets the object class targeted by this executor. | 
| Object | getTargetProperty()Gets the property targeted by this executor. | 
| int | hashCode() | 
| Object | invoke(Object obj)Method used to get the property value of an object. | 
| boolean | isAlive()Tell whether the executor is alive by looking
 at the value of the method. | 
| boolean | isCacheable()Specifies if this executor is cacheable and able to be reused for this
 class of object it was returned for. | 
| boolean | tryFailed(Object exec)Checks whether a tryExecute 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. | 
getClass, notify, notifyAll, toString, wait, wait, waitisCacheable, tryFailedpublic static final Object TRY_FAILED
public static BooleanGetExecutor discover(Introspector is, Class<?> clazz, String property)
The method to be found should be named "is{P,p}property and return a boolean.
is - the introspectorclazz - the class to find the get method fromproperty - the property namepublic Object getTargetProperty()
public Object invoke(Object obj) throws IllegalAccessException, InvocationTargetException
JexlPropertyGetobj - the object to get the property value from.IllegalAccessExceptionInvocationTargetExceptionpublic Object tryInvoke(Object obj, Object key)
JexlPropertyGetobj - the object to invoke the property get uponkey - the property key to getpublic boolean equals(org.apache.commons.jexl3.internal.introspection.AbstractExecutor arg)
arg - the other executor to checkpublic final boolean isAlive()
public boolean isCacheable()
public final Method getMethod()
public final Class<?> getTargetClass()
public final String getMethodName()
public final boolean tryFailed(Object exec)
exec - the value returned by tryExecuteCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.