Class PropertyExecutor
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.AbstractExecutor
-
- org.apache.velocity.runtime.parser.node.PropertyExecutor
-
- Direct Known Subclasses:
BooleanPropertyExecutor
public class PropertyExecutor extends AbstractExecutor
Returned the value of object property when executed.
-
-
Field Summary
Fields Modifier and Type Field Description private Introspector
introspector
-
Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
log
-
-
Constructor Summary
Constructors Constructor Description PropertyExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property)
PropertyExecutor(RuntimeLogger r, 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.String property)
java.lang.Object
execute(java.lang.Object o)
Execute method against context.protected Introspector
getIntrospector()
-
Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor
getMethod, isAlive, setMethod
-
-
-
-
Field Detail
-
introspector
private final Introspector introspector
-
-
Constructor Detail
-
PropertyExecutor
public PropertyExecutor(Log log, Introspector introspector, java.lang.Class clazz, java.lang.String property)
- Parameters:
log
-introspector
-clazz
-property
-- Since:
- 1.5
-
PropertyExecutor
public PropertyExecutor(RuntimeLogger r, Introspector introspector, java.lang.Class clazz, java.lang.String property)
Deprecated.RuntimeLogger is deprecated. Use the other constructor.- Parameters:
r
-introspector
-clazz
-property
-
-
-
Method Detail
-
getIntrospector
protected Introspector getIntrospector()
- Returns:
- The current introspector.
- Since:
- 1.5
-
discover
protected void discover(java.lang.Class clazz, java.lang.String property)
- Parameters:
clazz
-property
-
-
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)
-
-