org.apache.velocity.runtime.parser.node

Class PropertyExecutor

Known Direct Subclasses:
BooleanPropertyExecutor

public class PropertyExecutor
extends AbstractExecutor

Returned the value of object property when executed.

Field Summary

protected Introspector
introspector
protected String
methodUsed

Fields inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor

method, rlog

Constructor Summary

PropertyExecutor(RuntimeLogger r, Introspector ispctr, Class clazz, String property)

Method Summary

protected void
discover(Class clazz, String property)
Object
execute(Object o)
Execute method against context.

Methods inherited from class org.apache.velocity.runtime.parser.node.AbstractExecutor

execute, getMethod, isAlive

Field Details

introspector

protected Introspector introspector

methodUsed

protected String methodUsed

Constructor Details

PropertyExecutor

public PropertyExecutor(RuntimeLogger r,
                        Introspector ispctr,
                        Class clazz,
                        String property)

Method Details

discover

protected void discover(Class clazz,
                        String property)

execute

public Object execute(Object o)
            throws IllegalAccessException,
                   InvocationTargetException
Execute method against context.
Overrides:
execute in interface AbstractExecutor

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.