public interface MethodAccessor
Modifier and Type | Method and Description |
---|---|
Object |
callMethod(Map context,
Object target,
String methodName,
Object[] args)
Calls the method named with the arguments given.
|
Object |
callStaticMethod(Map context,
Class targetClass,
String methodName,
Object[] args)
Calls the static method named with the arguments given on the class given.
|
Object callStaticMethod(Map context, Class targetClass, String methodName, Object[] args) throws MethodFailedException
context
- expression context in which the method should be calledtargetClass
- the object in which the method existsmethodName
- the name of the methodargs
- the arguments to the methodMethodFailedException
- if there is an error calling the methodObject callMethod(Map context, Object target, String methodName, Object[] args) throws MethodFailedException
context
- expression context in which the method should be calledtarget
- the object in which the method existsmethodName
- the name of the methodargs
- the arguments to the methodMethodFailedException
- if there is an error calling the methodCopyright © 1997–2021 The Apache Software Foundation. All rights reserved.