|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.mit.ai.psg.jeva.InterpretedMember
|
+--edu.mit.ai.psg.jeva.InterpretedClass
InterpretedClass provides IClass
methods for interpreted classes.
Does not implement array classes. Does not implement Security or Access checks on callers.
Class| Field Summary | |
static IClass[] |
emptyArray
|
| Constructor Summary | |
InterpretedClass(int modifiers,
String name,
IClass extendClass,
IClass[] interfaces,
InterpretedField[] fields,
InterpretedConstructor[] constructors,
InterpretedMethod[] methods,
InterpretedClass[] enclosedClasses,
IEnv env,
JNDClassDeclaration source)
|
|
InterpretedClass(int modifiers,
String fullName,
JNDClassDeclaration classDeclaration,
IEnv env)
|
|
| Method Summary | |
void |
ensureActivated()
[Java Language Specification 1.0, sec 12.4 Initialization of Classes and Interfaces] "A class or interface type T will be *initialized* at its first active use*...". |
void |
evalConstructorBody(Class[] proxyConstrParamTypes,
Object target,
Object[] constrArguments)
Called by constructors in generated proxy classes to evaluate the body of the constructor after the explicit constructor invocation |
Object |
evalExplicitConstructorCallParameter(int paramIndex,
Class[] proxyConstrParamTypes,
Object[] constrArguments)
Called by constructors in generated proxy classes to evaluate each argument of its ExplicitConstructorInvocation. |
void |
evalObjectInitializations(Object obj)
Called by constructors in generated proxy classes to evaluate the class's field and object initializers |
IClass[] |
getClasses()
get all public nested classes of class and superclasses |
ClassLoader |
getClassLoader()
|
IClass |
getComponentType()
|
IConstructor |
getConstructor(IClass[] parameterTypes)
return public constructor with exactly these parameter types |
IConstructor[] |
getConstructors()
get all public constructors of this class (not superclass) |
JNDClassDeclaration |
getDeclarationNode()
|
IClass[] |
getDeclaredClasses()
get all enclosed classes declared locally by this class |
IConstructor |
getDeclaredConstructor(IClass[] parameterTypes)
get constructor with exact parameter types declared locally by class |
IConstructor[] |
getDeclaredConstructors()
get all constructors declared locally by this class |
IField |
getDeclaredField(String name)
get field with this name declared locally by this class |
IField[] |
getDeclaredFields()
get all fields declared locally by this class |
IMethod |
getDeclaredMethod(String name,
IClass[] parameterTypes)
get method with name & exact parameter types declared locally by class |
IMethod[] |
getDeclaredMethods()
get all methods declared locally by this class |
IEnv |
getEnv()
|
IField |
getField(String name)
return public field with this name |
IField[] |
getFields()
get all public fields of class, including those inherited (and not hidden) from its superclass, & their interfaces |
IClass[] |
getInterfaces()
|
IMethod |
getMethod(String name,
IClass[] parameterTypes)
return public method with this name and exactly these parameter types |
IMethod[] |
getMethods()
get all public methods of class, including those inherited (and not overridden) from its superclass |
protected Class |
getProxyClass()
|
URL |
getResource(String name)
not implemented |
InputStream |
getResourceAsStream(String name)
not implemented |
Object[] |
getSigners()
|
IClass |
getSuperclass()
|
protected boolean |
hasProxyClass()
|
void |
initializeConstructors(InterpretedConstructor[] constructors)
|
void |
initializeEnv(IEnv env)
|
void |
initializeFields(InterpretedField[] fields)
|
void |
initializeInterfaces(IClass[] interfaces)
|
void |
initializeMethods(InterpretedMethod[] methods)
|
void |
initializeNestedClasses(InterpretedClass[] classes)
|
void |
initializeSuperclass(IClass superClass)
throws IllegalStateException if already initialized. |
Object |
invokeMethod(String methodName,
Class[] parameterTypes,
Object target,
Object[] parameters)
Called by methods in generated proxy classes to evaluate interpreted method declared by this class. |
boolean |
isArray()
|
boolean |
isAssignableFrom(IClass from)
|
boolean |
isInstance(Object obj)
|
boolean |
isInterface()
|
boolean |
isPrimitive()
|
Object |
newInstance()
|
String |
toString()
|
IEnv |
verifyTypes(IEnv env)
|
| Methods inherited from class edu.mit.ai.psg.jeva.InterpretedMember |
getDeclaringClass,
getModifiers,
getName,
initializeDeclaringClass,
isAccessible,
modifiersString,
setAccessible,
shouldNotHappen,
shouldNotHappen,
shouldNotHappen,
typeListString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final IClass[] emptyArray
| Constructor Detail |
public InterpretedClass(int modifiers,
String name,
IClass extendClass,
IClass[] interfaces,
InterpretedField[] fields,
InterpretedConstructor[] constructors,
InterpretedMethod[] methods,
InterpretedClass[] enclosedClasses,
IEnv env,
JNDClassDeclaration source)
public InterpretedClass(int modifiers,
String fullName,
JNDClassDeclaration classDeclaration,
IEnv env)
| Method Detail |
public IEnv verifyTypes(IEnv env)
throws VerifyingException
public void initializeSuperclass(IClass superClass)
public void initializeInterfaces(IClass[] interfaces)
public void initializeFields(InterpretedField[] fields)
public void initializeConstructors(InterpretedConstructor[] constructors)
public void initializeMethods(InterpretedMethod[] methods)
public void initializeNestedClasses(InterpretedClass[] classes)
public void initializeEnv(IEnv env)
public IEnv getEnv()
public JNDClassDeclaration getDeclarationNode()
public void ensureActivated()
protected boolean hasProxyClass()
protected Class getProxyClass()
public Object invokeMethod(String methodName,
Class[] parameterTypes,
Object target,
Object[] parameters)
throws InvocationTargetException
public Object evalExplicitConstructorCallParameter(int paramIndex,
Class[] proxyConstrParamTypes,
Object[] constrArguments)
throws ThrowException
paramIndex - which argument of the constructor's explicit
constructor invocation to evaluate.constrParamTypes - are the parameter types identifying which
constructor's explicit constructor invocation.constrArguments - are the parameter values to this constructor.
public void evalObjectInitializations(Object obj)
throws ThrowException
public void evalConstructorBody(Class[] proxyConstrParamTypes,
Object target,
Object[] constrArguments)
throws ThrowException
constrParamTypes - the parameter types identifying from which
constructor's the explicit constructor
invocation argument expressions are to be taken.constrArguments - the parameter values to this constructor.
public Object newInstance()
throws InstantiationException,
IllegalAccessException
public boolean isInstance(Object obj)
public boolean isAssignableFrom(IClass from)
public boolean isInterface()
public boolean isArray()
public boolean isPrimitive()
public ClassLoader getClassLoader()
public IClass getSuperclass()
public IClass[] getInterfaces()
public IClass getComponentType()
public Object[] getSigners()
public IClass[] getClasses()
public IField[] getFields()
throws SecurityException
public IMethod[] getMethods()
throws SecurityException
public IConstructor[] getConstructors()
throws SecurityException
public IField getField(String name)
throws NoSuchFieldException,
SecurityException
public IMethod getMethod(String name,
IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
public IConstructor getConstructor(IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
public IClass[] getDeclaredClasses()
throws SecurityException
public IField[] getDeclaredFields()
throws SecurityException
public IMethod[] getDeclaredMethods()
throws SecurityException
public IConstructor[] getDeclaredConstructors()
throws SecurityException
public IField getDeclaredField(String name)
throws NoSuchFieldException,
SecurityException
public IMethod getDeclaredMethod(String name,
IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
public IConstructor getDeclaredConstructor(IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
public InputStream getResourceAsStream(String name)
public URL getResource(String name)
public String toString()
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||