Package org.aspectj.weaver
Class ReferenceType
- java.lang.Object
-
- org.aspectj.weaver.UnresolvedType
-
- org.aspectj.weaver.ResolvedType
-
- org.aspectj.weaver.ReferenceType
-
- All Implemented Interfaces:
AnnotatedElement,Traceable,TypeVariableDeclaringElement
- Direct Known Subclasses:
ArrayReferenceType,BoundedReferenceType,TypeVariableReferenceType
public class ReferenceType extends ResolvedType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.UnresolvedType
UnresolvedType.TypeKind
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceType[]EMPTY_ARRAY-
Fields inherited from class org.aspectj.weaver.ResolvedType
bits, crosscuttingMembers, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, world
-
Fields inherited from class org.aspectj.weaver.UnresolvedType
AJC_PRIVILEGED, ANNOTATION, ARRAY_WITH_JUST_OBJECT, AT_INHERITED, AT_RETENTION, AT_TARGET, BOOLEAN, BYTE, CHAR, CLONEABLE, DOUBLE, ENUM, ERROR, FLOAT, INT, JAVA_LANG_ANNOTATION, JAVA_LANG_CLASS_ARRAY, JAVA_LANG_REFLECT_CONSTRUCTOR, JAVA_LANG_REFLECT_FIELD, JAVA_LANG_REFLECT_METHOD, JL_CLASS, JL_EXCEPTION, JL_STRING, JOINPOINT_ENCLOSINGSTATICPART, JOINPOINT_STATICPART, LONG, MISSING_NAME, OBJECT, OBJECTARRAY, PROCEEDING_JOINPOINT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, signature, signatureErasure, SOMETHING, SUPPRESS_AJ_WARNINGS, THROWABLE, typeKind, typeParameters, typeVariables, VOID
-
-
Constructor Summary
Constructors Constructor Description ReferenceType(String signature, String signatureErasure, World world)ReferenceType(String signature, World world)ReferenceType(ResolvedType theGenericType, ResolvedType[] theParameters, World aWorld)ReferenceType(UnresolvedType genericType, World world)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.ResolvedType
addInterTypeMunger, ajMembersNeedParameterization, canBeSeenBy, checkInterTypeMungers, checkLegalOverride, clearInterTypeMungers, collectCrosscuttingMembers, collectDeclares, collectInterTypeMungers, conflictingSignature, conflictingSignature, discoverActualOccurrenceOfTypeInHierarchy, equals, fillInAnyTypeParameters, findPointcut, getAjMemberParameterizationMap, getBinaryPath, getDeclaredAdvice, getDeclaredJavaFields, getDeclaredJavaMethods, getDeclaredShadowMungers, getDeclaringType, getDirectSupertypes, getExposedPointcuts, getFields, getHierarchy, getHierarchy, getHierarchyWithoutIterator, getInterTypeMungers, getInterTypeMungersIncludingSupers, getInterTypeParentMungers, getInterTypeParentMungersIncludingSupers, getMemberParameterizationMap, getMethods, getMethodsIncludingIntertypeDeclarations, getMethodsWithoutIterator, getPointcuts, getRawType, getResolvedComponentType, getResolvedTypeParameters, getSize, getTopmostImplementor, getWorld, isAbstract, isCacheable, isCheckedException, isConvertableFrom, isException, isFinal, isGroovyObject, isInheritedAnnotation, isInterface, isMissing, isMissing, isMoreVisible, isParameterizedWithTypeVariable, isPrimitiveArray, isPrivilegedAspect, isSynthetic, isTopmostImplementor, isTypeHierarchyComplete, isVisible, lookupDirectlyDeclaredMemberNoSupers, lookupField, lookupMemberIncludingITDsOnInterfaces, lookupMemberNoSupers, lookupMemberWithSupersAndITDs, lookupMethod, lookupMethodInITDs, lookupResolvedMember, lookupSyntheticMember, makeArray, matches, needsNoConversionFrom, parameterize, parameterizedWith, setBinaryPath, tagAsTypeHierarchyComplete
-
Methods inherited from class org.aspectj.weaver.UnresolvedType
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getErasureSignature, getName, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getSimpleName, getTypekind, getTypeParameters, getTypeVariableNamed, hashCode, insert, isArray, isGenericWildcard, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
-
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final ReferenceType[] EMPTY_ARRAY
-
-
Constructor Detail
-
ReferenceType
public ReferenceType(ResolvedType theGenericType, ResolvedType[] theParameters, World aWorld)
-
ReferenceType
public ReferenceType(UnresolvedType genericType, World world)
-
-
Method Detail
-
fromTypeX
public static ReferenceType fromTypeX(UnresolvedType tx, World world)
-
checkDuplicates
public void checkDuplicates(ReferenceType newRt)
-
getSignatureForAttribute
public String getSignatureForAttribute()
- Overrides:
getSignatureForAttributein classResolvedType
-
isClass
public boolean isClass()
- Overrides:
isClassin classResolvedType
-
getCompilerVersion
public int getCompilerVersion()
- Overrides:
getCompilerVersionin classResolvedType
-
isGenericType
public boolean isGenericType()
- Overrides:
isGenericTypein classUnresolvedType
-
getGenericSignature
public String getGenericSignature()
-
getAnnotations
public AnnotationAJ[] getAnnotations()
- Overrides:
getAnnotationsin classResolvedType
-
hasAnnotations
public boolean hasAnnotations()
- Overrides:
hasAnnotationsin classResolvedType
-
addAnnotation
public void addAnnotation(AnnotationAJ annotationX)
- Overrides:
addAnnotationin classResolvedType
-
hasAnnotation
public boolean hasAnnotation(UnresolvedType ofType)
-
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
- Specified by:
getAnnotationTypesin interfaceAnnotatedElement- Overrides:
getAnnotationTypesin classResolvedType
-
getNameAsIdentifier
public String getNameAsIdentifier()
- Overrides:
getNameAsIdentifierin classUnresolvedType
-
getAnnotationOfType
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)
- Specified by:
getAnnotationOfTypein interfaceAnnotatedElement- Overrides:
getAnnotationOfTypein classResolvedType
-
isAspect
public boolean isAspect()
- Overrides:
isAspectin classResolvedType
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()
- Overrides:
isAnnotationStyleAspectin classResolvedType
-
isEnum
public boolean isEnum()
- Overrides:
isEnumin classResolvedType
-
isAnnotation
public boolean isAnnotation()
- Overrides:
isAnnotationin classResolvedType
-
isAnonymous
public boolean isAnonymous()
- Overrides:
isAnonymousin classResolvedType
-
isNested
public boolean isNested()
- Overrides:
isNestedin classResolvedType
-
getOuterClass
public ResolvedType getOuterClass()
- Overrides:
getOuterClassin classResolvedType
-
getRetentionPolicy
public String getRetentionPolicy()
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()
- Overrides:
isAnnotationWithRuntimeRetentionin classResolvedType
-
canAnnotationTargetType
public boolean canAnnotationTargetType()
- Overrides:
canAnnotationTargetTypein classResolvedType
-
getAnnotationTargetKinds
public AnnotationTargetKind[] getAnnotationTargetKinds()
- Overrides:
getAnnotationTargetKindsin classResolvedType
-
isCoerceableFrom
public boolean isCoerceableFrom(ResolvedType o)
- Specified by:
isCoerceableFromin classResolvedType
-
isAssignableFrom
public boolean isAssignableFrom(ResolvedType other)
- Specified by:
isAssignableFromin classResolvedType
-
isAssignableFrom
public boolean isAssignableFrom(ResolvedType other, boolean allowMissing)
- Specified by:
isAssignableFromin classResolvedType
-
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContextin classResolvedType
-
getSourceLocation
public ISourceLocation getSourceLocation()
- Overrides:
getSourceLocationin classResolvedType
-
isExposedToWeaver
public boolean isExposedToWeaver()
- Overrides:
isExposedToWeaverin classResolvedType
-
getWeaverState
public WeaverStateInfo getWeaverState()
- Overrides:
getWeaverStatein classResolvedType
-
getDeclaredFields
public ResolvedMember[] getDeclaredFields()
- Specified by:
getDeclaredFieldsin classResolvedType
-
getDeclaredInterfaces
public ResolvedType[] getDeclaredInterfaces()
- Specified by:
getDeclaredInterfacesin classResolvedType
-
getDeclaredMethods
public ResolvedMember[] getDeclaredMethods()
- Specified by:
getDeclaredMethodsin classResolvedType
-
getDeclaredPointcuts
public ResolvedMember[] getDeclaredPointcuts()
- Specified by:
getDeclaredPointcutsin classResolvedType
-
getTypeVariables
public TypeVariable[] getTypeVariables()
- Overrides:
getTypeVariablesin classUnresolvedType
-
getPerClause
public PerClause getPerClause()
- Overrides:
getPerClausein classResolvedType
-
getDeclares
public Collection<Declare> getDeclares()
- Overrides:
getDeclaresin classResolvedType
-
getTypeMungers
public Collection<ConcreteTypeMunger> getTypeMungers()
- Overrides:
getTypeMungersin classResolvedType
-
getPrivilegedAccesses
public Collection<ResolvedMember> getPrivilegedAccesses()
- Overrides:
getPrivilegedAccessesin classResolvedType
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin classResolvedType
-
getSuperclass
public ResolvedType getSuperclass()
- Specified by:
getSuperclassin classResolvedType
-
getDelegate
public ReferenceTypeDelegate getDelegate()
-
setDelegate
public void setDelegate(ReferenceTypeDelegate delegate)
-
getEndPos
public int getEndPos()
-
getStartPos
public int getStartPos()
-
setEndPos
public void setEndPos(int endPos)
-
setStartPos
public void setStartPos(int startPos)
-
doesNotExposeShadowMungers
public boolean doesNotExposeShadowMungers()
- Overrides:
doesNotExposeShadowMungersin classResolvedType
-
getDeclaredGenericSignature
public String getDeclaredGenericSignature()
-
setGenericType
public void setGenericType(ReferenceType rt)
-
demoteToSimpleType
public void demoteToSimpleType()
-
getGenericType
public ReferenceType getGenericType()
- Overrides:
getGenericTypein classResolvedType
-
ensureConsistent
public void ensureConsistent()
- Overrides:
ensureConsistentin classResolvedType
-
addParent
public void addParent(ResolvedType newParent)
- Overrides:
addParentin classResolvedType
-
findDerivativeType
public ReferenceType findDerivativeType(ResolvedType[] typeParameters)
-
hasNewInterfaces
public boolean hasNewInterfaces()
-
-