org.apache.velocity.runtime.parser.node
Class SetPropertyExecutor

java.lang.Object
  extended by org.apache.velocity.runtime.parser.node.SetExecutor
      extended by org.apache.velocity.runtime.parser.node.SetPropertyExecutor

public class SetPropertyExecutor
extends SetExecutor

Executor for looking up property names in the passed in class This will try to find a set<foo>(key, value) method

Version:
$Id: SetPropertyExecutor.java 463298 2006-10-12 16:10:32Z henning $
Author:
Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
log
 
Constructor Summary
SetPropertyExecutor(Log log, Introspector introspector, Class clazz, String property, Object arg)
           
 
Method Summary
protected  void discover(Class clazz, String property, Object arg)
           
 Object execute(Object o, Object value)
          Execute method against context.
protected  Introspector getIntrospector()
           
 
Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor
getMethod, isAlive, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetPropertyExecutor

public SetPropertyExecutor(Log log,
                           Introspector introspector,
                           Class clazz,
                           String property,
                           Object arg)
Parameters:
log -
introspector -
clazz -
property -
arg -
Method Detail

getIntrospector

protected Introspector getIntrospector()
Returns:
The current introspector.

discover

protected void discover(Class clazz,
                        String property,
                        Object arg)
Parameters:
clazz -
property -
arg -

execute

public Object execute(Object o,
                      Object value)
               throws IllegalAccessException,
                      InvocationTargetException
Execute method against context.

Specified by:
execute in class SetExecutor
Parameters:
o -
value -
Returns:
The value of the invocation.
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.