public class NdType extends NdBinding
| Modifier and Type | Field and Description |
|---|---|
static FieldOneToMany<NdAnnotationInType> |
ANNOTATIONS |
static FieldManyToOne<NdMethodId> |
DECLARING_METHOD |
static FieldManyToOne<NdTypeId> |
DECLARING_TYPE |
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 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 FieldOneToMany<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 FieldOneToMany<NdTypeAnnotationInType> |
TYPE_ANNOTATIONS |
static FieldManyToOne<NdTypeId> |
TYPENAME |
FILE, MODIFIERS, TYPE_PARAMETERS, VARIABLES| Constructor and Description |
|---|
NdType(Nd nd,
long address) |
NdType(Nd nd,
NdResourceFile resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptUncached(INdVisitor visitor)
Called to populate the cache for the bindings in the class scope.
|
java.util.List<NdAnnotationInType> |
getAnnotations() |
NdMethodId |
getDeclaringMethod() |
NdTypeId |
getDeclaringType() |
IString |
getFieldDescriptor()
Returns the field descriptor for this type, based on the binary type information stored in the
.class file itself.
|
boolean |
getFlag(byte flagConstant) |
java.util.List<NdTypeInterface> |
getInterfaces() |
java.util.List<NdMethod> |
getMethods() |
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<NdTypeAnnotationInType> |
getTypeAnnotations() |
NdTypeId |
getTypeId() |
java.util.List<NdTypeParameter> |
getTypeParameters() |
boolean |
isAnonymous() |
boolean |
isLocal() |
boolean |
isMember() |
void |
setAnonymous(boolean anonymous) |
void |
setDeclaringMethod(NdMethodId createMethodId) |
void |
setDeclaringType(NdTypeId createTypeIdFromBinaryName) |
void |
setFieldDescriptorFromClass(char[] fieldDescriptorFromClass) |
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() |
getAdapter, getBindingConstant, getFile, getModifiers, getTypeParameterSignatures, getVariables, hasModifier, setFile, setModifierspublic 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 FieldManyToOne<NdMethodId> DECLARING_METHOD
public static final FieldOneToMany<NdMethod> METHODS
public static final FieldOneToMany<NdTypeAnnotationInType> TYPE_ANNOTATIONS
public static final FieldOneToMany<NdAnnotationInType> ANNOTATIONS
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 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 void acceptUncached(INdVisitor visitor) throws CoreException
CoreExceptionpublic NdTypeId getTypeId()
public void setTypeId(NdTypeId typeId)
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 setDeclaringMethod(NdMethodId createMethodId)
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 NdMethodId getDeclaringMethod()
public java.util.List<NdTypeParameter> getTypeParameters()
getTypeParameters in class NdBindingpublic java.util.List<NdTypeAnnotationInType> getTypeAnnotations()
public java.util.List<NdAnnotationInType> getAnnotations()
public java.util.List<NdMethod> getMethods()
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()