public class NdTypeId extends NdTypeSignature
| Modifier and Type | Field and Description |
|---|---|
static FieldOneToMany<NdType> |
DECLARED_TYPES |
static FieldSearchKey<JavaIndex> |
FIELD_DESCRIPTOR |
static FieldSearchKey<JavaIndex> |
SIMPLE_NAME |
static StructDef<NdTypeId> |
type |
static FieldOneToMany<NdType> |
TYPES |
static FieldOneToMany<NdComplexTypeSignature> |
USED_AS_COMPLEX_TYPE |
ANNOTATIONS_OF_THIS_TYPE, IMPLEMENTATIONS, SUBCLASSES, USED_AS_CONSTANT, USED_AS_ENUM_CONSTANT, USED_AS_EXCEPTION, USED_AS_METHOD_ARGUMENT, USED_AS_RETURN_TYPE, USED_AS_TYPE_ARGUMENT, USED_AS_TYPE_BOUND, VARIABLES_OF_TYPE| Constructor and Description |
|---|
NdTypeId(Nd nd,
char[] fieldDescriptor) |
NdTypeId(Nd nd,
long address) |
| Modifier and Type | Method and Description |
|---|---|
NdType |
findTypeByResourceAddress(long resourceAddress) |
NdTypeSignature |
getArrayDimensionType()
If the receiver is an array type, it returns the signature of the array's next dimension.
|
char[] |
getBinaryName() |
java.util.List<NdComplexTypeSignature> |
getComplexTypes() |
java.util.List<NdType> |
getDeclaredTypes() |
java.util.List<NdTypeSignature> |
getDeclaringTypeChain()
Returns the chain of declaring generic types.
|
IString |
getFieldDescriptor()
Returns the field descriptor.
|
char[] |
getFieldDescriptorWithoutTrailingSemicolon() |
NdTypeId |
getRawType()
Returns the raw version of this type, if one exists.
|
void |
getSignature(CharArrayBuffer result,
boolean includeTrailingSemicolon) |
IString |
getSimpleName() |
char[] |
getSimpleNameCharArray() |
java.util.List<NdType> |
getSubTypes()
Returns all subclasses (for classes) and implementations (for interfaces) of this type
|
java.util.List<NdTypeArgument> |
getTypeArguments()
Returns the type arguments for this type signature, if any.
|
java.util.List<NdType> |
getTypes() |
boolean |
hasFieldDescriptor(java.lang.String name) |
boolean |
hasSimpleName(java.lang.String name) |
boolean |
isArrayType()
Returns true iff this is an array type signature (ie: that getArrayDimensionType() will return a non-null
answer).
|
boolean |
isTypeVariable() |
void |
setSimpleName(java.lang.String name) |
getImplementations, getSignature, getSubclasses, toStringdelete, destruct, equals, getAddress, getBindingID, getBit, getByte, getNodeId, getNodeType, hashCode, load, loadpublic static final FieldSearchKey<JavaIndex> FIELD_DESCRIPTOR
public static final FieldSearchKey<JavaIndex> SIMPLE_NAME
public static final FieldOneToMany<NdType> TYPES
public static final FieldOneToMany<NdComplexTypeSignature> USED_AS_COMPLEX_TYPE
public static final FieldOneToMany<NdType> DECLARED_TYPES
public NdTypeId(Nd nd, long address)
public NdTypeId(Nd nd, char[] fieldDescriptor)
public java.util.List<NdType> getSubTypes()
NdTypeSignaturegetSubTypes in class NdTypeSignaturepublic java.util.List<NdComplexTypeSignature> getComplexTypes()
public NdType findTypeByResourceAddress(long resourceAddress)
public java.util.List<NdType> getTypes()
public IString getFieldDescriptor()
public char[] getFieldDescriptorWithoutTrailingSemicolon()
public char[] getBinaryName()
public IString getSimpleName()
public char[] getSimpleNameCharArray()
public boolean hasFieldDescriptor(java.lang.String name)
public boolean hasSimpleName(java.lang.String name)
public void setSimpleName(java.lang.String name)
public java.util.List<NdType> getDeclaredTypes()
public NdTypeId getRawType()
NdTypeSignaturegetRawType in class NdTypeSignaturepublic void getSignature(CharArrayBuffer result, boolean includeTrailingSemicolon)
getSignature in class NdTypeSignaturepublic boolean isTypeVariable()
isTypeVariable in class NdTypeSignaturepublic java.util.List<NdTypeSignature> getDeclaringTypeChain()
NdTypeSignaturegetDeclaringTypeChain in class NdTypeSignaturepublic NdTypeSignature getArrayDimensionType()
NdTypeSignaturegetArrayDimensionType in class NdTypeSignaturepublic java.util.List<NdTypeArgument> getTypeArguments()
NdTypeSignaturegetTypeArguments in class NdTypeSignaturepublic boolean isArrayType()
NdTypeSignatureIn other words:
NdVariable someVariable = getSomeVariableWithAnArrayType() System.out.println(someVariable.getType().isArrayType()); // true System.out.println(someVariable.getType().getRawType().isArrayType()); // false
isArrayType in class NdTypeSignature