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.
wrapConstructor
public static IConstructor wrapConstructor(Constructor aConstructor)
wrapConstructors
public static IConstructor[] wrapConstructors(Constructor[] constructors)
getWrappedConstructor
public Constructor getWrappedConstructor()
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