Class GetExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.AbstractExecutor
org.apache.velocity.runtime.parser.node.GetExecutor
Executor that simply tries to execute a get(key)
operation. This will try to find a get(key) method
for any type of object, not just objects that
implement the Map interface as was previously
the case.
- Version:
- $Id$
- Author:
- Jason van Zyl
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log
-
Constructor Summary
ConstructorDescriptionGetExecutor
(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property) -
Method Summary
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
getMethod, isAlive, setMethod
-
Constructor Details
-
GetExecutor
public GetExecutor(org.slf4j.Logger log, Introspector introspector, Class<?> clazz, String property) - Parameters:
log
-introspector
-clazz
-property
-- Since:
- 1.5
-
-
Method Details
-
discover
- Parameters:
clazz
-- Since:
- 1.5
-
execute
Description copied from class:AbstractExecutor
Execute method against context.- Specified by:
execute
in classAbstractExecutor
- Parameters:
o
-- Returns:
- value
- Throws:
IllegalAccessException
InvocationTargetException
- See Also:
-