edu.mit.ai.psg.jeva
Class WrappedConstructor

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

public class WrappedConstructor
extends Object
implements IConstructor

WrappedConstructor wraps binary Constructor objects to implement IConstructor . Invariant: if constructorA == constructorB, 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()
           
 boolean isAccessible()
           
 Object newInstance(Object[] initArgs)
           
 void setAccessible(boolean val)
           
 String toString()
           
static IConstructor wrapConstructor(Constructor aConstructor)
           
static IConstructor[] wrapConstructors(Constructor[] constructors)
           
 Constructor wrappedConstructor()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wrapConstructor

public static IConstructor wrapConstructor(Constructor aConstructor)

wrapConstructors

public static IConstructor[] wrapConstructors(Constructor[] constructors)

wrappedConstructor

public Constructor wrappedConstructor()

isAccessible

public boolean isAccessible()

setAccessible

public void setAccessible(boolean val)

getDeclaringClass

public IClass getDeclaringClass()

getName

public String getName()

getModifiers

public int getModifiers()

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

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