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

java.lang.Object
  extended byorg.apache.velocity.runtime.parser.node.AbstractExecutor
      extended byorg.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 292918 2005-10-01 04:36:58Z wglass $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log, method
 
Constructor Summary
GetExecutor(Log log, Introspector ispect, Class c, String key)
           
GetExecutor(RuntimeLogger r, Introspector ispect, Class c, String key)
          Deprecated. RuntimeLogger is deprecated. Use the other 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(Log log,
                   Introspector ispect,
                   Class c,
                   String key)
            throws Exception

GetExecutor

public GetExecutor(RuntimeLogger r,
                   Introspector ispect,
                   Class c,
                   String key)
            throws Exception
Deprecated. RuntimeLogger is deprecated. Use the other constructor.

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 ? 2000-2007 Apache Software Foundation. All Rights Reserved.