Package com.spun.util.velocity
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestableUberspect.VelGetterImplstatic classTestableUberspect.VelMethodImplstatic classTestableUberspect.VelSetterImpl -
Constructor Summary
Constructors Constructor Description TestableUberspect() -
Method Summary
Modifier and Type Method Description Iterator<?>getIterator(Object obj, org.apache.velocity.util.introspection.Info i)org.apache.velocity.util.introspection.VelMethodgetMethod(Object obj, String methodName, Object[] args, org.apache.velocity.util.introspection.Info i)static StringgetMethodText(String className, String methodName, Object[] args)org.apache.velocity.util.introspection.VelPropertyGetgetPropertyGet(Object obj, String identifier, org.apache.velocity.util.introspection.Info i)org.apache.velocity.util.introspection.VelPropertySetgetPropertySet(Object obj, String identifier, Object arg, org.apache.velocity.util.introspection.Info i)static Iterator<?>getStandardIterator(Object obj, org.apache.velocity.util.introspection.Info i)voidinit()init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it.;voidsetBeKindToNulls(boolean behavior)voidsetLog(org.apache.velocity.runtime.log.Log log)voidsetRuntimeLogger(org.apache.velocity.runtime.RuntimeLogger runtimeLogger)
-
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:
initin interfaceorg.apache.velocity.util.introspection.Uberspect
-
setRuntimeLogger
public void setRuntimeLogger(org.apache.velocity.runtime.RuntimeLogger runtimeLogger)- Specified by:
setRuntimeLoggerin interfaceorg.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:
getIteratorin interfaceorg.apache.velocity.util.introspection.Uberspect- Throws:
Exception
-
getStandardIterator
-
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:
getMethodin interfaceorg.apache.velocity.util.introspection.Uberspect- Throws:
Exception
-
getMethodText
-
getPropertyGet
public org.apache.velocity.util.introspection.VelPropertyGet getPropertyGet(Object obj, String identifier, org.apache.velocity.util.introspection.Info i) throws Exception- Specified by:
getPropertyGetin interfaceorg.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:
getPropertySetin interfaceorg.apache.velocity.util.introspection.Uberspect- Throws:
Exception
-
setLog
public void setLog(org.apache.velocity.runtime.log.Log log)- Specified by:
setLogin interfaceorg.apache.velocity.util.introspection.UberspectLoggable
-