com.googlecode.fascinator.portal.velocity
Class JythonUberspect

java.lang.Object
  extended by org.apache.velocity.util.introspection.UberspectImpl
      extended by 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 Class Summary
 
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
 
Field Summary
 
Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl
introspector
 
Constructor Summary
JythonUberspect()
           
 
Method Summary
 Iterator<?> getIterator(Object obj, org.apache.velocity.util.introspection.Info i)
           
 org.apache.velocity.util.introspection.VelMethod getMethod(Object obj, String methodName, Object[] args, org.apache.velocity.util.introspection.Info i)
           
 org.apache.velocity.util.introspection.VelPropertyGet getPropertyGet(Object obj, String identifier, org.apache.velocity.util.introspection.Info i)
           
 org.apache.velocity.util.introspection.VelPropertySet getPropertySet(Object obj, String identifier, Object arg, org.apache.velocity.util.introspection.Info i)
           
static Object toJava(Object obj)
           
 
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
 

Constructor Detail

JythonUberspect

public JythonUberspect()
Method Detail

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-2012. All Rights Reserved.