Class SetPropertyExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.SetExecutor
org.apache.velocity.runtime.parser.node.SetPropertyExecutor
Executor for looking up property names in the passed in class
This will try to find a set<foo>(key, value) method
- Since:
- 1.5
- Version:
- $Id$
- Author:
- Henning P. Schmiedehausen
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log -
Constructor Summary
ConstructorsConstructorDescriptionSetPropertyExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property, Object arg) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecute method against context.protected IntrospectorMethods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
-
Constructor Details
-
SetPropertyExecutor
public SetPropertyExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property, Object arg) - Parameters:
log-introspector-clazz-property-arg-
-
-
Method Details
-
getIntrospector
- Returns:
- The current introspector.
-
discover
- Parameters:
clazz-property-arg-
-
execute
public Object execute(Object o, Object value) throws IllegalAccessException, InvocationTargetException Execute method against context.- Specified by:
executein classSetExecutor- Parameters:
o-value-- Returns:
- The value of the invocation.
- Throws:
IllegalAccessExceptionInvocationTargetException
-