org.apache.velocity.util.introspection

Interface Uberspect

public interface Uberspect

'Federated' introspection/reflection interface to allow the introspection behavior in Velocity to be customized.

Version: $Id: Uberspect.java,v 1.1.4.1 2004/03/03 23:23:08 geirm Exp $

Author: Geir Magusson Jr.

Method Summary
IteratorgetIterator(Object obj, Info info)
To support iteratives - #foreach()
VelMethodgetMethod(Object obj, String method, Object[] args, Info info)
Returns a general method, corresponding to $foo.bar( $woogie )
VelPropertyGetgetPropertyGet(Object obj, String identifier, Info info)
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie)
VelPropertySetgetPropertySet(Object obj, String identifier, Object arg, Info info)
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir")
voidinit()
Initializer - will be called before use

Method Detail

getIterator

public Iterator getIterator(Object obj, Info info)
To support iteratives - #foreach()

getMethod

public VelMethod getMethod(Object obj, String method, Object[] args, Info info)
Returns a general method, corresponding to $foo.bar( $woogie )

getPropertyGet

public VelPropertyGet getPropertyGet(Object obj, String identifier, Info info)
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie)

getPropertySet

public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info)
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir")

init

public void init()
Initializer - will be called before use
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.