org.apache.velocity.runtime.parser.node

Class AbstractExecutor

public abstract class AbstractExecutor extends Object

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: AbstractExecutor.java,v 1.12.4.1 2004/03/03 23:22:59 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Field Summary
protected Methodmethod
Method to be executed.
protected RuntimeLoggerrlog
Method Summary
abstract Objectexecute(Object o)
Execute method against context.
MethodgetMethod()
booleanisAlive()
Tell whether the executor is alive by looking at the value of the method.

Field Detail

method

protected Method method
Method to be executed.

rlog

protected RuntimeLogger rlog

Method Detail

execute

public abstract Object execute(Object o)
Execute method against context.

getMethod

public Method getMethod()

isAlive

public boolean isAlive()
Tell whether the executor is alive by looking at the value of the method.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.