|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JClassLoader
This interface represents the class loader component of the Corosol Java Virtual Machine.
| Method Summary | |
|---|---|
JClass |
createArrayClass(java.lang.String name)
Creates a JClass corresponding to the class array specified by the fully qualified name passed in parameter. |
JClass |
createClass(JClassFile classfile)
Creates a JClass object from the classfile data specified by the JClassFile instance. |
JField |
createField(JClass c,
JClassMember fieldInfo)
Creates a JField object from the data described by the specified classfile item containing the description of a field. |
JMethod |
createMethod(JClass c,
JClassMember methodInfo)
Creates a JMethod object from the data described by the specified classfile item containing the description of a method of the c class. |
boolean |
isInterface(JClass fromClazz,
JClass clazz)
Determines if clazz is a superinterface of fromClass. |
boolean |
isSuperclass(JClass fromClazz,
JClass clazz)
Determines if clazz is a superclass of fromClass. |
JClass |
loadClass(java.lang.String name)
Loads the specified class. |
JClass |
loadPrimitiveClass(java.lang.String descriptor)
Loads the specified primitive class. |
JClass |
resolveClass(JClass fromClass,
java.lang.String name)
Executes the dynamic resolution of the class name from the specified class. |
JField |
resolveField(JClass fromClass,
java.lang.String name,
java.lang.String className)
Executes the dynamic resolution of the field name from the specified class. |
JMethod |
resolveInterfaceMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
Executes the dynamic resolution of the interface method name from the specified class. |
JClassMethod |
resolveMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
Executes the dynamic resolution of the method name from the specified class. |
| Methods inherited from interface fr.umlv.corosol.component.JVMComponent |
|---|
configure, getComponentClass, replace |
| Method Detail |
|---|
JClass loadClass(java.lang.String name)
name - the name of a class
createClass(JClassFile)JClass loadPrimitiveClass(java.lang.String descriptor)
descriptor - the descriptor of a primitive typeJClass createClass(JClassFile classfile)
classfile - a classfile
JClass createArrayClass(java.lang.String name)
name - the fully qualified name of an array class
JField createField(JClass c,
JClassMember fieldInfo)
c - the class declaring the field which the JField object
is createdfieldInfo - a classfile item containing the description of the
field object to be created
JMethod createMethod(JClass c,
JClassMember methodInfo)
c - the class declaring the method which the JMethod object
is createdmethodInfo - a classfile item containing the description of the
method object to be created
JClass resolveClass(JClass fromClass,
java.lang.String name)
fromClass - the class from which the resolution is executedname - the name of the class to resolve
JField resolveField(JClass fromClass,
java.lang.String name,
java.lang.String className)
fromClass - the class from which the resolution is executedname - the name of the field to resolveclassName - the name of the class declaring the field to resolve
JClassMethod resolveMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
fromClass - the class from which the resolution is executedname - the name of the method to resolveclassName - the name of the class declaring the method to resolve
JMethod resolveInterfaceMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
fromClass - the class from which the resolution is executedname - the name of the method to resolveclassName - the name of the class declaring the method to resolve
boolean isInterface(JClass fromClazz,
JClass clazz)
fromClazz - class from which we start the researchclazz - class whose we will dertermine if is is a superinterface of
fromClass
boolean isSuperclass(JClass fromClazz,
JClass clazz)
fromClazz - class from which we start the researchclazz - class whose we will dertermine if is is a superclass of
fromClass
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||