|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodAccessor
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.
Method Summary | |
---|---|
java.lang.Object |
callMethod(ExprContext context,
java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] args)
Calls the method named with the arguments given. |
java.lang.Object |
callStaticMethod(ExprContext context,
java.lang.Class targetClass,
java.lang.String methodName,
java.lang.Object[] args)
Calls the static method named with the arguments given on the class given. |
Method Detail |
---|
java.lang.Object callStaticMethod(ExprContext context, java.lang.Class targetClass, java.lang.String methodName, java.lang.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 method
MethodFailedException
- if there is an error calling the methodjava.lang.Object callMethod(ExprContext context, java.lang.Object target, java.lang.String methodName, java.lang.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 method
MethodFailedException
- if there is an error calling the method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |