Package org.aspectj.weaver
Class ResolvedType
- java.lang.Object
-
- org.aspectj.weaver.UnresolvedType
-
- org.aspectj.weaver.ResolvedType
-
- All Implemented Interfaces:
AnnotatedElement,Traceable,TypeVariableDeclaringElement
- Direct Known Subclasses:
MissingResolvedTypeWithKnownSignature,ReferenceType
public abstract class ResolvedType extends UnresolvedType implements AnnotatedElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.UnresolvedType
UnresolvedType.TypeKind
-
-
Field Summary
Fields Modifier and Type Field Description protected intbitsCrosscuttingMemberscrosscuttingMembersstatic ResolvedType[]EMPTY_ARRAYstatic ResolvedType[]EMPTY_RESOLVED_TYPE_ARRAYprotected List<ConcreteTypeMunger>interTypeMungersstatic org.aspectj.weaver.ResolvedType.MissingMISSINGstatic ResolvedType[]NONEstatic StringPARAMETERIZED_TYPE_IDENTIFIERResolvedType[]temporaryAnnotationTypesprotected static Set<String>validBoxingprotected Worldworld-
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 Modifier Constructor Description protectedResolvedType(String signature, String signatureErasure, World world)protectedResolvedType(String signature, World world)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.UnresolvedType
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getErasureSignature, getName, getNameAsIdentifier, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getSimpleName, getTypekind, getTypeParameters, getTypeVariableNamed, getTypeVariables, hashCode, insert, isArray, isGenericType, isGenericWildcard, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.aspectj.weaver.AnnotatedElement
hasAnnotation
-
-
-
-
Field Detail
-
EMPTY_RESOLVED_TYPE_ARRAY
public static final ResolvedType[] EMPTY_RESOLVED_TYPE_ARRAY
-
PARAMETERIZED_TYPE_IDENTIFIER
public static final String PARAMETERIZED_TYPE_IDENTIFIER
- See Also:
- Constant Field Values
-
temporaryAnnotationTypes
public ResolvedType[] temporaryAnnotationTypes
-
world
protected World world
-
bits
protected int bits
-
crosscuttingMembers
public CrosscuttingMembers crosscuttingMembers
-
NONE
public static final ResolvedType[] NONE
-
EMPTY_ARRAY
public static final ResolvedType[] EMPTY_ARRAY
-
MISSING
public static final org.aspectj.weaver.ResolvedType.Missing MISSING
-
interTypeMungers
protected List<ConcreteTypeMunger> interTypeMungers
-
-
Method Detail
-
getSize
public int getSize()
- Overrides:
getSizein classUnresolvedType
-
getDirectSupertypes
public final Iterator<ResolvedType> getDirectSupertypes()
-
getDeclaredFields
public abstract ResolvedMember[] getDeclaredFields()
-
getDeclaredMethods
public abstract ResolvedMember[] getDeclaredMethods()
-
getDeclaredInterfaces
public abstract ResolvedType[] getDeclaredInterfaces()
-
getDeclaredPointcuts
public abstract ResolvedMember[] getDeclaredPointcuts()
-
isCacheable
public boolean isCacheable()
-
getSuperclass
public abstract ResolvedType getSuperclass()
-
getModifiers
public abstract int getModifiers()
-
canBeSeenBy
public boolean canBeSeenBy(ResolvedType from)
-
isMissing
public boolean isMissing()
-
isMissing
public static boolean isMissing(UnresolvedType unresolved)
-
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
- Specified by:
getAnnotationTypesin interfaceAnnotatedElement
-
getAnnotationOfType
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)
- Specified by:
getAnnotationOfTypein interfaceAnnotatedElement
-
getResolvedComponentType
public ResolvedType getResolvedComponentType()
-
getWorld
public World getWorld()
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classUnresolvedType
-
getFields
public Iterator<ResolvedMember> getFields()
-
getMethods
public Iterator<ResolvedMember> getMethods(boolean wantGenerics, boolean wantDeclaredParents)
-
getMethodsIncludingIntertypeDeclarations
public Iterator<ResolvedMember> getMethodsIncludingIntertypeDeclarations(boolean wantGenerics, boolean wantDeclaredParents)
-
getHierarchy
public Iterator<ResolvedType> getHierarchy()
-
getHierarchy
public Iterator<ResolvedType> getHierarchy(boolean wantGenerics, boolean wantDeclaredParents)
-
getMethodsWithoutIterator
public List<ResolvedMember> getMethodsWithoutIterator(boolean includeITDs, boolean allowMissing, boolean genericsAware)
-
getHierarchyWithoutIterator
public List<ResolvedType> getHierarchyWithoutIterator(boolean includeITDs, boolean allowMissing, boolean genericsAware)
-
getResolvedTypeParameters
public ResolvedType[] getResolvedTypeParameters()
-
lookupField
public ResolvedMember lookupField(Member field)
-
lookupMethod
public ResolvedMember lookupMethod(Member m)
-
lookupMethodInITDs
public ResolvedMember lookupMethodInITDs(Member member)
-
lookupResolvedMember
public ResolvedMember lookupResolvedMember(ResolvedMember aMember, boolean allowMissing, boolean eraseGenerics)
-
conflictingSignature
public static boolean conflictingSignature(Member m1, Member m2, boolean v2itds)
-
getPointcuts
public Iterator<ResolvedMember> getPointcuts()
-
findPointcut
public ResolvedPointcutDefinition findPointcut(String name)
-
collectCrosscuttingMembers
public CrosscuttingMembers collectCrosscuttingMembers(boolean shouldConcretizeIfNeeded)
-
addParent
public void addParent(ResolvedType newParent)
-
doesNotExposeShadowMungers
protected boolean doesNotExposeShadowMungers()
-
getPerClause
public PerClause getPerClause()
-
getDeclares
public Collection<Declare> getDeclares()
-
getTypeMungers
public Collection<ConcreteTypeMunger> getTypeMungers()
-
getPrivilegedAccesses
public Collection<ResolvedMember> getPrivilegedAccesses()
-
isInterface
public final boolean isInterface()
-
isAbstract
public final boolean isAbstract()
-
isClass
public boolean isClass()
-
isAspect
public boolean isAspect()
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()
-
isEnum
public boolean isEnum()
-
isAnnotation
public boolean isAnnotation()
-
isAnonymous
public boolean isAnonymous()
-
isNested
public boolean isNested()
-
getOuterClass
public ResolvedType getOuterClass()
-
addAnnotation
public void addAnnotation(AnnotationAJ annotationX)
-
getAnnotations
public AnnotationAJ[] getAnnotations()
-
hasAnnotations
public boolean hasAnnotations()
-
canAnnotationTargetType
public boolean canAnnotationTargetType()
-
getAnnotationTargetKinds
public AnnotationTargetKind[] getAnnotationTargetKinds()
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()
-
isSynthetic
public boolean isSynthetic()
-
isFinal
public final boolean isFinal()
-
getMemberParameterizationMap
protected Map<String,UnresolvedType> getMemberParameterizationMap()
-
getDeclaredAdvice
public List<ShadowMunger> getDeclaredAdvice()
-
getDeclaredShadowMungers
public List<ShadowMunger> getDeclaredShadowMungers()
-
getDeclaredJavaFields
public ResolvedMember[] getDeclaredJavaFields()
-
getDeclaredJavaMethods
public ResolvedMember[] getDeclaredJavaMethods()
-
getSourceContext
public abstract ISourceContext getSourceContext()
-
makeArray
public static ResolvedType makeArray(ResolvedType type, int dim)
-
lookupMemberNoSupers
public ResolvedMember lookupMemberNoSupers(Member member)
-
lookupMemberWithSupersAndITDs
public ResolvedMember lookupMemberWithSupersAndITDs(Member member)
-
lookupDirectlyDeclaredMemberNoSupers
public ResolvedMember lookupDirectlyDeclaredMemberNoSupers(Member member)
-
lookupMemberIncludingITDsOnInterfaces
public ResolvedMember lookupMemberIncludingITDsOnInterfaces(Member member)
-
getInterTypeMungers
public List<ConcreteTypeMunger> getInterTypeMungers()
-
getInterTypeParentMungers
public List<ConcreteTypeMunger> getInterTypeParentMungers()
-
getInterTypeMungersIncludingSupers
public List<ConcreteTypeMunger> getInterTypeMungersIncludingSupers()
-
getInterTypeParentMungersIncludingSupers
public List<ConcreteTypeMunger> getInterTypeParentMungersIncludingSupers()
-
collectInterTypeMungers
protected void collectInterTypeMungers(List<ConcreteTypeMunger> collector)
-
checkInterTypeMungers
public void checkInterTypeMungers()
-
getDeclaringType
public ResolvedType getDeclaringType()
-
isVisible
public static boolean isVisible(int modifiers, ResolvedType targetType, ResolvedType fromType)
-
discoverActualOccurrenceOfTypeInHierarchy
public ResolvedType discoverActualOccurrenceOfTypeInHierarchy(ResolvedType lookingFor)
-
fillInAnyTypeParameters
public ConcreteTypeMunger fillInAnyTypeParameters(ConcreteTypeMunger munger)
-
addInterTypeMunger
public void addInterTypeMunger(ConcreteTypeMunger munger, boolean isDuringCompilation)
-
checkLegalOverride
public boolean checkLegalOverride(ResolvedMember parent, ResolvedMember child, int transformerPosition, ResolvedType aspectType)
-
isMoreVisible
public static boolean isMoreVisible(int m1, int m2)
-
lookupSyntheticMember
public ResolvedMember lookupSyntheticMember(Member member)
-
clearInterTypeMungers
public void clearInterTypeMungers()
-
isTopmostImplementor
public boolean isTopmostImplementor(ResolvedType interfaceType)
-
getTopmostImplementor
public ResolvedType getTopmostImplementor(ResolvedType interfaceType)
-
getExposedPointcuts
public List<ResolvedMember> getExposedPointcuts()
-
getSourceLocation
public ISourceLocation getSourceLocation()
-
isExposedToWeaver
public boolean isExposedToWeaver()
-
getWeaverState
public WeaverStateInfo getWeaverState()
-
getGenericType
public ReferenceType getGenericType()
-
getRawType
public ResolvedType getRawType()
- Overrides:
getRawTypein classUnresolvedType
-
parameterizedWith
public ResolvedType parameterizedWith(UnresolvedType[] typeParameters)
-
parameterize
public UnresolvedType parameterize(Map<String,UnresolvedType> typeBindings)
- Overrides:
parameterizein classUnresolvedType
-
isException
public boolean isException()
-
isCheckedException
public boolean isCheckedException()
-
isConvertableFrom
public final boolean isConvertableFrom(ResolvedType other)
-
isAssignableFrom
public abstract boolean isAssignableFrom(ResolvedType other)
-
isAssignableFrom
public abstract boolean isAssignableFrom(ResolvedType other, boolean allowMissing)
-
isCoerceableFrom
public abstract boolean isCoerceableFrom(ResolvedType other)
-
needsNoConversionFrom
public boolean needsNoConversionFrom(ResolvedType o)
-
getSignatureForAttribute
public String getSignatureForAttribute()
-
isParameterizedWithTypeVariable
public boolean isParameterizedWithTypeVariable()
-
ajMembersNeedParameterization
protected boolean ajMembersNeedParameterization()
-
getAjMemberParameterizationMap
protected Map<String,UnresolvedType> getAjMemberParameterizationMap()
-
setBinaryPath
public void setBinaryPath(String binaryPath)
-
getBinaryPath
public String getBinaryPath()
-
ensureConsistent
public void ensureConsistent()
-
isInheritedAnnotation
public boolean isInheritedAnnotation()
-
tagAsTypeHierarchyComplete
public void tagAsTypeHierarchyComplete()
-
isTypeHierarchyComplete
public boolean isTypeHierarchyComplete()
-
getCompilerVersion
public int getCompilerVersion()
-
isPrimitiveArray
public boolean isPrimitiveArray()
-
isGroovyObject
public boolean isGroovyObject()
-
isPrivilegedAspect
public boolean isPrivilegedAspect()
-
-