public abstract class AbstractTypeFactory<T> extends java.lang.Object implements ITypeFactory<T>
| Constructor and Description |
|---|
AbstractTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
destruct(Nd dom,
long address)
Invokes any cleanup code for this object.
|
void |
destructFields(Nd dom,
long address)
Invokes the delete method on all the fields of the object, and calls deleteFields on the superclass' type (if
any).
|
StructDef.DeletionSemantics |
getDeletionSemantics()
Returns the deletion semantics used for this object.
|
boolean |
hasDestructor()
If this returns false, the delete and deleteFields methods both always do nothing.
|
boolean |
isReadyForDeletion(Nd dom,
long address)
Returns true if this object is orphaned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getElementClass, getRecordSizepublic void destructFields(Nd dom, long address)
ITypeFactoryWhen destructing a type with a superclass, the correct destruction behavior is:
destructFields in interface ITypeFactory<T>public void destruct(Nd dom, long address)
ITypeFactorydestruct in interface ITypeFactory<T>public boolean hasDestructor()
ITypeFactoryhasDestructor in interface ITypeFactory<T>public boolean isReadyForDeletion(Nd dom, long address)
ITypeFactoryisReadyForDeletion in interface ITypeFactory<T>public StructDef.DeletionSemantics getDeletionSemantics()
ITypeFactorygetDeletionSemantics in interface ITypeFactory<T>