Class PublicFieldExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.AbstractExecutor
org.apache.velocity.runtime.parser.node.PublicFieldExecutor
Returns the value of a public field when executed.
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log
-
Constructor Summary
ConstructorsConstructorDescriptionPublicFieldExecutor
(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Execute method against context.getField()
protected Introspector
boolean
isAlive()
Tell whether the executor is alive by looking at the value of the method.protected void
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
getMethod, setMethod
-
Constructor Details
-
PublicFieldExecutor
public PublicFieldExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property) - Parameters:
log
-introspector
-clazz
-property
-- Since:
- 1.5
-
-
Method Details
-
isAlive
public boolean isAlive()Description copied from class:AbstractExecutor
Tell whether the executor is alive by looking at the value of the method.- Overrides:
isAlive
in classAbstractExecutor
- Returns:
- True if executor is alive.
-
getField
- Returns:
- The current field.
-
setField
- Parameters:
field
-
-
getIntrospector
- Returns:
- The current introspector.
- Since:
- 1.5
-
discover
- Parameters:
clazz
-property
-
-
execute
Description copied from class:AbstractExecutor
Execute method against context.- Specified by:
execute
in classAbstractExecutor
- Parameters:
o
-- Returns:
- The resulting object.
- Throws:
IllegalAccessException
InvocationTargetException
- See Also:
-