Class NdType
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.NdBinding
org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdType
- All Implemented Interfaces:
IDestructable,INdStruct,org.eclipse.core.runtime.IAdaptable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic FieldList<NdAnnotation>static FieldManyToOne<NdTypeId>static FieldStringstatic FieldStringBinary 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>static FieldBytestatic bytestatic bytestatic bytestatic bytestatic FieldStringstatic FieldOneToMany<NdTypeInterface>static FieldStringstatic FieldStringstatic FieldManyToOne<NdTypeSignature>static FieldLongstatic FieldList<NdTypeAnnotation>static FieldManyToOne<NdTypeId>static FieldList<NdVariable>Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
MODIFIERS, TYPE_PARAMETERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateAnnotations(int length)voidallocateMethods(int length)voidallocateTypeAnnotations(int length)voidallocateVariables(int length)Returns the field descriptor for this type, based on the binary type information stored in the .class file itself.getFile()booleangetFlag(byte flagConstant)Returns the list of methods, sorted by ascending method name (selector + descriptor).Returns the list of methods, in declaration order.Returns the missing type names as a comma-separated listlongchar[]longbooleanbooleanisLocal()booleanisMember()voidsetAnonymous(boolean anonymous)voidsetDeclaringMethod(char[] enclosingMethod)voidsetDeclaringType(NdTypeId createTypeIdFromBinaryName)voidsetFieldDescriptorFromClass(char[] fieldDescriptorFromClass)voidsetFile(NdResourceFile file)voidsetFlag(byte flagConstant, boolean value)voidsetIsLocal(boolean local)voidsetIsMember(boolean member)voidsetMissingTypeNames(char[] contents)Sets the missing type names (if any) for this class.voidsetSourceFileName(char[] sourceFileName)voidsetSourceNameOverride(char[] sourceName)Sets the source name for this type.voidsetSuperclass(NdTypeSignature superclassTypeName)voidsetTagBits(long tagBits)voidtoString()Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.nd.java.NdBinding
allocateTypeParameters, createTypeParameter, getAdapter, getBindingConstant, getModifiers, getTypeParameterSignatures, hasModifier, setModifiersMethods 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
-
FILE
-
TYPENAME
-
SUPERCLASS
-
INTERFACES
-
DECLARING_TYPE
-
METHODS
-
TYPE_ANNOTATIONS
-
ANNOTATIONS
-
VARIABLES
-
MISSING_TYPE_NAMES
-
SOURCE_FILE_NAME
-
INNER_CLASS_SOURCE_NAME
-
FLAGS
-
TAG_BITS
-
ENCLOSING_METHOD
-
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. This is only set for .class files that have been moved to the wrong folder. -
type
-
FLG_TYPE_ANONYMOUS
public static final byte FLG_TYPE_ANONYMOUS- See Also:
- Constant Field Values
-
FLG_TYPE_LOCAL
public static final byte FLG_TYPE_LOCAL- See Also:
- Constant Field Values
-
FLG_TYPE_MEMBER
public static final byte FLG_TYPE_MEMBER- See Also:
- Constant Field Values
-
FLG_GENERIC_SIGNATURE_PRESENT
public static final byte FLG_GENERIC_SIGNATURE_PRESENT- See Also:
- Constant Field Values
-
-
Constructor Details
-
NdType
-
NdType
-
-
Method Details
-
getTypeId
-
setTypeId
-
setFile
-
getFile
-
setSourceNameOverride
public void setSourceNameOverride(char[] sourceName)Sets the source name for this type. -
getSourceNameOverride
-
getResourceAddress
public long getResourceAddress() -
setSuperclass
-
getSuperclass
-
getInterfaces
-
getResourceFile
-
setDeclaringType
- Parameters:
createTypeIdFromBinaryName-
-
getDeclaringType
-
setMissingTypeNames
public void setMissingTypeNames(char[] contents)Sets the missing type names (if any) for this class. The names are encoded in a comma-separated list. -
getMissingTypeNames
Returns the missing type names as a comma-separated list -
setSourceFileName
public void setSourceFileName(char[] sourceFileName) -
getSourceFileName
-
setAnonymous
public void setAnonymous(boolean anonymous) -
setIsLocal
public void setIsLocal(boolean local) -
setIsMember
public void setIsMember(boolean member) -
isAnonymous
public boolean isAnonymous() -
isLocal
public boolean isLocal() -
isMember
public boolean isMember() -
setFlag
public void setFlag(byte flagConstant, boolean value) -
getFlag
public boolean getFlag(byte flagConstant) -
getSourceName
public char[] getSourceName() -
getVariables
-
getTypeParameters
- Overrides:
getTypeParametersin classNdBinding
-
getTypeAnnotations
-
getAnnotations
-
createAnnotation
-
allocateAnnotations
public void allocateAnnotations(int length) -
getMethods
Returns the list of methods, sorted by ascending method name (selector + descriptor). -
getMethodsInDeclarationOrder
Returns the list of methods, in declaration order. -
toString
-
setTagBits
public void setTagBits(long tagBits) -
getTagBits
public long getTagBits() -
setFieldDescriptorFromClass
public void setFieldDescriptorFromClass(char[] fieldDescriptorFromClass) -
getFieldDescriptor
Returns the field descriptor for this type, based on the binary type information stored in the .class file itself. Note that this may differ from the field descriptor of this type's typeId in the event that the .class file has been moved. -
createTypeAnnotation
-
allocateTypeAnnotations
public void allocateTypeAnnotations(int length) -
createVariable
-
allocateVariables
public void allocateVariables(int length) -
allocateMethods
public void allocateMethods(int length) -
createMethod
-
setDeclaringMethod
public void setDeclaringMethod(char[] enclosingMethod) -
getDeclaringMethod
-