Class SetPropertyExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.SetExecutor
-
- org.apache.velocity.runtime.parser.node.SetPropertyExecutor
-
public class SetPropertyExecutor extends SetExecutor
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: SetPropertyExecutor.java 687177 2008-08-19 22:00:32Z nbubna $
-
-
Field Summary
Fields Modifier and Type Field Description private Introspector
introspector
-
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log
-
-
Constructor Summary
Constructors Constructor Description SetPropertyExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property, java.lang.Object arg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
discover(java.lang.Class clazz, java.lang.String property, java.lang.Object arg)
java.lang.Object
execute(java.lang.Object o, java.lang.Object value)
Execute method against context.protected Introspector
getIntrospector()
-
Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
-
-
-
-
Field Detail
-
introspector
private final Introspector introspector
-
-
Constructor Detail
-
SetPropertyExecutor
public SetPropertyExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property, java.lang.Object arg)
- Parameters:
log
-introspector
-clazz
-property
-arg
-
-
-
Method Detail
-
getIntrospector
protected Introspector getIntrospector()
- Returns:
- The current introspector.
-
discover
protected void discover(java.lang.Class clazz, java.lang.String property, java.lang.Object arg)
- Parameters:
clazz
-property
-arg
-
-
execute
public java.lang.Object execute(java.lang.Object o, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Execute method against context.- Specified by:
execute
in classSetExecutor
- Parameters:
o
-value
-- Returns:
- The value of the invocation.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
-