| ognl.MethodAccessor
All known Subclasses: ognl.ObjectMethodAccessor,
MethodAccessor | public interface MethodAccessor (Code) | | This interface defines methods for callinig methods in a target object.
Methods are broken up into static and instance methods for convenience.
indexes into the target object, which must be an array.
author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) |
callMethod | Object callMethod(Map context, Object target, String methodName, Object[] args) throws MethodFailedException(Code) | | Calls the method named with the arguments given.
Parameters: context - expression context in which the method should be called Parameters: target - the object in which the method exists Parameters: methodName - the name of the method Parameters: args - the arguments to the method exception: MethodFailedException - if there is an error calling the method |
callStaticMethod | Object callStaticMethod(Map context, Class targetClass, String methodName, Object[] args) throws MethodFailedException(Code) | | Calls the static method named with the arguments given on the class given.
Parameters: context - expression context in which the method should be called Parameters: targetClass - the object in which the method exists Parameters: methodName - the name of the method Parameters: args - the arguments to the method exception: MethodFailedException - if there is an error calling the method |
|
|