edu.mit.ai.psg.jeva
Class InterpretedConstructor

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

public class InterpretedConstructor
extends InterpretedMember
implements IConstructor

InterpretedConstructor implements IConstructor methods for interpreted constructors, e.g., to invoke constructor through the newInstance method.

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

Constructor Summary
InterpretedConstructor(int modifiers, String className, IClass[] parameterTypes, IClass[] exceptionTypes, JNDConstructorDeclaration constructorNode)
           
 
Method Summary
 JNDConstructorDeclaration getDeclarationNode()
           
 IClass[] getExceptionTypes()
           
 IClass[] getParameterTypes()
           
 Object newInstance(Object[] initArgs)
           
 String toString()
           
 IEnv verifyTypes(IEnv staticEnv, IEnv objectEnv)
           
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpretedConstructor

public InterpretedConstructor(int modifiers,
                              String className,
                              IClass[] parameterTypes,
                              IClass[] exceptionTypes,
                              JNDConstructorDeclaration constructorNode)
Method Detail

getDeclarationNode

public JNDConstructorDeclaration getDeclarationNode()

verifyTypes

public IEnv verifyTypes(IEnv staticEnv,
                        IEnv objectEnv)
                 throws VerifyingException

getParameterTypes

public IClass[] getParameterTypes()
Specified by:
getParameterTypes in interface IConstructor

getExceptionTypes

public IClass[] getExceptionTypes()
Specified by:
getExceptionTypes in interface IConstructor

newInstance

public Object newInstance(Object[] initArgs)
                   throws InstantiationException,
                          IllegalAccessException,
                          IllegalArgumentException,
                          InvocationTargetException
Specified by:
newInstance in interface IConstructor

toString

public String toString()
Overrides:
toString in class Object

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu