public class NdType extends NdBinding
| Modifier and Type | Field and Description |
|---|---|
static FieldList<NdAnnotation> |
ANNOTATIONS |
static FieldManyToOne<NdTypeId> |
DECLARING_TYPE |
static FieldString |
ENCLOSING_METHOD |
static FieldString |
FIELD_DESCRIPTOR_FROM_CLASS
Binary name that was recorded in the .class file if different from the binary
name that was determined by the .class's name and location.
|
static FieldManyToOne<NdResourceFile> |
FILE |
static FieldByte |
FLAGS |
static byte |
FLG_GENERIC_SIGNATURE_PRESENT |
static byte |
FLG_TYPE_ANONYMOUS |
static byte |
FLG_TYPE_LOCAL |
static byte |
FLG_TYPE_MEMBER |
static FieldString |
INNER_CLASS_SOURCE_NAME |
static FieldOneToMany<NdTypeInterface> |
INTERFACES |
static FieldList<NdMethod> |
METHODS |
static FieldString |
MISSING_TYPE_NAMES |
static FieldString |
SOURCE_FILE_NAME |
static FieldManyToOne<NdTypeSignature> |
SUPERCLASS |
static FieldLong |
TAG_BITS |
static StructDef<NdType> |
type |
static FieldList<NdTypeAnnotation> |
TYPE_ANNOTATIONS |
static FieldManyToOne<NdTypeId> |
TYPENAME |
static FieldList<NdVariable> |
VARIABLES |
MODIFIERS, TYPE_PARAMETERS| Constructor and Description |
|---|
NdType(Nd nd,
long address) |
NdType(Nd nd,
NdResourceFile resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateAnnotations(int length) |
void |
allocateMethods(int length) |
void |
allocateTypeAnnotations(int length) |
void |
allocateVariables(int length) |
NdAnnotation |
createAnnotation() |
NdMethod |
createMethod() |
NdTypeAnnotation |
createTypeAnnotation() |
NdVariable |
createVariable() |
java.util.List<NdAnnotation> |
getAnnotations() |
IString |
getDeclaringMethod() |
NdTypeId |
getDeclaringType() |
IString |
getFieldDescriptor()
Returns the field descriptor for this type, based on the binary type information stored in the
.class file itself.
|
NdResourceFile |
getFile() |
boolean |
getFlag(byte flagConstant) |
java.util.List<NdTypeInterface> |
getInterfaces() |
java.util.List<NdMethod> |
getMethods()
Returns the list of methods, sorted by ascending method name (selector + descriptor).
|
java.util.List<NdMethod> |
getMethodsInDeclarationOrder()
Returns the list of methods, in declaration order.
|
IString |
getMissingTypeNames()
Returns the missing type names as a comma-separated list
|
long |
getResourceAddress() |
NdResourceFile |
getResourceFile() |
IString |
getSourceFileName() |
char[] |
getSourceName() |
IString |
getSourceNameOverride() |
NdTypeSignature |
getSuperclass() |
long |
getTagBits() |
java.util.List<NdTypeAnnotation> |
getTypeAnnotations() |
NdTypeId |
getTypeId() |
java.util.List<NdTypeParameter> |
getTypeParameters() |
java.util.List<NdVariable> |
getVariables() |
boolean |
isAnonymous() |
boolean |
isLocal() |
boolean |
isMember() |
void |
setAnonymous(boolean anonymous) |
void |
setDeclaringMethod(char[] enclosingMethod) |
void |
setDeclaringType(NdTypeId createTypeIdFromBinaryName) |
void |
setFieldDescriptorFromClass(char[] fieldDescriptorFromClass) |
void |
setFile(NdResourceFile file) |
void |
setFlag(byte flagConstant,
boolean value) |
void |
setIsLocal(boolean local) |
void |
setIsMember(boolean member) |
void |
setMissingTypeNames(char[] contents)
Sets the missing type names (if any) for this class.
|
void |
setSourceFileName(char[] sourceFileName) |
void |
setSourceNameOverride(char[] sourceName)
Sets the source name for this type.
|
void |
setSuperclass(NdTypeSignature superclassTypeName) |
void |
setTagBits(long tagBits) |
void |
setTypeId(NdTypeId typeId) |
java.lang.String |
toString() |
allocateTypeParameters, createTypeParameter, getAdapter, getBindingConstant, getModifiers, getTypeParameterSignatures, hasModifier, setModifiersdelete, destruct, equals, getAddress, getBindingID, getBit, getByte, getNodeId, getNodeType, hashCode, load, loadpublic static final FieldManyToOne<NdResourceFile> FILE
public static final FieldManyToOne<NdTypeId> TYPENAME
public static final FieldManyToOne<NdTypeSignature> SUPERCLASS
public static final FieldOneToMany<NdTypeInterface> INTERFACES
public static final FieldManyToOne<NdTypeId> DECLARING_TYPE
public static final FieldList<NdTypeAnnotation> TYPE_ANNOTATIONS
public static final FieldList<NdAnnotation> ANNOTATIONS
public static final FieldList<NdVariable> VARIABLES
public static final FieldString MISSING_TYPE_NAMES
public static final FieldString SOURCE_FILE_NAME
public static final FieldString INNER_CLASS_SOURCE_NAME
public static final FieldByte FLAGS
public static final FieldLong TAG_BITS
public static final FieldString ENCLOSING_METHOD
public static final FieldString FIELD_DESCRIPTOR_FROM_CLASS
public static final byte FLG_TYPE_ANONYMOUS
public static final byte FLG_TYPE_LOCAL
public static final byte FLG_TYPE_MEMBER
public static final byte FLG_GENERIC_SIGNATURE_PRESENT
public NdType(Nd nd, long address)
public NdType(Nd nd, NdResourceFile resource)
public NdTypeId getTypeId()
public void setTypeId(NdTypeId typeId)
public void setFile(NdResourceFile file)
public NdResourceFile getFile()
public void setSourceNameOverride(char[] sourceName)
public IString getSourceNameOverride()
public long getResourceAddress()
public void setSuperclass(NdTypeSignature superclassTypeName)
public NdTypeSignature getSuperclass()
public java.util.List<NdTypeInterface> getInterfaces()
public NdResourceFile getResourceFile()
public void setDeclaringType(NdTypeId createTypeIdFromBinaryName)
createTypeIdFromBinaryName - public NdTypeId getDeclaringType()
public void setMissingTypeNames(char[] contents)
public IString getMissingTypeNames()
public void setSourceFileName(char[] sourceFileName)
public IString getSourceFileName()
public void setAnonymous(boolean anonymous)
public void setIsLocal(boolean local)
public void setIsMember(boolean member)
public boolean isAnonymous()
public boolean isLocal()
public boolean isMember()
public void setFlag(byte flagConstant,
boolean value)
public boolean getFlag(byte flagConstant)
public char[] getSourceName()
public java.util.List<NdVariable> getVariables()
public java.util.List<NdTypeParameter> getTypeParameters()
getTypeParameters in class NdBindingpublic java.util.List<NdTypeAnnotation> getTypeAnnotations()
public java.util.List<NdAnnotation> getAnnotations()
public NdAnnotation createAnnotation()
public void allocateAnnotations(int length)
public java.util.List<NdMethod> getMethods()
public java.util.List<NdMethod> getMethodsInDeclarationOrder()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setTagBits(long tagBits)
public long getTagBits()
public void setFieldDescriptorFromClass(char[] fieldDescriptorFromClass)
public IString getFieldDescriptor()
public NdTypeAnnotation createTypeAnnotation()
public void allocateTypeAnnotations(int length)
public NdVariable createVariable()
public void allocateVariables(int length)
public void allocateMethods(int length)
public NdMethod createMethod()
public void setDeclaringMethod(char[] enclosingMethod)
public IString getDeclaringMethod()