org.apache.velocity.util.introspection

Interface VelMethod

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
StringgetMethodName()
returns the method name used
ClassgetReturnType()
returns the return type of the method invoked
Objectinvoke(Object o, Object[] params)
invocation method - called when the method invocationshould be preformed and a value returned
booleanisCacheable()
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for

Method Detail

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)
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.