Class AbstractExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.AbstractExecutor
-
- Direct Known Subclasses:
GetExecutor,MapGetExecutor,PropertyExecutor
public abstract class AbstractExecutor extends java.lang.ObjectAbstract class that is used to execute an arbitrary method that is in introspected. This is the superclass for the GetExecutor and PropertyExecutor.- Version:
- $Id: AbstractExecutor.java 685685 2008-08-13 21:43:27Z nbubna $
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Objectexecute(java.lang.Object o)Execute method against context.java.lang.reflect.MethodgetMethod()booleanisAlive()Tell whether the executor is alive by looking at the value of the method.protected voidsetMethod(java.lang.reflect.Method method)
-
-
-
Field Detail
-
log
protected Log log
-
method
private java.lang.reflect.Method method
Method to be executed.
-
-
Method Detail
-
execute
public abstract java.lang.Object execute(java.lang.Object o) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetExceptionExecute method against context.- Parameters:
o-- Returns:
- The resulting object.
- Throws:
java.lang.IllegalAccessExceptionjava.lang.reflect.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
public java.lang.reflect.Method getMethod()
- Returns:
- The current method.
-
setMethod
protected void setMethod(java.lang.reflect.Method method)
- Parameters:
method-- Since:
- 1.5
-
-