public class FieldOneToOne<T extends NdNode> extends java.lang.Object implements IField, IDestructableField, IRefCountedField
| Modifier and Type | Method and Description |
|---|---|
static <T extends NdNode,B extends NdNode> |
create(StructDef<B> builder,
java.lang.Class<T> nodeType,
FieldOneToOne<B> forwardPointer) |
static <T extends NdNode,B extends NdNode> |
createOwner(StructDef<B> builder,
java.lang.Class<T> nodeType,
FieldOneToOne<B> forwardPointer) |
void |
destruct(Nd nd,
long address) |
T |
get(Nd nd,
long address) |
int |
getRecordSize() |
boolean |
hasReferences(Nd nd,
long address)
Returns true if this field knows of any remaining incoming references to this object.
|
void |
put(Nd nd,
long address,
T target) |
void |
setOffset(int offset) |
public static <T extends NdNode,B extends NdNode> FieldOneToOne<T> create(StructDef<B> builder, java.lang.Class<T> nodeType, FieldOneToOne<B> forwardPointer)
public static <T extends NdNode,B extends NdNode> FieldOneToOne<T> createOwner(StructDef<B> builder, java.lang.Class<T> nodeType, FieldOneToOne<B> forwardPointer)
public void destruct(Nd nd, long address)
destruct in interface IDestructableFieldpublic int getRecordSize()
getRecordSize in interface IFieldpublic boolean hasReferences(Nd nd, long address)
IRefCountedFieldFieldManyToOne to determine whether or not
a refcounted object should be deleted after a reference is removed.
Implementations should return false if the refcount is 0 or true if the refcount is nonzero.
hasReferences in interface IRefCountedField