Top Description Fields Constructors Methods
org.aspectj.weaver

public Class ArrayReferenceType

extends ReferenceType
Class Inheritance
Imports
java.lang.reflect.Modifier

Represents a resolved array type
Author
Andy Clement

Field Summary

Modifier and TypeField and Description
private final ResolvedType
Inherited from org.aspectj.weaver.ReferenceType:
delegateEMPTY_ARRAYendPosgenericTypeparameterizedDeclaresparameterizedFieldsparameterizedInterfacesparameterizedMethodsparameterizedPointcutsrawTypestartPossuperclassReference

Constructor Summary

AccessConstructor and Description
public
ArrayReferenceType(String sig, String erasureSig, World world, ResolvedType componentType)

Method Summary

Modifier and TypeMethod and Description
public boolean
canAnnotationTargetType()

Overrides org.aspectj.weaver.ReferenceType.canAnnotationTargetType.

Note

Only overridden by ReferenceType subtype

public boolean
equals(Object
the reference object with which to compare.
other
)

Overrides org.aspectj.weaver.ResolvedType.equals.

Equality is checked based on the underlying signature.
public AnnotationAJ
public AnnotationAJ[]
public AnnotationTargetKind[]
getAnnotationTargetKinds()

Overrides org.aspectj.weaver.ReferenceType.getAnnotationTargetKinds.

Note

Only overridden by ReferenceType subtype

public ResolvedType[]
public UnresolvedType
getComponentType()

Overrides org.aspectj.weaver.UnresolvedType.getComponentType.

Returns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.
public final ResolvedMember[]
public final ResolvedType[]
getDeclaredInterfaces()

Overrides org.aspectj.weaver.ReferenceType.getDeclaredInterfaces.

Find out from the generic signature the true signature of any interfaces I implement.
public final ResolvedMember[]
public final ResolvedMember[]
public final int
public ResolvedType
public ISourceContext
public final ResolvedType
public TypeVariable[]
public boolean
public boolean
isAnnotation()

Overrides org.aspectj.weaver.ReferenceType.isAnnotation.

Note

Only overridden by Name subtype.

public boolean
public boolean
public boolean
public boolean
public final boolean
isAssignableFrom(ResolvedType
the other type
o
)

Overrides org.aspectj.weaver.ReferenceType.isAssignableFrom.

Determines if the variables of this type could be assigned values of another type without casting.
public boolean
public boolean
public final boolean
isCoerceableFrom(ResolvedType
the other type
o
)

Overrides org.aspectj.weaver.ReferenceType.isCoerceableFrom.

Determines if values of another type could possibly be cast to this type.
public boolean
isEnum()

Overrides org.aspectj.weaver.ReferenceType.isEnum.

Note

Only overridden by Name subtype.

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
Inherited from org.aspectj.weaver.ReferenceType:
addAnnotationaddDependentTypeaddParentcheckDuplicatesdemoteToSimpleTypedoesNotExposeShadowMungersensureConsistentfindDerivativeTypefromTypeXgetCompilerVersiongetDeclaredGenericSignaturegetDeclaresgetDelegategetEndPosgetGenericSignaturegetGenericTypegetNameAsIdentifiergetOuterClassgetPerClausegetPrivilegedAccessesgetRetentionPolicygetSignatureForAttributegetSourceLocationgetStartPosgetTypeMungersgetWeaverStatehasAnnotationshasNewInterfacessetDelegatesetEndPossetGenericTypesetStartPos

Field Detail

componentTypeback to summary
private final ResolvedType componentType

Constructor Detail

ArrayReferenceTypeback to summary
public ArrayReferenceType(String sig, String erasureSig, World world, ResolvedType componentType)

Method Detail

canAnnotationTargetTypeback to summary
public boolean canAnnotationTargetType()

Overrides org.aspectj.weaver.ReferenceType.canAnnotationTargetType.

Doc from org.aspectj.weaver.ResolvedType.canAnnotationTargetType.

Note

Only overridden by ReferenceType subtype

equalsback to summary
public boolean equals(Object other)

Overrides org.aspectj.weaver.ResolvedType.equals.

Doc from org.aspectj.weaver.UnresolvedType.equals.

Equality is checked based on the underlying signature.

Parameters
other:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getAnnotationOfTypeback to summary
public AnnotationAJ getAnnotationOfType(UnresolvedType ofType)

Overrides org.aspectj.weaver.ReferenceType.getAnnotationOfType.

Implements org.aspectj.weaver.AnnotatedElement.getAnnotationOfType.

getAnnotationsback to summary
public AnnotationAJ[] getAnnotations()

Overrides org.aspectj.weaver.ReferenceType.getAnnotations.

getAnnotationTargetKindsback to summary
public AnnotationTargetKind[] getAnnotationTargetKinds()

Overrides org.aspectj.weaver.ReferenceType.getAnnotationTargetKinds.

Doc from org.aspectj.weaver.ResolvedType.getAnnotationTargetKinds.

Note

Only overridden by ReferenceType subtype

getAnnotationTypesback to summary
public ResolvedType[] getAnnotationTypes()

Overrides org.aspectj.weaver.ReferenceType.getAnnotationTypes.

Implements org.aspectj.weaver.AnnotatedElement.getAnnotationTypes.

getComponentTypeback to summary
public UnresolvedType getComponentType()

Overrides org.aspectj.weaver.UnresolvedType.getComponentType.

Doc from org.aspectj.weaver.UnresolvedType.getComponentType.

Returns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.

Returns:UnresolvedType

the component UnresolvedType object, or null.

getDeclaredFieldsback to summary
public final ResolvedMember[] getDeclaredFields()

Overrides org.aspectj.weaver.ReferenceType.getDeclaredFields.

getDeclaredInterfacesback to summary
public final ResolvedType[] getDeclaredInterfaces()

Overrides org.aspectj.weaver.ReferenceType.getDeclaredInterfaces.

Doc from org.aspectj.weaver.ReferenceType.getDeclaredInterfaces.

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.

getDeclaredMethodsback to summary
public final ResolvedMember[] getDeclaredMethods()

Overrides org.aspectj.weaver.ReferenceType.getDeclaredMethods.

getDeclaredPointcutsback to summary
public final ResolvedMember[] getDeclaredPointcuts()

Overrides org.aspectj.weaver.ReferenceType.getDeclaredPointcuts.

getModifiersback to summary
public final int getModifiers()

Overrides org.aspectj.weaver.ReferenceType.getModifiers.

getResolvedComponentTypeback to summary
public ResolvedType getResolvedComponentType()

Overrides org.aspectj.weaver.ResolvedType.getResolvedComponentType.

getSourceContextback to summary
public ISourceContext getSourceContext()

Overrides org.aspectj.weaver.ReferenceType.getSourceContext.

getSuperclassback to summary
public final ResolvedType getSuperclass()

Overrides org.aspectj.weaver.ReferenceType.getSuperclass.

Returns:ResolvedType

Doc from org.aspectj.weaver.ResolvedType.getSuperclass.

the superclass of this type, or null (if this represents a jlObject, primitive, or void)

getTypeVariablesback to summary
public TypeVariable[] getTypeVariables()

Overrides org.aspectj.weaver.ReferenceType.getTypeVariables.

hasAnnotationback to summary
public boolean hasAnnotation(UnresolvedType ofType)

Overrides org.aspectj.weaver.ReferenceType.hasAnnotation.

Implements org.aspectj.weaver.AnnotatedElement.hasAnnotation.

isAnnotationback to summary
public boolean isAnnotation()

Overrides org.aspectj.weaver.ReferenceType.isAnnotation.

Doc from org.aspectj.weaver.ResolvedType.isAnnotation.

Note

Only overridden by Name subtype.

isAnnotationStyleAspectback to summary
public boolean isAnnotationStyleAspect()

Overrides org.aspectj.weaver.ReferenceType.isAnnotationStyleAspect.

isAnnotationWithRuntimeRetentionback to summary
public boolean isAnnotationWithRuntimeRetention()

Overrides org.aspectj.weaver.ReferenceType.isAnnotationWithRuntimeRetention.

Doc from org.aspectj.weaver.ResolvedType.isAnnotationWithRuntimeRetention.

Note

Only overridden by Name subtype.

isAnonymousback to summary
public boolean isAnonymous()

Overrides org.aspectj.weaver.ReferenceType.isAnonymous.

isAspectback to summary
public boolean isAspect()

Overrides org.aspectj.weaver.ReferenceType.isAspect.

isAssignableFromback to summary
public final boolean isAssignableFrom(ResolvedType o)

Overrides org.aspectj.weaver.ReferenceType.isAssignableFrom.

Doc from org.aspectj.weaver.ResolvedType.isAssignableFrom.

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).

Parameters
o:ResolvedType

the other type

Returns:boolean

true iff variables of this type could be assigned values of other without casting

isAssignableFromback to summary
public boolean isAssignableFrom(ResolvedType o, boolean allowMissing)

Overrides org.aspectj.weaver.ReferenceType.isAssignableFrom.

isClassback to summary
public boolean isClass()

Overrides org.aspectj.weaver.ReferenceType.isClass.

isCoerceableFromback to summary
public final boolean isCoerceableFrom(ResolvedType o)

Overrides org.aspectj.weaver.ReferenceType.isCoerceableFrom.

Doc from org.aspectj.weaver.ResolvedType.isCoerceableFrom.

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)
Parameters
o:ResolvedType

the other type

Returns:boolean

true iff values of other could possibly be cast to this type.

isEnumback to summary
public boolean isEnum()

Overrides org.aspectj.weaver.ReferenceType.isEnum.

Doc from org.aspectj.weaver.ResolvedType.isEnum.

Note

Only overridden by Name subtype.

isExposedToWeaverback to summary
public boolean isExposedToWeaver()

Overrides org.aspectj.weaver.ReferenceType.isExposedToWeaver.

Annotations
@Override
isGenericTypeback to summary
public boolean isGenericType()

Overrides org.aspectj.weaver.ReferenceType.isGenericType.

isGenericWildcardback to summary
public boolean isGenericWildcard()

Overrides org.aspectj.weaver.UnresolvedType.isGenericWildcard.

isNestedback to summary
public boolean isNested()

Overrides org.aspectj.weaver.ReferenceType.isNested.

isParameterizedTypeback to summary
public boolean isParameterizedType()

Overrides org.aspectj.weaver.UnresolvedType.isParameterizedType.

isPrimitiveArrayback to summary
public boolean isPrimitiveArray()

Overrides org.aspectj.weaver.ResolvedType.isPrimitiveArray.

isPrimitiveTypeback to summary
public boolean isPrimitiveType()

Overrides org.aspectj.weaver.UnresolvedType.isPrimitiveType.

isRawTypeback to summary
public boolean isRawType()

Overrides org.aspectj.weaver.UnresolvedType.isRawType.

isSimpleTypeback to summary
public boolean isSimpleType()

Overrides org.aspectj.weaver.UnresolvedType.isSimpleType.

isTypeVariableReferenceback to summary
public boolean isTypeVariableReference()

Overrides org.aspectj.weaver.UnresolvedType.isTypeVariableReference.