Class NdTypeId
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.NdStruct
org.aspectj.org.eclipse.jdt.internal.core.nd.NdNode
org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdTypeSignature
org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdTypeId
- All Implemented Interfaces:
IDestructable
,INdStruct
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic FieldOneToMany<NdType>
static FieldSearchKey<JavaIndex>
static FieldSearchKey<JavaIndex>
static FieldOneToMany<NdType>
static FieldOneToMany<NdComplexTypeSignature>
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdTypeSignature
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTypeByResourceAddress(long resourceAddress)
If the receiver is an array type, it returns the signature of the array's next dimension.char[]
Returns the chain of declaring generic types.Returns the field descriptor.char[]
Returns the raw version of this type, if one exists.void
getSignature(CharArrayBuffer result, boolean includeTrailingSemicolon)
char[]
Returns all subclasses (for classes) and implementations (for interfaces) of this typeReturns the type arguments for this type signature, if any.getTypes()
boolean
hasFieldDescriptor(String name)
boolean
hasSimpleName(String name)
boolean
Returns true iff this is an array type signature (ie: that getArrayDimensionType() will return a non-null answer).boolean
void
setSimpleName(String name)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdTypeSignature
getImplementations, getSignature, getSubclasses, toString
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.NdNode
delete, destruct, equals, getAddress, getBindingID, getBit, getByte, getNodeId, getNodeType, hashCode, load, load
-
Field Details
-
FIELD_DESCRIPTOR
-
SIMPLE_NAME
-
TYPES
-
USED_AS_COMPLEX_TYPE
-
DECLARED_TYPES
-
type
-
-
Constructor Details
-
NdTypeId
-
NdTypeId
-
-
Method Details
-
getSubTypes
Description copied from class:NdTypeSignature
Returns all subclasses (for classes) and implementations (for interfaces) of this type- Overrides:
getSubTypes
in classNdTypeSignature
-
getComplexTypes
-
findTypeByResourceAddress
-
getTypes
-
getFieldDescriptor
Returns the field descriptor. -
getFieldDescriptorWithoutTrailingSemicolon
public char[] getFieldDescriptorWithoutTrailingSemicolon() -
getBinaryName
public char[] getBinaryName() -
getSimpleName
-
getSimpleNameCharArray
public char[] getSimpleNameCharArray() -
hasFieldDescriptor
-
hasSimpleName
-
setSimpleName
-
getDeclaredTypes
-
getRawType
Description copied from class:NdTypeSignature
Returns the raw version of this type, if one exists. That is, the version of this type without any generic arguments or annotations, which the java runtime sees. Returns null of this signature doesn't have a raw type, for example if it is a type variable.- Specified by:
getRawType
in classNdTypeSignature
-
getSignature
- Specified by:
getSignature
in classNdTypeSignature
-
isTypeVariable
public boolean isTypeVariable()- Specified by:
isTypeVariable
in classNdTypeSignature
-
getDeclaringTypeChain
Description copied from class:NdTypeSignature
Returns the chain of declaring generic types. The first element in the chain is a top-level type and the receiver is the last element in the chain.- Specified by:
getDeclaringTypeChain
in classNdTypeSignature
-
getArrayDimensionType
Description copied from class:NdTypeSignature
If the receiver is an array type, it returns the signature of the array's next dimension. Returns null if this is not an array type.- Specified by:
getArrayDimensionType
in classNdTypeSignature
-
getTypeArguments
Description copied from class:NdTypeSignature
Returns the type arguments for this type signature, if any. Returns the empty list if none.- Specified by:
getTypeArguments
in classNdTypeSignature
-
isArrayType
public boolean isArrayType()Description copied from class:NdTypeSignature
Returns true iff this is an array type signature (ie: that getArrayDimensionType() will return a non-null answer). Note that this only returns true for the type signature that holds the reference to the array dimension type. The raw type for that signature will return false, even though it has a field descriptor starting with '['.In other words:
NdVariable someVariable = getSomeVariableWithAnArrayType() System.out.println(someVariable.getType().isArrayType()); // true System.out.println(someVariable.getType().getRawType().isArrayType()); // false
- Specified by:
isArrayType
in classNdTypeSignature
-