Interface INativeType
- All Superinterfaces:
ICodeItem
,ICodeType
,INativeItem
,INativeItemListenable
- All Known Subinterfaces:
IAliasType
,IArrayType
,IClassType
,IEnumerationType
,IPrimitiveType
,IPrototypeItem
,IReferenceType
,IStructureType
Base interface for native types. Those items are managed by a
ITypeManager
. A native type
has a size in memory.-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_ANONYMOUS, FLAG_ARTIFICIAL, FLAG_BRIDGE, FLAG_CONSTRUCTOR, FLAG_DECLARED_SYNCHRONIZED, FLAG_DESTRUCTOR, FLAG_ENUM, FLAG_FINAL, FLAG_INNER, FLAG_INTERFACE, FLAG_INTERNAL, FLAG_NATIVE, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STRICT, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_VARARGS, FLAG_VIRTUAL, FLAG_VOLATILE
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Get the memory size of this type, in bits.Convenience method used to create a reference (pointer) type on this type.int
getSize()
Get the memory size of this type, in bytes.Get the type manager responsible for this type.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
getAddress, getAddress, getGenericFlags, getIndex, getItemId, getName, getName, getSignature, getSignature, getSignature, isArtificial, isInternal
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeType
getImplementingClass
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItem
addFlags, dispose, getAttribute, getAttributes, hasAttribute, hasFlag, hasTrueAttribute, isAutoGenerated, isDisposed, isRenamed, removeAttribute, removeFlags, setAttribute, setAutoGenerated, setFlags, setName
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItemListenable
addListener, removeListener
-
Method Details
-
getTypeManager
ITypeManager getTypeManager()Get the type manager responsible for this type.- Returns:
-
getSize
int getSize()Get the memory size of this type, in bytes.Note that the computation of the size takes into account padding, packing, and alignment considerations, if they are applicable to the type (eg, for structures).
- Returns:
-
getBitsize
default int getBitsize()Get the memory size of this type, in bits.Note that the computation of the size takes into account padding, packing, and alignment considerations, if they are applicable to the type (eg, for structures).
- Returns:
-
getReference
IReferenceType getReference()Convenience method used to create a reference (pointer) type on this type.- Returns:
- a pointer type to this type
-