|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.AbstractJVMComponent
fr.umlv.corosol.component.impl.DefaultJClassLoader
public class DefaultJClassLoader
This class represents the default implementation of the fr.umlv.corosol.component.JClassLoader interface. It represents the default class loader component. Among all components of the JVM, this is the most important, becauces it create JClass, JField and JMethod instances, which are used by a lot of components.
| Constructor Summary | |
|---|---|
DefaultJClassLoader()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
configure(JVirtualMachine jvm)
Configures the component via the specified JVM. |
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 of the c class. |
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. |
java.lang.Class |
getComponentClass()
Returns the class object describing this component. |
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. |
java.lang.String |
toString()
Returns a string representation of this class loader and its components. |
| Methods inherited from class fr.umlv.corosol.component.impl.AbstractJVMComponent |
|---|
replace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.component.JVMComponent |
|---|
replace |
| Constructor Detail |
|---|
public DefaultJClassLoader()
| Method Detail |
|---|
public void configure(JVirtualMachine jvm)
configure in interface JVMComponentconfigure in class AbstractJVMComponentjvm - the Java Virtual Machinepublic JClass loadClass(java.lang.String name)
loadClass in interface JClassLoadername - the name of a class
createClass(JClassFile)public JClass loadPrimitiveClass(java.lang.String descriptor)
loadPrimitiveClass in interface JClassLoaderdescriptor - the descriptor of a primitive typepublic JClass createClass(JClassFile classfile)
createClass in interface JClassLoaderclassfile - a classfile
public JClass createArrayClass(java.lang.String name)
createArrayClass in interface JClassLoadername - the fully qualified name of an array class
public JField createField(JClass c,
JClassMember fieldInfo)
createField in interface JClassLoaderc - the class declaring the field which the JField object
is createdfieldInfo - a classfile item containing the description of the
field object to be created
public JMethod createMethod(JClass c,
JClassMember methodInfo)
createMethod in interface JClassLoaderc - the class declaring the method which the JMethod object
is createdmethodInfo - a classfile item containing the description of the
method object to be created
public java.lang.Class getComponentClass()
getComponentClass in interface JVMComponent
public JClass resolveClass(JClass fromClass,
java.lang.String name)
resolveClass in interface JClassLoaderfromClass - the class from which the resolution is executedname - the name of the class to resolve
public JField resolveField(JClass fromClass,
java.lang.String name,
java.lang.String className)
resolveField in interface JClassLoaderfromClass - 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
public JClassMethod resolveMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
resolveMethod in interface JClassLoaderfromClass - 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
public JMethod resolveInterfaceMethod(JClass fromClass,
java.lang.String name,
java.lang.String className,
java.lang.String desc)
resolveInterfaceMethod in interface JClassLoaderfromClass - 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
public boolean isInterface(JClass fromClazz,
JClass clazz)
isInterface in interface JClassLoaderfromClazz - class from which we start the researchclazz - class whose we will dertermine if is is a superinterface of
fromClass
public boolean isSuperclass(JClass fromClazz,
JClass clazz)
isSuperclass in interface JClassLoaderfromClazz - class from which we start the researchclazz - class whose we will dertermine if is is a superclass of
fromClass
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||