public class ObjectMethodAccessor extends Object implements MethodAccessor
| Constructor and Description |
|---|
ObjectMethodAccessor() |
| 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.
|
public Object callStaticMethod(Map context, Class targetClass, String methodName, Object[] args) throws MethodFailedException
MethodAccessorcallStaticMethod in interface MethodAccessorcontext - 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 methodpublic Object callMethod(Map context, Object target, String methodName, Object[] args) throws MethodFailedException
MethodAccessorcallMethod in interface MethodAccessorcontext - 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–2018 OpenSymphony. All rights reserved.