org.apache.velocity.util.introspection
Class UberspectImpl

java.lang.Object
  extended by org.apache.velocity.util.introspection.UberspectImpl
All Implemented Interfaces:
Uberspect

public class UberspectImpl
extends Object
implements Uberspect

Implementation of Uberspect to provide the default introspective functionality of Velocity

Version:
$Id: UberspectImpl.java 191743 2005-06-21 23:22:20Z dlr $
Author:
Geir Magnusson Jr.

Nested Class Summary
 class UberspectImpl.VelGetterImpl
           
 class UberspectImpl.VelMethodImpl
          Implementation of VelMethod
 class UberspectImpl.VelSetterImpl
           
 
Constructor Summary
UberspectImpl()
           
 
Method Summary
 Iterator getIterator(Object obj, Info i)
          To support iterative objects used in a #foreach() loop.
 VelMethod getMethod(Object obj, String methodName, Object[] args, Info i)
          Method
 VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
          Property getter
 VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
          Property setter
 void init()
          init - setup a new introspector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UberspectImpl

public UberspectImpl()
Method Detail

init

public void init()
          throws Exception
init - setup a new introspector

Specified by:
init in interface Uberspect
Throws:
Exception

getIterator

public Iterator getIterator(Object obj,
                            Info i)
                     throws Exception
To support iterative objects used in a #foreach() loop.

Specified by:
getIterator in interface Uberspect
Parameters:
obj - The iterative object.
i - Info about the object's location.
Throws:
Exception

getMethod

public VelMethod getMethod(Object obj,
                           String methodName,
                           Object[] args,
                           Info i)
                    throws Exception
Method

Specified by:
getMethod in interface Uberspect
Throws:
Exception

getPropertyGet

public VelPropertyGet getPropertyGet(Object obj,
                                     String identifier,
                                     Info i)
                              throws Exception
Property getter

Specified by:
getPropertyGet in interface Uberspect
Throws:
Exception

getPropertySet

public VelPropertySet getPropertySet(Object obj,
                                     String identifier,
                                     Object arg,
                                     Info i)
                              throws Exception
Property setter

Specified by:
getPropertySet in interface Uberspect
Throws:
Exception


Copyright © 2002 Apache Software Foundation. All Rights Reserved.