Class SetPublicFieldExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.SetExecutor
org.apache.velocity.runtime.parser.node.SetPublicFieldExecutor
Executor for setting public fields in objects
- Author:
 - Henning P. Schmiedehausen, Candid Dauth
 
- 
Field Summary
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log - 
Constructor Summary
ConstructorsConstructorDescriptionSetPublicFieldExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property, Object arg)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecute method against context.getField()protected IntrospectorbooleanisAlive()Tell whether the executor is alive by looking at the value of the method.protected voidMethods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, setMethod 
- 
Constructor Details
- 
SetPublicFieldExecutor
public SetPublicFieldExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property, Object arg) - Parameters:
 log-introspector-clazz-property-arg-
 
 - 
 - 
Method Details
- 
isAlive
public boolean isAlive()Description copied from class:SetExecutorTell whether the executor is alive by looking at the value of the method.- Overrides:
 isAlivein classSetExecutor- Returns:
 - True if the executor is alive.
 
 - 
getField
- Returns:
 - The current field.
 
 - 
setField
- Parameters:
 field-
 - 
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
 
 -