org.apache.velocity.runtime.parser.node
Class GetExecutor

java.lang.Object
  extended by org.apache.velocity.runtime.parser.node.AbstractExecutor
      extended by 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 191743 2005-06-21 23:22:20Z dlr $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
method
 
Constructor Summary
GetExecutor(Introspector ispect, Class c, String key)
          Default constructor.
 
Method Summary
 Object execute(Object o)
          Execute method against context.
 Object OLDexecute(Object o, InternalContextAdapter context)
          Execute method against context.
 
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
getMethod, isAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetExecutor

public GetExecutor(Introspector ispect,
                   Class c,
                   String key)
            throws Exception
Default constructor.

Throws:
Exception
Method Detail

execute

public Object execute(Object o)
               throws IllegalAccessException,
                      InvocationTargetException
Execute method against context.

Specified by:
execute in class AbstractExecutor
Throws:
IllegalAccessException
InvocationTargetException

OLDexecute

public Object OLDexecute(Object o,
                         InternalContextAdapter context)
                  throws IllegalAccessException,
                         MethodInvocationException
Execute method against context.

Throws:
IllegalAccessException
MethodInvocationException


Copyright © 2002 Apache Software Foundation. All Rights Reserved.