org.apache.cocoon.generation
Class VelocityGenerator.JSIntrospector.JSMethod

java.lang.Object
  extended by org.apache.cocoon.generation.VelocityGenerator.JSIntrospector.JSMethod
All Implemented Interfaces:
org.apache.velocity.util.introspection.VelMethod
Enclosing class:
VelocityGenerator.JSIntrospector

public static class VelocityGenerator.JSIntrospector.JSMethod
extends Object
implements org.apache.velocity.util.introspection.VelMethod


Constructor Summary
VelocityGenerator.JSIntrospector.JSMethod(org.mozilla.javascript.Scriptable scope, String name)
           
 
Method Summary
 String getMethodName()
           
 Class getReturnType()
           
 Object invoke(Object thisArg, Object[] args)
           
 boolean isCacheable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityGenerator.JSIntrospector.JSMethod

public VelocityGenerator.JSIntrospector.JSMethod(org.mozilla.javascript.Scriptable scope,
                                                 String name)
Method Detail

invoke

public Object invoke(Object thisArg,
                     Object[] args)
              throws Exception
Specified by:
invoke in interface org.apache.velocity.util.introspection.VelMethod
Throws:
Exception

isCacheable

public boolean isCacheable()
Specified by:
isCacheable in interface org.apache.velocity.util.introspection.VelMethod

getMethodName

public String getMethodName()
Specified by:
getMethodName in interface org.apache.velocity.util.introspection.VelMethod

getReturnType

public Class getReturnType()
Specified by:
getReturnType in interface org.apache.velocity.util.introspection.VelMethod


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.