Class UberspectImpl.VelMethodImpl
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl
- All Implemented Interfaces:
VelMethod
- Enclosing class:
- UberspectImpl
Implementation of VelMethod
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Offers an extension point for subclasses (in alternate Uberspects) to alter the invocation after any array wrapping or varargs handling has already been completed.returns the method name usedreturns the return type of the method invokedprivate Object[]
handleVarArg
(Class type, int index, Object[] actual) invocation method - called when the method invocation should be performed and a value returnedboolean
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned forboolean
isVarArg()
-
Field Details
-
method
-
isVarArg
Boolean isVarArg -
wrapArray
boolean wrapArray
-
-
Constructor Details
-
VelMethodImpl
- Parameters:
m
-
-
VelMethodImpl
- Since:
- 1.6
-
VelMethodImpl
private VelMethodImpl()
-
-
Method Details
-
invoke
Description copied from interface:VelMethod
invocation method - called when the method invocation should be performed and a value returned -
doInvoke
Offers an extension point for subclasses (in alternate Uberspects) to alter the invocation after any array wrapping or varargs handling has already been completed.- Throws:
Exception
- Since:
- 1.6
-
isVarArg
public boolean isVarArg()- Returns:
- true if this method can accept a variable number of arguments
- Since:
- 1.6
-
handleVarArg
- Parameters:
type
- The vararg class type (aka component type of the expected array arg)index
- The index of the vararg in the method declaration (This will always be one less than the number of expected arguments.)actual
- The actual parameters being passed to this method
-
isCacheable
public boolean isCacheable()Description copied from interface:VelMethod
specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for- Specified by:
isCacheable
in interfaceVelMethod
- Returns:
- true if can be reused for this class, false if not
- See Also:
-
getMethodName
Description copied from interface:VelMethod
returns the method name used- Specified by:
getMethodName
in interfaceVelMethod
- Returns:
- The method name used
- See Also:
-
getReturnType
Description copied from interface:VelMethod
returns the return type of the method invoked- Specified by:
getReturnType
in interfaceVelMethod
- Returns:
- The return type of the method invoked
- See Also:
-