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
InterpretedConstructor
public InterpretedConstructor(int modifiers,
String className,
IClass[] parameterTypes,
IClass[] exceptionTypes,
JNDConstructorDeclaration constructorNode)
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