com.googlecode.fascinator.portal.velocity
Class JythonUberspect
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
com.googlecode.fascinator.portal.velocity.JythonUberspect
- All Implemented Interfaces:
- org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable
public class JythonUberspect
- extends org.apache.velocity.util.introspection.UberspectImpl
Jython/Velocity integration
Based on http://wiki.apache.org/jakarta-velocity/JythonUberspect
- Author:
- Oliver Lucido
| Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl |
org.apache.velocity.util.introspection.UberspectImpl.VelGetterImpl, org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl, org.apache.velocity.util.introspection.UberspectImpl.VelSetterImpl |
| Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl |
introspector |
| Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl |
init, setLog, setRuntimeLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JythonUberspect
public JythonUberspect()
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- Overrides:
getIterator in class org.apache.velocity.util.introspection.UberspectImpl
- Throws:
Exception
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- Overrides:
getMethod in class org.apache.velocity.util.introspection.UberspectImpl
- Throws:
Exception
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- Overrides:
getPropertyGet in class org.apache.velocity.util.introspection.UberspectImpl
- 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- Overrides:
getPropertySet in class org.apache.velocity.util.introspection.UberspectImpl
- Throws:
Exception
toJava
public static Object toJava(Object obj)
Copyright © 2009-2014. All Rights Reserved.