|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.types.SchedulerClassInitializer
public class SchedulerClassInitializer
A LazyClassInitializer is responsible for initializing members of a class after it has been created. Members are initialized lazily to correctly handle cyclic dependencies between classes. SchedulerClassInitializer ensures that scheduler dependencies are enforced when a ParsedClassType member is accessed.
| Field Summary | |
|---|---|
protected boolean |
constructorsCanonicalized
|
protected boolean |
constructorsInitialized
|
protected ParsedClassType |
ct
|
protected boolean |
fieldsCanonicalized
|
protected boolean |
fieldsInitialized
|
protected boolean |
init
|
protected boolean |
interfacesInitialized
|
protected boolean |
memberClassesInitialized
|
protected boolean |
methodsCanonicalized
|
protected boolean |
methodsInitialized
|
protected Scheduler |
scheduler
|
protected boolean |
superclassInitialized
|
protected TypeSystem |
ts
|
| Constructor Summary | |
|---|---|
SchedulerClassInitializer(TypeSystem ts)
|
|
| Method Summary | |
|---|---|
void |
canonicalConstructors()
Initialize ct's constructors. |
void |
canonicalFields()
Initialize ct's fields. |
void |
canonicalMethods()
Initialize ct's methods. |
boolean |
fromClassFile()
Return true if the class is from a class file. |
void |
initConstructors()
Initialize ct's constructors. |
void |
initFields()
Initialize ct's fields. |
void |
initInterfaces()
Initialize ct's interfaces. |
void |
initMemberClasses()
Initialize ct's member classes. |
void |
initMethods()
Initialize ct's methods. |
void |
initSuperclass()
Initialize ct's superclass. |
void |
initTypeObject()
Initialize the type object. |
boolean |
isTypeObjectInitialized()
Return true if initTypeObject has been called. |
void |
setClass(ParsedClassType ct)
Set the class type we're initializing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TypeSystem ts
protected ParsedClassType ct
protected Scheduler scheduler
protected boolean init
protected boolean superclassInitialized
protected boolean interfacesInitialized
protected boolean memberClassesInitialized
protected boolean constructorsInitialized
protected boolean methodsInitialized
protected boolean fieldsInitialized
protected boolean constructorsCanonicalized
protected boolean methodsCanonicalized
protected boolean fieldsCanonicalized
| Constructor Detail |
|---|
public SchedulerClassInitializer(TypeSystem ts)
| Method Detail |
|---|
public void setClass(ParsedClassType ct)
LazyClassInitializer
setClass in interface LazyClassInitializerpublic boolean fromClassFile()
LazyClassInitializer
fromClassFile in interface LazyClassInitializerpublic void initTypeObject()
LazyInitializer
initTypeObject in interface LazyInitializerpublic boolean isTypeObjectInitialized()
LazyInitializer
isTypeObjectInitialized in interface LazyInitializerpublic void initSuperclass()
LazyClassInitializerct's superclass.
This method ensures the superclass of the class is initailized to a
canonical type, or throws a MissingDependencyException.
initSuperclass in interface LazyClassInitializerpublic void initInterfaces()
LazyClassInitializerct's interfaces.
This method ensures the interfaces of the class are initailized to
canonical types, or throws a MissingDependencyException.
initInterfaces in interface LazyClassInitializerpublic void initMemberClasses()
LazyClassInitializerct's member classes.
This method ensures the member classes of the class are initailized to
canonical types, or throws a MissingDependencyException.
initMemberClasses in interface LazyClassInitializerpublic void canonicalConstructors()
LazyClassInitializerct's constructors.
This method ensures the list of constructors is populated with
canonical ConstructorInstances, or throws a MissingDependencyException.
canonicalConstructors in interface LazyClassInitializerpublic void canonicalMethods()
LazyClassInitializerct's methods.
This method ensures the list of methods is populated with
canonical MethodInstances, or throws a MissingDependencyException.
canonicalMethods in interface LazyClassInitializerpublic void canonicalFields()
LazyClassInitializerct's fields.
This method ensures the list of fields is populated with
canonical FieldInstances, or throws a MissingDependencyException.
canonicalFields in interface LazyClassInitializerpublic void initConstructors()
LazyClassInitializerct's constructors.
This method ensures the list of fields is populated with (possibly
non-canonical) ConstructorInstances, or throws a MissingDependencyException.
initConstructors in interface LazyClassInitializerpublic void initMethods()
LazyClassInitializerct's methods.
This method ensures the list of fields is populated with (possibly
non-canonical) MethodInstances, or throws a MissingDependencyException.
initMethods in interface LazyClassInitializerpublic void initFields()
LazyClassInitializerct's fields.
This method ensures the list of fields is populated with (possibly
non-canonical) FieldInstances, or throws a MissingDependencyException.
initFields in interface LazyClassInitializer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||