edu.mit.ai.psg.jeva
Class WrappedMethod
java.lang.Object
|
+--edu.mit.ai.psg.jeva.WrappedMethod
- public class WrappedMethod
- extends Object
- implements IMethod
WrappedMethod wraps binary Method objects to implement IMethod
Invariant: if methodA == methodB, their wrappers are == also.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998, 1999 Massachusetts Institute of Technology
wrapMethod
public static IMethod wrapMethod(Method aMethod)
wrapMethods
public static IMethod[] wrapMethods(Method[] methods)
wrappedMethod
public Method wrappedMethod()
isAccessible
public boolean isAccessible()
setAccessible
public void setAccessible(boolean val)
getDeclaringClass
public IClass getDeclaringClass()
getName
public String getName()
getModifiers
public int getModifiers()
getReturnType
public IClass getReturnType()
- Specified by:
- getReturnType in interface IMethod
getParameterTypes
public IClass[] getParameterTypes()
- Specified by:
- getParameterTypes in interface IMethod
getExceptionTypes
public IClass[] getExceptionTypes()
- Specified by:
- getExceptionTypes in interface IMethod
invoke
public Object invoke(Object obj,
Object[] args)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Specified by:
- invoke in interface IMethod
toString
public String toString()
- Overrides:
- toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object