Class AbstractExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.AbstractExecutor
- Direct Known Subclasses:
GetExecutor
,MapGetExecutor
,PropertyExecutor
,PublicFieldExecutor
Abstract class that is used to execute an arbitrary
method that is in introspected. This is the superclass
for the GetExecutor and PropertyExecutor.
- Version:
- $Id$
- Author:
- Jason van Zyl, Geir Magnusson Jr.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
AbstractExecutor
public AbstractExecutor()
-
-
Method Details
-
execute
Execute method against context.- Parameters:
o
-- Returns:
- The resulting object.
- Throws:
IllegalAccessException
InvocationTargetException
-
isAlive
public boolean isAlive()Tell whether the executor is alive by looking at the value of the method.- Returns:
- True if executor is alive.
-
getMethod
- Returns:
- The current method.
-
setMethod
- Parameters:
method
-- Since:
- 1.5
-