org.apache.velocity.runtime.parser.node
Class PublicFieldExecutor
java.lang.Object
org.apache.velocity.runtime.parser.node.AbstractExecutor
org.apache.velocity.runtime.parser.node.PublicFieldExecutor
public class PublicFieldExecutor
- extends AbstractExecutor
Returns the value of a public field when executed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicFieldExecutor
public PublicFieldExecutor(Log log,
Introspector introspector,
Class clazz,
String property)
- Parameters:
log - introspector - clazz - property - - Since:
- 1.5
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 class AbstractExecutor
- Returns:
- True if executor is alive.
getField
public Field getField()
- Returns:
- The current field.
setField
protected void setField(Field field)
- Parameters:
field -
getIntrospector
protected Introspector getIntrospector()
- Returns:
- The current introspector.
- Since:
- 1.5
discover
protected void discover(Class clazz,
String property)
- Parameters:
clazz - property -
execute
public Object execute(Object o)
throws IllegalAccessException,
InvocationTargetException
- Description copied from class:
AbstractExecutor
- Execute method against context.
- Specified by:
execute in class AbstractExecutor
- Returns:
- The resulting object.
- Throws:
IllegalAccessException
InvocationTargetException- See Also:
AbstractExecutor.execute(java.lang.Object)
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.