public class DeserializedClassInitializer extends java.lang.Object implements LazyClassInitializer
Modifier and Type | Field and Description |
---|---|
protected ParsedClassType |
ct |
protected boolean |
init |
protected TypeSystem |
ts |
Constructor and Description |
---|
DeserializedClassInitializer(TypeSystem ts) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected TypeSystem ts
protected ParsedClassType ct
protected boolean init
public DeserializedClassInitializer(TypeSystem ts)
public void setClass(ParsedClassType ct)
LazyClassInitializer
setClass
in interface LazyClassInitializer
public boolean fromClassFile()
LazyClassInitializer
fromClassFile
in interface LazyClassInitializer
public void initTypeObject()
LazyInitializer
initTypeObject
in interface LazyInitializer
public boolean isTypeObjectInitialized()
LazyInitializer
isTypeObjectInitialized
in interface LazyInitializer
public void initSuperclass()
LazyClassInitializer
ct
's superclass.
This method ensures the superclass of the class is initialized to a
canonical type, or throws a MissingDependencyException
.initSuperclass
in interface LazyClassInitializer
public void initInterfaces()
LazyClassInitializer
ct
's interfaces.
This method ensures the interfaces of the class are initialized to
canonical types, or throws a MissingDependencyException
.initInterfaces
in interface LazyClassInitializer
public void initMemberClasses()
LazyClassInitializer
ct
's member classes.
This method ensures the member classes of the class are initialized to
canonical types, or throws a MissingDependencyException
.initMemberClasses
in interface LazyClassInitializer
public void initConstructors()
LazyClassInitializer
ct
's constructors.
This method ensures the list of fields is populated with (possibly
non-canonical) ConstructorInstances, or throws a MissingDependencyException
.initConstructors
in interface LazyClassInitializer
public void initMethods()
LazyClassInitializer
ct
's methods.
This method ensures the list of fields is populated with (possibly
non-canonical) MethodInstances, or throws a MissingDependencyException
.initMethods
in interface LazyClassInitializer
public void initFields()
LazyClassInitializer
ct
's fields.
This method ensures the list of fields is populated with (possibly
non-canonical) FieldInstances, or throws a MissingDependencyException
.initFields
in interface LazyClassInitializer
public void canonicalConstructors()
LazyClassInitializer
ct
's constructors.
This method ensures the list of constructors is populated with
canonical ConstructorInstances, or throws a MissingDependencyException
.canonicalConstructors
in interface LazyClassInitializer
public void canonicalMethods()
LazyClassInitializer
ct
's methods.
This method ensures the list of methods is populated with
canonical MethodInstances, or throws a MissingDependencyException
.canonicalMethods
in interface LazyClassInitializer
public void canonicalFields()
LazyClassInitializer
ct
's fields.
This method ensures the list of fields is populated with
canonical FieldInstances, or throws a MissingDependencyException
.canonicalFields
in interface LazyClassInitializer