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

java.lang.Object
  extended by org.apache.velocity.runtime.parser.node.SetExecutor
      extended by org.apache.velocity.runtime.parser.node.MapSetExecutor

public class MapSetExecutor
extends SetExecutor

SetExecutor that is smart about Maps. If it detects one, it does not use Reflection but a cast to access the setter.

Version:
$Id: MapSetExecutor.java 463298 2006-10-12 16:10:32Z henning $
Author:
Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log
 
Constructor Summary
MapSetExecutor(Log log, Class clazz, String property)
           
 
Method Summary
protected  void discover(Class clazz)
           
 Object execute(Object o, Object arg)
          Execute method against context.
 
Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSetExecutor

public MapSetExecutor(Log log,
                      Class clazz,
                      String property)
Method Detail

discover

protected void discover(Class clazz)

execute

public Object execute(Object o,
                      Object arg)
Description copied from class: SetExecutor
Execute method against context.

Specified by:
execute in class SetExecutor
Returns:
The result of the invocation.


Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.