Interface VelMethod
-
- All Known Implementing Classes:
UberspectImpl.VelMethodImpl
public interface VelMethod
Method used for regular method invocation $foo.bar()- Version:
- $Id$
- Author:
- Geir Magnusson Jr.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.Method
getMethod()
returns the underlying Methodjava.lang.String
getMethodName()
returns the method name usedjava.lang.Class<?>
getReturnType()
returns the return type of the method invokedjava.lang.Object
invoke(java.lang.Object o, java.lang.Object[] params)
invocation method - called when the method invocation should be performed and a value returnedboolean
isCacheable()
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for
-
-
-
Method Detail
-
invoke
java.lang.Object invoke(java.lang.Object o, java.lang.Object[] params) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
invocation method - called when the method invocation should be performed and a value returned- Parameters:
o
-params
-- Returns:
- The resulting object.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
isCacheable
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
-
getMethodName
java.lang.String getMethodName()
returns the method name used- Returns:
- The method name used
-
getMethod
java.lang.reflect.Method getMethod()
returns the underlying Method- Returns:
- the method
- Since:
- 2.0
-
getReturnType
java.lang.Class<?> getReturnType()
returns the return type of the method invoked- Returns:
- The return type of the method invoked
-
-