Top Description Fields Constructors Methods
org.aspectj.weaver.bcel

pack-priv final Class BcelField

extends ResolvedMemberImpl
Class Inheritance
Imports
java.util.List, org.aspectj.apache.bcel.classfile.Attribute, .ConstantPool, .Field, .Synthetic, org.aspectj.apache.bcel.classfile.annotation.AnnotationGen, org.aspectj.apache.bcel.generic.FieldGen, org.aspectj.util.GenericSignature, .GenericSignatureParser, org.aspectj.weaver.AjAttribute, .AjAttribute.WeaverVersionInfo, .AnnotationAJ, .ISourceContext, .ResolvedMemberImpl, .ResolvedType, .UnresolvedType, .World, org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.GenericSignatureFormatException

An AspectJ Field object that is backed by a Bcel Field object.
Authors
PARC, Andy Clement

Field Summary

Modifier and TypeField and Description
public static int
private AnnotationAJ[]
private boolean
private final BcelObjectType
private Field
private UnresolvedType
private boolean
private boolean
private boolean
private final World
Inherited from org.aspectj.weaver.ResolvedMemberImpl:
annotationTypesbackingGenericMembercheckedExceptionsendparameterAnnotationsparameterAnnotationTypesshowParameterNamessourceContextstarttypeVariables

Constructor Summary

AccessConstructor and Description
pack-priv
BcelField(BcelObjectType declaringType, Field field)

pack-priv
BcelField(String declaringTypeName, Field field, World world)

Constructs an instance that wrappers a Field object, but where we do not (yet) have a BcelObjectType - usually because the containing type (and this field) are being constructed at runtime (so there is no .class file to retrieve).

Method Summary

Modifier and TypeMethod and Description
public void
private void
public void
public AnnotationAJ
public AnnotationAJ[]
public ResolvedType[]
public Field
public Field
public UnresolvedType
getGenericReturnType()

Overrides org.aspectj.weaver.ResolvedMemberImpl.getGenericReturnType.

Implements org.aspectj.weaver.ResolvedMember.getGenericReturnType, org.aspectj.weaver.Member.getGenericReturnType.

Unpack the generic signature attribute if there is one and we haven't already done so, then find the true field type of this field (eg.
public boolean
hasAnnotation(UnresolvedType
the type of the annotation being searched for
ofType
)

Overrides org.aspectj.weaver.ResolvedMemberImpl.hasAnnotation.

Implements org.aspectj.weaver.ResolvedMember.hasAnnotation.

Check if this member has an annotation of the specified type.
public boolean
public boolean
public void
private void
private void
Inherited from org.aspectj.weaver.ResolvedMemberImpl:
appendSigWithTypeVarBoundsRemovedgetAnnotationDefaultValuegetAssociatedShadowMungergetBackingGenericMembergetEffectiveSignaturegetEndgetExceptionsgetExceptionsgetGenericParameterTypesgetGenericSignaturegetJoinPointSignaturesgetModifiersgetModifiersgetParameterAnnotationsgetParameterAnnotationTypesgetParameterNamesgetParameterNamesgetParameterSignatureErasedgetSignatureErasedgetSignatureForAttributegetSourceContextgetSourceContextgetSourceLocationgetStartgetTypeVariableNamedgetTypeVariableshasAnnotationshasBackingGenericMemberisAbstractisAnnotatedElsewhereisBridgeMethodisCompatibleWithisDefaultisDefaultConstructorisEquivalentToisPublicisVarargsMethodisVisiblematchesparameterizeparameterizedWithparameterizedWithparameterizedWithreadResolvedMemberreadResolvedMemberArrayresetKindresetModifiersresetNameresetReturnTypeToObjectArrayresolvesetAjSyntheticsetAnnotatedElsewheresetAnnotationssetAnnotationTypessetCheckedExceptionssetDeclaringTypesetParameterNamessetPositionsetSourceContextsetTypeVariablessetVarargsMethodtoDebugStringtoGenericStringwritewriteArray

Field Detail

AccSyntheticback to summary
public static int AccSynthetic
annotationsback to summary
private AnnotationAJ[] annotations

Hides org.aspectj.weaver.ResolvedMemberImpl.annotations.

annotationsOnFieldObjectAreOutOfDateback to summary
private boolean annotationsOnFieldObjectAreOutOfDate
bcelObjectTypeback to summary
private final BcelObjectType bcelObjectType
fieldback to summary
private Field field
genericFieldTypeback to summary
private UnresolvedType genericFieldType
isAjSyntheticback to summary
private boolean isAjSynthetic

Hides org.aspectj.weaver.ResolvedMemberImpl.isAjSynthetic.

isSyntheticback to summary
private boolean isSynthetic
unpackedGenericSignatureback to summary
private boolean unpackedGenericSignature
worldback to summary
private final World world

Constructor Detail

BcelFieldback to summary
pack-priv BcelField(BcelObjectType declaringType, Field field)
BcelFieldback to summary
pack-priv BcelField(String declaringTypeName, Field field, World world)

Constructs an instance that wrappers a Field object, but where we do not (yet) have a BcelObjectType - usually because the containing type (and this field) are being constructed at runtime (so there is no .class file to retrieve).

Method Detail

addAnnotationback to summary
public void addAnnotation(AnnotationAJ annotation)

Overrides org.aspectj.weaver.ResolvedMemberImpl.addAnnotation.

Implements org.aspectj.weaver.ResolvedMember.addAnnotation.

Annotations
@Override
ensureAnnotationTypesRetrievedback to summary
private void ensureAnnotationTypesRetrieved()
evictWeavingStateback to summary
public void evictWeavingState()

Overrides org.aspectj.weaver.ResolvedMemberImpl.evictWeavingState.

Implements org.aspectj.weaver.ResolvedMember.evictWeavingState.

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

Overrides org.aspectj.weaver.ResolvedMemberImpl.getAnnotationOfType.

Implements org.aspectj.weaver.AnnotatedElement.getAnnotationOfType.

Annotations
@Override
getAnnotationsback to summary
public AnnotationAJ[] getAnnotations()

Overrides org.aspectj.weaver.ResolvedMemberImpl.getAnnotations.

Implements org.aspectj.weaver.ResolvedMember.getAnnotations, org.aspectj.weaver.Member.getAnnotations.

Annotations
@Override
getAnnotationTypesback to summary
public ResolvedType[] getAnnotationTypes()

Overrides org.aspectj.weaver.ResolvedMemberImpl.getAnnotationTypes.

Implements org.aspectj.weaver.ResolvedMember.getAnnotationTypes.

Annotations
@Override
getFieldback to summary
public Field getField(ConstantPool cpool)
getFieldAsIsback to summary
public Field getFieldAsIs()
getGenericReturnTypeback to summary
public UnresolvedType getGenericReturnType()

Overrides org.aspectj.weaver.ResolvedMemberImpl.getGenericReturnType.

Implements org.aspectj.weaver.ResolvedMember.getGenericReturnType, org.aspectj.weaver.Member.getGenericReturnType.

Unpack the generic signature attribute if there is one and we haven't already done so, then find the true field type of this field (eg. List).

Annotations
@Override
hasAnnotationback to summary
public boolean hasAnnotation(UnresolvedType ofType)

Overrides org.aspectj.weaver.ResolvedMemberImpl.hasAnnotation.

Implements org.aspectj.weaver.ResolvedMember.hasAnnotation.

Doc from org.aspectj.weaver.ResolvedMemberImpl.hasAnnotation.

Check if this member has an annotation of the specified type. If the member has a backing generic member then this member represents a parameterization of a member in a generic type and the annotations available on the backing generic member should be used.

Parameters
ofType:UnresolvedType

the type of the annotation being searched for

Returns:boolean

true if the annotation is found on this member or its backing generic member

Annotations
@Override
isAjSyntheticback to summary
public boolean isAjSynthetic()

Overrides org.aspectj.weaver.ResolvedMemberImpl.isAjSynthetic.

Implements org.aspectj.weaver.ResolvedMember.isAjSynthetic.

Annotations
@Override
isSyntheticback to summary
public boolean isSynthetic()

Overrides org.aspectj.weaver.ResolvedMemberImpl.isSynthetic.

Implements org.aspectj.weaver.ResolvedMember.isSynthetic.

Annotations
@Override
removeAnnotationback to summary
public void removeAnnotation(AnnotationAJ annotation)
unpackAttributesback to summary
private void unpackAttributes(World world)
unpackGenericSignatureback to summary
private void unpackGenericSignature()