edu.mit.ai.psg.jeva
Class InterpretedMethod

java.lang.Object
  |
  +--edu.mit.ai.psg.jeva.InterpretedMember
        |
        +--edu.mit.ai.psg.jeva.InterpretedMethod

public class InterpretedMethod
extends InterpretedMember
implements IMethod

InterpretedMethod implements IMethod for interpreted methods, e.g., to invoke method through the invoke method.

Author:
CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998, 1999 Massachusetts Institute of Technology
See Also:
Method

Method Summary
 boolean equals(Object obj)
           
 JNDMethodDeclaration getDeclarationNode()
           
 IClass[] getExceptionTypes()
           
 IClass[] getParameterTypes()
           
 IClass getReturnType()
           
 Object invoke(Object obj, Object[] args)
           
 String toString()
           
 IEnv verifyTypes(IEnv env)
           
 
Methods inherited from class edu.mit.ai.psg.jeva.InterpretedMember
getDeclaringClass, getModifiers, getName, initializeDeclaringClass, isAccessible, modifiersString, setAccessible, typeListString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDeclarationNode

public JNDMethodDeclaration getDeclarationNode()

verifyTypes

public IEnv verifyTypes(IEnv env)
                 throws VerifyingException

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,
                     NullPointerException
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