| Modifier and Type | Field and Description |
|---|---|
| private AnnotationAJ[] | |
| private ResolvedType[] | |
| pack-priv ReferenceTypeDelegate | |
| private final List | derivativeTypes
For generic types, this list holds references to all the derived raw and parameterized versions. |
| public static final ReferenceType[] | |
| pack-priv int | |
| pack-priv ReferenceType | genericType
For parameterized types (or the raw type) - this field points to the actual reference type from which they are derived. |
| private ResolvedType[] | |
| private ResolvedType | |
| pack-priv Collection | |
| pack-priv ResolvedMember[] | |
| pack-priv WeakReference | |
| pack-priv ResolvedMember[] | |
| pack-priv ResolvedMember[] | |
| pack-priv ReferenceType | |
| pack-priv int | |
| pack-priv WeakReference |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ReferenceType(ResolvedType theGenericType, ResolvedType[] theParameters, World aWorld)
Constructor used when creating a parameterized type. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| pack-priv synchronized void | |
| public void | |
| public boolean | canAnnotationTargetType()
Overrides org. Note Only overridden by ReferenceType subtype |
| public void | |
| private void | |
| public void | |
| private UnresolvedType[] | determineThoseTypesToUse(ResolvedType parameterizedInterface, UnresolvedType[] paramTypes)
It is possible this type has multiple type variables but the interface we are about to parameterize only uses a subset - this method determines the subset to use by looking at the type variable names used. |
| public boolean | |
| public void | ensureConsistent()
Undo any temporary modifications to the type (for example it may be holding annotations temporarily whilst some matching is
occurring - These annotations will be added properly during weaving but sometimes for type completion they need to be held
here for a while).
|
| private boolean | |
| private boolean | |
| public ReferenceType | Returns: an existing derivative type or null if there isn't onethe type parameters to use when searching for the derivative
type. typeParameters)Look for a derivative type with the specified type parameters. |
| public static ReferenceType | |
| public AnnotationAJ | |
| public AnnotationAJ[] | |
| public AnnotationTargetKind[] | getAnnotationTargetKinds()
Overrides org. Note Only overridden by ReferenceType subtype |
| public ResolvedType[] | |
| public int | getCompilerVersion()
Overrides org. |
| public ResolvedMember[] | |
| public String | |
| public ResolvedType[] | getDeclaredInterfaces()
Implements abstract org. |
| public ResolvedMember[] | |
| public ResolvedMember[] | |
| public Collection | |
| public ReferenceTypeDelegate | |
| public int | |
| public String | |
| public ReferenceType | getGenericType()
Overridden by ReferenceType to return a sensible answer for parameterized and raw types.
|
| public int | |
| public String | |
| public ResolvedType | |
| public PerClause | |
| public Collection | |
| private int | |
| public String | |
| public String | |
| public ISourceContext | |
| public ISourceLocation | |
| public int | |
| public ResolvedType | |
| public Collection | |
| private UnresolvedType[] | |
| public TypeVariable[] | |
| public WeaverStateInfo | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isAnnotation()
Overrides org. Note Only overridden by Name subtype. |
| public boolean | |
| public boolean | isAnnotationWithRuntimeRetention()
Overrides org. Note Only overridden by Name subtype. |
| public boolean | |
| public boolean | |
| public boolean | isAssignableFrom(ResolvedType
the other type other)Implements abstract org. |
| public boolean | isAssignableFrom(ResolvedType other, boolean allowMissing)
Implements abstract org. |
| public boolean | |
| public boolean | isCoerceableFrom(ResolvedType
the other type o)Implements abstract org. |
| private final boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private static String | |
| private static String | makeParameterizedSignature(ResolvedType aGenericType, ResolvedType[] someParameters)
a parameterized signature starts with a "P" in place of the "L", see the comment on signatures in UnresolvedType. |
| public void | |
| public void | |
| public void | |
| public void |
| annotations | back to summary |
|---|---|
| private AnnotationAJ[] annotations | |
| annotationTypes | back to summary |
|---|---|
| private ResolvedType[] annotationTypes | |
| delegate | back to summary |
|---|---|
| pack-priv ReferenceTypeDelegate delegate | |
| derivativeTypes | back to summary |
|---|---|
| private final List<WeakReference<ReferenceType>> derivativeTypes For generic types, this list holds references to all the derived raw and parameterized versions. We need this so that if the generic delegate is swapped during incremental compilation, the delegate of the derivatives is swapped also. | |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final ReferenceType[] EMPTY_ARRAY | |
| endPos | back to summary |
|---|---|
| pack-priv int endPos | |
| genericType | back to summary |
|---|---|
| pack-priv ReferenceType genericType For parameterized types (or the raw type) - this field points to the actual reference type from which they are derived. | |
| newInterfaces | back to summary |
|---|---|
| private ResolvedType[] newInterfaces | |
| newSuperclass | back to summary |
|---|---|
| private ResolvedType newSuperclass | |
| parameterizedDeclares | back to summary |
|---|---|
| pack-priv Collection<Declare> parameterizedDeclares | |
| parameterizedFields | back to summary |
|---|---|
| pack-priv ResolvedMember[] parameterizedFields | |
| parameterizedInterfaces | back to summary |
|---|---|
| pack-priv WeakReference<ResolvedType[]> parameterizedInterfaces | |
| parameterizedMethods | back to summary |
|---|---|
| pack-priv ResolvedMember[] parameterizedMethods | |
| parameterizedPointcuts | back to summary |
|---|---|
| pack-priv ResolvedMember[] parameterizedPointcuts | |
| rawType | back to summary |
|---|---|
| pack-priv ReferenceType rawType | |
| startPos | back to summary |
|---|---|
| pack-priv int startPos | |
| superclassReference | back to summary |
|---|---|
| pack-priv WeakReference<ResolvedType> superclassReference | |
| ReferenceType | back to summary |
|---|---|
| public ReferenceType(String signature, World world) | |
| ReferenceType | back to summary |
|---|---|
| public ReferenceType(String signature, String signatureErasure, World world) | |
| ReferenceType | back to summary |
|---|---|
| public ReferenceType(ResolvedType theGenericType, ResolvedType[] theParameters, World aWorld) Constructor used when creating a parameterized type. | |
| ReferenceType | back to summary |
|---|---|
| public ReferenceType(UnresolvedType genericType, World world) Create a reference type for a generic type | |
| addAnnotation | back to summary |
|---|---|
| public void addAnnotation(AnnotationAJ annotationX) Overrides org.
| |
| addAnnotationType | back to summary |
|---|---|
| private void addAnnotationType(ResolvedType ofType) | |
| addDependentType | back to summary |
|---|---|
| pack-priv synchronized void addDependentType(ReferenceType dependent) | |
| addParent | back to summary |
|---|---|
| public void addParent(ResolvedType newParent) Overrides org.
| |
| canAnnotationTargetType | back to summary |
|---|---|
| public boolean canAnnotationTargetType() Overrides org. Doc from org. Note Only overridden by ReferenceType subtype
| |
| checkDuplicates | back to summary |
|---|---|
| public void checkDuplicates(ReferenceType newRt) | |
| clearParameterizationCaches | back to summary |
|---|---|
| private void clearParameterizationCaches() | |
| demoteToSimpleType | back to summary |
|---|---|
| public void demoteToSimpleType() | |
| determineThoseTypesToUse | back to summary |
|---|---|
| private UnresolvedType[] determineThoseTypesToUse(ResolvedType parameterizedInterface, UnresolvedType[] paramTypes) It is possible this type has multiple type variables but the interface we
are about to parameterize only uses a subset - this method determines the
subset to use by looking at the type variable names used. For example:
| |
| doesNotExposeShadowMungers | back to summary |
|---|---|
| public boolean doesNotExposeShadowMungers() Overrides org.
| |
| ensureConsistent | back to summary |
|---|---|
| public void ensureConsistent() Overrides org. Doc from org. Undo any temporary modifications to the type (for example it may be holding annotations temporarily whilst some matching is occurring - These annotations will be added properly during weaving but sometimes for type completion they need to be held here for a while).
| |
| equal | back to summary |
|---|---|
| private boolean equal(UnresolvedType[] typeParameters, ResolvedType[] resolvedParameters) | |
| equal2 | back to summary |
|---|---|
| private boolean equal2(UnresolvedType[] typeParameters, UnresolvedType[] resolvedParameters) | |
| findDerivativeType | back to summary |
|---|---|
| public ReferenceType findDerivativeType(ResolvedType[] typeParameters) Look for a derivative type with the specified type parameters. This can avoid creating an unnecessary new (duplicate) with the same information in it. This method also cleans up any reference entries that have been null'd by a GC.
| |
| fromTypeX | back to summary |
|---|---|
| public static ReferenceType fromTypeX(UnresolvedType tx, World world) | |
| getAnnotationOfType | back to summary |
|---|---|
| public AnnotationAJ getAnnotationOfType(UnresolvedType ofType) Overrides org. Implements org.
| |
| getAnnotations | back to summary |
|---|---|
| public AnnotationAJ[] getAnnotations() Overrides org.
| |
| getAnnotationTargetKinds | back to summary |
|---|---|
| public AnnotationTargetKind[] getAnnotationTargetKinds() Overrides org. Doc from org. Note Only overridden by ReferenceType subtype
| |
| getAnnotationTypes | back to summary |
|---|---|
| public ResolvedType[] getAnnotationTypes() Overrides org. Implements org.
| |
| getCompilerVersion | back to summary |
|---|---|
| public int getCompilerVersion() Overrides org. Doc from org. return the weaver version used to build this type - defaults to the most recent version unless discovered otherwise.
| |
| getDeclaredFields | back to summary |
|---|---|
| public ResolvedMember[] getDeclaredFields() Implements abstract org.
| |
| getDeclaredGenericSignature | back to summary |
|---|---|
| public String getDeclaredGenericSignature() | |
| getDeclaredInterfaces | back to summary |
|---|---|
| public ResolvedType[] getDeclaredInterfaces() Implements abstract org. Find out from the generic signature the true signature of any interfaces I implement. If I am parameterized, these may then need to be parameterized before returning.
| |
| getDeclaredMethods | back to summary |
|---|---|
| public ResolvedMember[] getDeclaredMethods() Implements abstract org.
| |
| getDeclaredPointcuts | back to summary |
|---|---|
| public ResolvedMember[] getDeclaredPointcuts() Implements abstract org.
| |
| getDeclares | back to summary |
|---|---|
| public Collection Overrides org.
| |
| getDelegate | back to summary |
|---|---|
| public ReferenceTypeDelegate getDelegate() | |
| getEndPos | back to summary |
|---|---|
| public int getEndPos() | |
| getGenericSignature | back to summary |
|---|---|
| public String getGenericSignature() | |
| getGenericType | back to summary |
|---|---|
| public ReferenceType getGenericType() Overrides org. Doc from org. Overridden by ReferenceType to return a sensible answer for parameterized and raw types.
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements abstract org.
| |
| getNameAsIdentifier | back to summary |
|---|---|
| public String getNameAsIdentifier() Overrides org.
| |
| getOuterClass | back to summary |
|---|---|
| public ResolvedType getOuterClass() | |
| getPerClause | back to summary |
|---|---|
| public PerClause getPerClause() Overrides org.
| |
| getPrivilegedAccesses | back to summary |
|---|---|
| public Collection Overrides org.
| |
| getRank | back to summary |
|---|---|
| private int getRank(String tvname) Returns the position within the set of type variables for this type for the specified type variable name. Returns -1 if there is no type variable with the specified name. | |
| getRetentionPolicy | back to summary |
|---|---|
| public String getRetentionPolicy() | |
| getSignatureForAttribute | back to summary |
|---|---|
| public String getSignatureForAttribute() Overrides org.
| |
| getSourceContext | back to summary |
|---|---|
| public ISourceContext getSourceContext() Implements abstract org.
| |
| getSourceLocation | back to summary |
|---|---|
| public ISourceLocation getSourceLocation() Overrides org.
| |
| getStartPos | back to summary |
|---|---|
| public int getStartPos() | |
| getSuperclass | back to summary |
|---|---|
| public ResolvedType getSuperclass() Implements abstract org.
| |
| getTypeMungers | back to summary |
|---|---|
| public Collection Overrides org.
| |
| getTypesForMemberParameterization | back to summary |
|---|---|
| private UnresolvedType[] getTypesForMemberParameterization() | |
| getTypeVariables | back to summary |
|---|---|
| public TypeVariable[] getTypeVariables() Overrides org.
| |
| getWeaverState | back to summary |
|---|---|
| public WeaverStateInfo getWeaverState() Overrides org.
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(UnresolvedType ofType) Implements org. | |
| hasAnnotations | back to summary |
|---|---|
| public boolean hasAnnotations() Overrides org.
| |
| hasNewInterfaces | back to summary |
|---|---|
| public boolean hasNewInterfaces() | |
| isAnnotation | back to summary |
|---|---|
| public boolean isAnnotation() Overrides org. Doc from org. Note Only overridden by Name subtype.
| |
| isAnnotationStyleAspect | back to summary |
|---|---|
| public boolean isAnnotationStyleAspect() Overrides org.
| |
| isAnnotationWithRuntimeRetention | back to summary |
|---|---|
| public boolean isAnnotationWithRuntimeRetention() Overrides org. Doc from org. Note Only overridden by Name subtype.
| |
| isAnonymous | back to summary |
|---|---|
| public boolean isAnonymous() Overrides org.
| |
| isAspect | back to summary |
|---|---|
| public boolean isAspect() Overrides org.
| |
| isAssignableFrom | back to summary |
|---|---|
| public boolean isAssignableFrom(ResolvedType other) Implements abstract org. Doc from org. Determines if the variables of this type could be assigned values of another type without casting. This still allows for assignment conversion as per JLS 2ed 5.2. For object types, this means supertypeOrEqual(THIS, OTHER).
| |
| isAssignableFrom | back to summary |
|---|---|
| public boolean isAssignableFrom(ResolvedType other, boolean allowMissing) Implements abstract org.
| |
| isClass | back to summary |
|---|---|
| public boolean isClass() Overrides org.
| |
| isCoerceableFrom | back to summary |
|---|---|
| public boolean isCoerceableFrom(ResolvedType o) Implements abstract org. Doc from org. Determines if values of another type could possibly be cast to this type. The rules followed are from JLS 2ed 5.5, "Casting Conversion". This method should be commutative, i.e., for all UnresolvedType a, b and all World w: a.isCoerceableFrom(b, w) == b.isCoerceableFrom(a, w)
| |
| isCoerceableFromParameterizedType | back to summary |
|---|---|
| private final boolean isCoerceableFromParameterizedType(ResolvedType other) | |
| isEnum | back to summary |
|---|---|
| public boolean isEnum() Overrides org. Doc from org. Note Only overridden by Name subtype.
| |
| isExposedToWeaver | back to summary |
|---|---|
| public boolean isExposedToWeaver() Overrides org.
| |
| isGenericType | back to summary |
|---|---|
| public boolean isGenericType() Overrides org.
| |
| isNested | back to summary |
|---|---|
| public boolean isNested() Overrides org.
| |
| makeDeclaredSignature | back to summary |
|---|---|
| private static String makeDeclaredSignature(ResolvedType aGenericType, UnresolvedType[] someParameters) | |
| makeParameterizedSignature | back to summary |
|---|---|
| private static String makeParameterizedSignature(ResolvedType aGenericType, ResolvedType[] someParameters) a parameterized signature starts with a "P" in place of the "L", see the comment on signatures in UnresolvedType. | |
| setDelegate | back to summary |
|---|---|
| public void setDelegate(ReferenceTypeDelegate delegate) | |
| setEndPos | back to summary |
|---|---|
| public void setEndPos(int endPos) | |
| setGenericType | back to summary |
|---|---|
| public void setGenericType(ReferenceType rt) | |
| setStartPos | back to summary |
|---|---|
| public void setStartPos(int startPos) | |