Class MapGetExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.AbstractExecutor
-
- org.apache.velocity.runtime.parser.node.MapGetExecutor
-
public class MapGetExecutor extends AbstractExecutor
GetExecutor that is smart about Maps. If it detects one, it does not use Reflection but a cast to access the getter.- Since:
- 1.5
- Version:
- $Id$
- Author:
- Henning P. Schmiedehausen
-
-
Field Summary
-
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log
-
-
Constructor Summary
Constructors Constructor Description MapGetExecutor(org.slf4j.Logger log, Object object, String property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandiscover(Object object)Objectexecute(Object o)Execute method against context.MethodgetMethod()booleanisAlive()Tell whether the executor is alive by looking at the value of the method.-
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
setMethod
-
-
-
-
Method Detail
-
getMethod
public Method getMethod()
- Overrides:
getMethodin classAbstractExecutor- Returns:
- The current method.
-
isAlive
public boolean isAlive()
Description copied from class:AbstractExecutorTell whether the executor is alive by looking at the value of the method.- Overrides:
isAlivein classAbstractExecutor- Returns:
- True if executor is alive.
-
discover
protected boolean discover(Object object)
-
execute
public Object execute(Object o)
Description copied from class:AbstractExecutorExecute method against context.- Specified by:
executein classAbstractExecutor- Returns:
- The resulting object.
-
-