Class MapSetExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.SetExecutor
-
- 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.- Since:
- 1.5
- Version:
- $Id: MapSetExecutor.java 799457 2009-07-30 22:10:27Z nbubna $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringproperty-
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log
-
-
Constructor Summary
Constructors Constructor Description MapSetExecutor(Log log, java.lang.Class clazz, java.lang.String property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddiscover(java.lang.Class clazz)java.lang.Objectexecute(java.lang.Object o, java.lang.Object arg)Execute method against context.-
Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
-
-
-
-
Constructor Detail
-
MapSetExecutor
public MapSetExecutor(Log log, java.lang.Class clazz, java.lang.String property)
-
-
Method Detail
-
discover
protected void discover(java.lang.Class clazz)
-
execute
public java.lang.Object execute(java.lang.Object o, java.lang.Object arg)Description copied from class:SetExecutorExecute method against context.- Specified by:
executein classSetExecutor- Returns:
- The result of the invocation.
-
-