Class SetExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.SetExecutor
- Direct Known Subclasses:
MapSetExecutor
,PutExecutor
,SetPropertyExecutor
,SetPublicFieldExecutor
Abstract class that is used to execute an arbitrary
method that is in introspected. This is the superclass
for the PutExecutor and SetPropertyExecutor.
There really should be a superclass for this and AbstractExecutor (which should
be refactored to GetExecutor) because they differ only in the execute() method.
- Since:
- 1.5
- Version:
- $Id$
- Author:
- Jason van Zyl, Geir Magnusson Jr., Henning P. Schmiedehausen
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
log
protected org.slf4j.Logger logClass logger
-
-
Constructor Details
-
SetExecutor
public SetExecutor()
-
-
Method Details
-
execute
public abstract Object execute(Object o, Object value) throws IllegalAccessException, InvocationTargetException Execute method against context.- Parameters:
o
-value
-- Returns:
- The result of the invocation.
- Throws:
IllegalAccessException
InvocationTargetException
-
isAlive
public boolean isAlive()Tell whether the executor is alive by looking at the value of the method.- Returns:
- True if the executor is alive.
-
getMethod
- Returns:
- The method to invoke.
-
setMethod
- Parameters:
method
-
-