Package org.aspectj.weaver
Class ArrayReferenceType
java.lang.Object
org.aspectj.weaver.UnresolvedType
org.aspectj.weaver.ResolvedType
org.aspectj.weaver.ReferenceType
org.aspectj.weaver.ArrayReferenceType
- All Implemented Interfaces:
AnnotatedElement,Traceable,TypeVariableDeclaringElement
Represents a resolved array type
- Author:
- Andy Clement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.weaver.UnresolvedType
UnresolvedType.TypeKind -
Field Summary
Fields inherited from class org.aspectj.weaver.ReferenceType
EMPTY_ARRAYFields inherited from class org.aspectj.weaver.ResolvedType
bits, crosscuttingMembers, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, worldFields 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
ConstructorsConstructorDescriptionArrayReferenceType(String sig, String erasureSig, World world, ResolvedType componentType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanNote: Only overridden by ReferenceType subtypegetAnnotationOfType(UnresolvedType ofType) Note: Only overridden by ReferenceType subtypeReturns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.final ResolvedMember[]final ResolvedType[]Find out from the generic signature the true signature of any interfaces I implement.final ResolvedMember[]final ResolvedMember[]final intfinal ResolvedTypebooleanhasAnnotation(UnresolvedType ofType) booleanNote: Only overridden by Name subtype.booleanbooleanNote: Only overridden by Name subtype.booleanbooleanisAspect()final booleanDetermines if the variables of this type could be assigned values of another type without casting.booleanisAssignableFrom(ResolvedType o, boolean allowMissing) booleanisClass()final booleanDetermines if values of another type could possibly be cast to this type.booleanisEnum()Note: Only overridden by Name subtype.booleanbooleanbooleanbooleanisNested()booleanbooleanbooleanbooleanbooleanbooleanMethods inherited from class org.aspectj.weaver.ReferenceType
addAnnotation, addParent, checkDuplicates, demoteToSimpleType, doesNotExposeShadowMungers, ensureConsistent, findDerivativeType, fromTypeX, getCompilerVersion, getDeclaredGenericSignature, getDeclares, getDelegate, getEndPos, getGenericSignature, getGenericType, getNameAsIdentifier, getOuterClass, getPerClause, getPrivilegedAccesses, getRetentionPolicy, getSignatureForAttribute, getSourceLocation, getStartPos, getTypeMungers, getWeaverState, hasAnnotations, hasNewInterfaces, setDelegate, setEndPos, setGenericType, setStartPosMethods 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, getResolvedTypeParameters, getSize, getTopmostImplementor, getWorld, isAbstract, isCacheable, isCheckedException, isConvertableFrom, isException, isFinal, isGroovyObject, isInheritedAnnotation, isInterface, isMissing, isMissing, isMoreVisible, isParameterizedWithTypeVariable, isPrivilegedAspect, isSynthetic, isTopmostImplementor, isTypeHierarchyComplete, isVisible, lookupDirectlyDeclaredMemberNoSupers, lookupField, lookupMemberIncludingITDsOnInterfaces, lookupMemberNoSupers, lookupMemberWithSupersAndITDs, lookupMethod, lookupMethodInITDs, lookupResolvedMember, lookupSyntheticMember, makeArray, matches, needsNoConversionFrom, parameterize, parameterizedWith, setBinaryPath, tagAsTypeHierarchyCompleteMethods inherited from class org.aspectj.weaver.UnresolvedType
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getErasureSignature, getName, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getSimpleName, getTypekind, getTypeParameters, getTypeVariableNamed, hashCode, insert, isArray, isParameterizedOrGenericType, isParameterizedOrRawType, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
-
Constructor Details
-
ArrayReferenceType
-
-
Method Details
-
getDeclaredFields
- Overrides:
getDeclaredFieldsin classReferenceType
-
getDeclaredMethods
- Overrides:
getDeclaredMethodsin classReferenceType
-
getDeclaredInterfaces
Description copied from class:ReferenceTypeFind 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.- Overrides:
getDeclaredInterfacesin classReferenceType
-
getAnnotationOfType
- Specified by:
getAnnotationOfTypein interfaceAnnotatedElement- Overrides:
getAnnotationOfTypein classReferenceType
-
getAnnotations
- Overrides:
getAnnotationsin classReferenceType
-
getAnnotationTypes
- Specified by:
getAnnotationTypesin interfaceAnnotatedElement- Overrides:
getAnnotationTypesin classReferenceType
-
getDeclaredPointcuts
- Overrides:
getDeclaredPointcutsin classReferenceType
-
hasAnnotation
- Specified by:
hasAnnotationin interfaceAnnotatedElement- Overrides:
hasAnnotationin classReferenceType
-
getSuperclass
- Overrides:
getSuperclassin classReferenceType- Returns:
- the superclass of this type, or null (if this represents a jlObject, primitive, or void)
-
isAssignableFrom
Description copied from class:ResolvedTypeDetermines 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).- Overrides:
isAssignableFromin classReferenceType- Parameters:
o- the other type- Returns:
- true iff variables of this type could be assigned values of other without casting
-
isAssignableFrom
- Overrides:
isAssignableFromin classReferenceType
-
isCoerceableFrom
Description copied from class:ResolvedTypeDetermines 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)
- Overrides:
isCoerceableFromin classReferenceType- Parameters:
o- the other type- Returns:
- true iff values of other could possibly be cast to this type.
-
getModifiers
public final int getModifiers()- Overrides:
getModifiersin classReferenceType
-
getComponentType
Description copied from class:UnresolvedTypeReturns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.- Overrides:
getComponentTypein classUnresolvedType- Returns:
- the component UnresolvedType object, or null.
-
getResolvedComponentType
- Overrides:
getResolvedComponentTypein classResolvedType
-
getSourceContext
- Overrides:
getSourceContextin classReferenceType
-
getTypeVariables
- Overrides:
getTypeVariablesin classReferenceType
-
isAnnotation
public boolean isAnnotation()Description copied from class:ResolvedTypeNote: Only overridden by Name subtype.- Overrides:
isAnnotationin classReferenceType
-
isAnonymous
public boolean isAnonymous()- Overrides:
isAnonymousin classReferenceType
-
isAnnotationStyleAspect
public boolean isAnnotationStyleAspect()- Overrides:
isAnnotationStyleAspectin classReferenceType
-
isAspect
public boolean isAspect()- Overrides:
isAspectin classReferenceType
-
isPrimitiveType
public boolean isPrimitiveType()- Overrides:
isPrimitiveTypein classUnresolvedType
-
isSimpleType
public boolean isSimpleType()- Overrides:
isSimpleTypein classUnresolvedType
-
isRawType
public boolean isRawType()- Overrides:
isRawTypein classUnresolvedType
-
isGenericType
public boolean isGenericType()- Overrides:
isGenericTypein classReferenceType
-
isParameterizedType
public boolean isParameterizedType()- Overrides:
isParameterizedTypein classUnresolvedType
-
isTypeVariableReference
public boolean isTypeVariableReference()- Overrides:
isTypeVariableReferencein classUnresolvedType
-
isGenericWildcard
public boolean isGenericWildcard()- Overrides:
isGenericWildcardin classUnresolvedType
-
isEnum
public boolean isEnum()Description copied from class:ResolvedTypeNote: Only overridden by Name subtype.- Overrides:
isEnumin classReferenceType
-
isNested
public boolean isNested()- Overrides:
isNestedin classReferenceType
-
isClass
public boolean isClass()- Overrides:
isClassin classReferenceType
-
isExposedToWeaver
public boolean isExposedToWeaver()- Overrides:
isExposedToWeaverin classReferenceType
-
canAnnotationTargetType
public boolean canAnnotationTargetType()Description copied from class:ResolvedTypeNote: Only overridden by ReferenceType subtype- Overrides:
canAnnotationTargetTypein classReferenceType
-
getAnnotationTargetKinds
Description copied from class:ResolvedTypeNote: Only overridden by ReferenceType subtype- Overrides:
getAnnotationTargetKindsin classReferenceType
-
isAnnotationWithRuntimeRetention
public boolean isAnnotationWithRuntimeRetention()Description copied from class:ResolvedTypeNote: Only overridden by Name subtype.- Overrides:
isAnnotationWithRuntimeRetentionin classReferenceType
-
isPrimitiveArray
public boolean isPrimitiveArray()- Overrides:
isPrimitiveArrayin classResolvedType
-