|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LazyClassInitializer
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.
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 |
setClass(ParsedClassType ct)
Set the class type we're initializing. |
Methods inherited from interface polyglot.types.LazyInitializer |
---|
initTypeObject, isTypeObjectInitialized |
Method Detail |
---|
boolean fromClassFile()
void setClass(ParsedClassType ct)
void initSuperclass()
ct
's superclass.
This method ensures the superclass of the class is initailized to a
canonical type, or throws a MissingDependencyException
.
void canonicalConstructors()
ct
's constructors.
This method ensures the list of constructors is populated with
canonical ConstructorInstances, or throws a MissingDependencyException
.
void canonicalMethods()
ct
's methods.
This method ensures the list of methods is populated with
canonical MethodInstances, or throws a MissingDependencyException
.
void canonicalFields()
ct
's fields.
This method ensures the list of fields is populated with
canonical FieldInstances, or throws a MissingDependencyException
.
void initConstructors()
ct
's constructors.
This method ensures the list of fields is populated with (possibly
non-canonical) ConstructorInstances, or throws a MissingDependencyException
.
void initMethods()
ct
's methods.
This method ensures the list of fields is populated with (possibly
non-canonical) MethodInstances, or throws a MissingDependencyException
.
void initFields()
ct
's fields.
This method ensures the list of fields is populated with (possibly
non-canonical) FieldInstances, or throws a MissingDependencyException
.
void initMemberClasses()
ct
's member classes.
This method ensures the member classes of the class are initailized to
canonical types, or throws a MissingDependencyException
.
void initInterfaces()
ct
's interfaces.
This method ensures the interfaces of the class are initailized to
canonical types, or throws a MissingDependencyException
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |