org.apache.velocity.runtime.parser.node
Class GetExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.AbstractExecutor
org.apache.velocity.runtime.parser.node.GetExecutor
- public class GetExecutor
- extends AbstractExecutor
Executor that simply tries to execute a get(key)
operation. This will try to find a get(key) method
for any type of object, not just objects that
implement the Map interface as was previously
the case.
- Version:
- $Id: GetExecutor.java 75959 2004-03-19 17:13:40Z dlr $
- Author:
- Jason van Zyl
Field Summary |
private java.lang.Object[] |
args
Container to hold the 'key' part of
get(key). |
Method Summary |
java.lang.Object |
execute(java.lang.Object o)
Execute method against context. |
java.lang.Object |
OLDexecute(java.lang.Object o,
InternalContextAdapter context)
Execute method against context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
args
private java.lang.Object[] args
- Container to hold the 'key' part of
get(key).
GetExecutor
public GetExecutor(RuntimeLogger r,
Introspector ispect,
java.lang.Class c,
java.lang.String key)
throws java.lang.Exception
- Default constructor.
execute
public java.lang.Object execute(java.lang.Object o)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Execute method against context.
- Specified by:
execute
in class AbstractExecutor
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
OLDexecute
public java.lang.Object OLDexecute(java.lang.Object o,
InternalContextAdapter context)
throws java.lang.IllegalAccessException,
MethodInvocationException
- Execute method against context.
- Throws:
java.lang.IllegalAccessException
MethodInvocationException
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.