org.apache.velocity.runtime.parser.node
Class PutExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.SetExecutor
org.apache.velocity.runtime.parser.node.PutExecutor
public class PutExecutor
- extends SetExecutor
Executor that simply tries to execute a put(key, value)
operation. This will try to find a put(key) method
for any type of object, not just objects that
implement the Map interface as was previously
the case.
- Since:
- 1.5
- Version:
- $Id: PutExecutor.java 687177 2008-08-19 22:00:32Z nbubna $
- Author:
- Jason van Zyl, Henning P. Schmiedehausen
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor |
log |
Constructor Summary |
PutExecutor(Log log,
Introspector introspector,
java.lang.Class clazz,
java.lang.Object arg,
java.lang.String property)
|
Method Summary |
protected void |
discover(java.lang.Class clazz,
java.lang.Object arg)
|
java.lang.Object |
execute(java.lang.Object o,
java.lang.Object value)
Execute method against context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutExecutor
public PutExecutor(Log log,
Introspector introspector,
java.lang.Class clazz,
java.lang.Object arg,
java.lang.String property)
- Parameters:
log
- introspector
- clazz
- arg
- property
-
discover
protected void discover(java.lang.Class clazz,
java.lang.Object arg)
- Parameters:
clazz
- arg
-
execute
public java.lang.Object execute(java.lang.Object o,
java.lang.Object value)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Description copied from class:
SetExecutor
- Execute method against context.
- Specified by:
execute
in class SetExecutor
- Returns:
- The result of the invocation.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
- See Also:
SetExecutor.execute(java.lang.Object, java.lang.Object)
Copyright © 2000-2012. All Rights Reserved.