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

Method Summary
 boolean equals(Object obj)
           
 IClass getDeclaringClass()
           
 IClass[] getExceptionTypes()
           
 int getModifiers()
           
 String getName()
           
 IClass[] getParameterTypes()
           
 IClass getReturnType()
           
 Object invoke(Object obj, Object[] args)
           
 boolean isAccessible()
           
 void setAccessible(boolean val)
           
 String toString()
           
static IMethod wrapMethod(Method aMethod)
           
static IMethod[] wrapMethods(Method[] methods)
           
 Method wrappedMethod()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu