Class GetExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.AbstractExecutor
-
- org.apache.velocity.runtime.parser.node.GetExecutor
-
public class GetExecutor extends AbstractExecutor
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: GetExecutor.java 687177 2008-08-19 22:00:32Z nbubna $
-
-
Field Summary
Fields Modifier and Type Field Description private Introspector
introspector
private java.lang.Object[]
params
-
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log
-
-
Constructor Summary
Constructors Constructor Description GetExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property)
GetExecutor(RuntimeLogger rlog, Introspector introspector, java.lang.Class clazz, java.lang.String property)
Deprecated.RuntimeLogger is deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
discover(java.lang.Class clazz)
java.lang.Object
execute(java.lang.Object o)
Execute method against context.-
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
getMethod, isAlive, setMethod
-
-
-
-
Field Detail
-
introspector
private final Introspector introspector
-
params
private java.lang.Object[] params
-
-
Constructor Detail
-
GetExecutor
public GetExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property)
- Parameters:
log
-introspector
-clazz
-property
-- Since:
- 1.5
-
GetExecutor
public GetExecutor(RuntimeLogger rlog, Introspector introspector, java.lang.Class clazz, java.lang.String property)
Deprecated.RuntimeLogger is deprecated. Use the other constructor.- Parameters:
rlog
-introspector
-clazz
-property
-
-
-
Method Detail
-
discover
protected void discover(java.lang.Class clazz)
- Since:
- 1.5
-
execute
public java.lang.Object execute(java.lang.Object o) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Description copied from class:AbstractExecutor
Execute method against context.- Specified by:
execute
in classAbstractExecutor
- Returns:
- The resulting object.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
- See Also:
AbstractExecutor.execute(java.lang.Object)
-
-