public class NdTypeAnnotation extends NdAnnotation implements IDestructable
| Modifier and Type | Field and Description |
|---|---|
static FieldPointer |
PATH |
static FieldByte |
PATH_LENGTH |
static FieldByte |
TARGET_ARG0 |
static FieldByte |
TARGET_ARG1 |
static FieldByte |
TARGET_TYPE |
static StructDef<NdTypeAnnotation> |
type |
ANNOTATION_TYPE, ELEMENT_VALUE_PAIRS| Constructor and Description |
|---|
NdTypeAnnotation(Nd nd,
long address) |
| Modifier and Type | Method and Description |
|---|---|
void |
destruct()
Intended to be implemented by objects which require a custom destruction step.
|
int |
getTarget() |
byte |
getTargetInfoArg0() |
byte |
getTargetInfoArg1() |
int |
getTargetType() |
byte[] |
getTypePath() |
void |
setPath(byte[] path) |
void |
setTargetInfo(byte arg0,
byte arg1) |
void |
setTargetInfo(int arg) |
void |
setTargetType(int targetType) |
allocateValuePairs, createValuePair, getElementValuePairs, getType, setTypegetAddress, getDB, getNdpublic static final FieldByte TARGET_TYPE
public static final FieldByte TARGET_ARG0
public static final FieldByte TARGET_ARG1
public static final FieldByte PATH_LENGTH
public static final FieldPointer PATH
public static final StructDef<NdTypeAnnotation> type
public NdTypeAnnotation(Nd nd, long address)
public void setPath(byte[] path)
public void setTargetInfo(int arg)
public byte getTargetInfoArg0()
public byte getTargetInfoArg1()
public int getTarget()
public void setTargetInfo(byte arg0,
byte arg1)
public void setTargetType(int targetType)
targetType - one of the constants from AnnotationTargetTypeConstantspublic int getTargetType()
AnnotationTargetTypeConstantspublic byte[] getTypePath()
public void destruct()
IDestructableNdNode.delete()
If you are writing code that must run as part of delete (or are implementing part of the destruct method on a custom ITypeFactory)the correct steps to destructing an object are:
Normally, first two steps are performed together as part of ITypeFactory.destruct
destruct in interface IDestructable