public interface ITypeFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
create(Nd dom,
long address) |
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.
|
java.lang.Class<?> |
getElementClass() |
int |
getRecordSize() |
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.
|
void destructFields(Nd dom, long address)
When destructing a type with a superclass, the correct destruction behavior is:
void destruct(Nd dom, long address)
boolean hasDestructor()
int getRecordSize()
java.lang.Class<?> getElementClass()
boolean isReadyForDeletion(Nd dom, long address)
StructDef.DeletionSemantics getDeletionSemantics()