org.apache.velocity.runtime.parser.node

Class 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,v 1.8.4.1 2004/03/03 23:22:59 geirm Exp $

Author: Jason van Zyl

Field Summary
Object[]args
Container to hold the 'key' part of get(key).
Constructor Summary
GetExecutor(RuntimeLogger r, Introspector ispect, Class c, String key)
Default constructor.
Method Summary
Objectexecute(Object o)
Execute method against context.
ObjectOLDexecute(Object o, InternalContextAdapter context)
Execute method against context.

Field Detail

args

private Object[] args
Container to hold the 'key' part of get(key).

Constructor Detail

GetExecutor

public GetExecutor(RuntimeLogger r, Introspector ispect, Class c, String key)
Default constructor.

Method Detail

execute

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

OLDexecute

public Object OLDexecute(Object o, InternalContextAdapter context)
Execute method against context.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.