org.apache.velocity.util.introspection

Interface VelMethod

Known Implementing Classes:
UberspectImpl.VelMethodImpl

public interface VelMethod

Method used for regular method invocation $foo.bar()
Version:
$Id: VelMethod.java,v 1.2.4.1 2004/03/03 23:23:08 geirm Exp $
Author:
Geir Magnusson Jr.

Method Summary

String
getMethodName()
returns the method name used
Class
getReturnType()
returns the return type of the method invoked
Object
invoke(Object o, Object[] params)
invocation method - called when the method invocationshould be preformed and a value returned
boolean
isCacheable()
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for

Method Details

getMethodName

public String getMethodName()
returns the method name used

getReturnType

public Class getReturnType()
returns the return type of the method invoked

invoke

public Object invoke(Object o,
                     Object[] params)
            throws Exception
invocation method - called when the method invocationshould be preformed and a value returned

isCacheable

public boolean isCacheable()
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for
Returns:
true if can be reused for this class, false if not

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.