Class TestableUberspect

java.lang.Object
com.spun.util.velocity.TestableUberspect
All Implemented Interfaces:
org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable

public class TestableUberspect
extends Object
implements org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable
Implementation of Uberspect to provide the default introspective functionality of Velocity
Version:
$Id: UberspectImpl.java,v 1.2.4.1 2004/03/03 23:23:08 geirm Exp $
Author:
Geir Magnusson Jr.
  • Constructor Details

    • TestableUberspect

      public TestableUberspect()
  • Method Details

    • init

      public void init()
      init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it.;
      Specified by:
      init in interface org.apache.velocity.util.introspection.Uberspect
    • setRuntimeLogger

      public void setRuntimeLogger​(org.apache.velocity.runtime.RuntimeLogger runtimeLogger)
      Specified by:
      setRuntimeLogger in interface org.apache.velocity.util.introspection.UberspectLoggable
    • setBeKindToNulls

      public void setBeKindToNulls​(boolean behavior)
    • getIterator

      public Iterator<?> getIterator​(Object obj, org.apache.velocity.util.introspection.Info i) throws Exception
      Specified by:
      getIterator in interface org.apache.velocity.util.introspection.Uberspect
      Throws:
      Exception
    • getStandardIterator

      public static Iterator<?> getStandardIterator​(Object obj, org.apache.velocity.util.introspection.Info i)
    • getMethod

      public org.apache.velocity.util.introspection.VelMethod getMethod​(Object obj, String methodName, Object[] args, org.apache.velocity.util.introspection.Info i) throws Exception
      Specified by:
      getMethod in interface org.apache.velocity.util.introspection.Uberspect
      Throws:
      Exception
    • getMethodText

      public static String getMethodText​(String className, String methodName, Object[] args)
    • getPropertyGet

      public org.apache.velocity.util.introspection.VelPropertyGet getPropertyGet​(Object obj, String identifier, org.apache.velocity.util.introspection.Info i) throws Exception
      Specified by:
      getPropertyGet in interface org.apache.velocity.util.introspection.Uberspect
      Throws:
      Exception
    • getPropertySet

      public org.apache.velocity.util.introspection.VelPropertySet getPropertySet​(Object obj, String identifier, Object arg, org.apache.velocity.util.introspection.Info i) throws Exception
      Specified by:
      getPropertySet in interface org.apache.velocity.util.introspection.Uberspect
      Throws:
      Exception
    • setLog

      public void setLog​(org.apache.velocity.runtime.log.Log log)
      Specified by:
      setLog in interface org.apache.velocity.util.introspection.UberspectLoggable