Class EclipseResolvedMember
java.lang.Object
org.aspectj.weaver.MemberImpl
org.aspectj.weaver.ResolvedMemberImpl
org.aspectj.ajdt.internal.compiler.lookup.EclipseResolvedMember
- All Implemented Interfaces:
Comparable<Member>
,AnnotatedElement
,IHasPosition
,Member
,ResolvedMember
,TypeVariableDeclaringElement
In the pipeline world, we can be weaving before all types have come through from compilation. In some cases this means the weaver
will want to ask questions of eclipse types and this subtype of ResolvedMemberImpl is here to answer some of those questions - it
is backed by the real eclipse MethodBinding object and can translate from Eclipse → Weaver information.
-
Field Summary
Fields inherited from class org.aspectj.weaver.ResolvedMemberImpl
annotations, annotationTypes, backingGenericMember, checkedExceptions, end, parameterAnnotations, parameterAnnotationTypes, showParameterNames, sourceContext, start, typeVariables
Fields inherited from class org.aspectj.weaver.MemberImpl
declaringType, kind, modifiers, name, parameterTypes, returnType
Fields inherited from interface org.aspectj.weaver.Member
ADVICE, CONSTRUCTOR, FIELD, HANDLER, METHOD, MONITORENTER, MONITOREXIT, NO_PARAMETER_ANNOTATION_TYPES, NO_PARAMETER_ANNOTATIONXS, NONE, POINTCUT, STATIC_INITIALIZATION
Fields inherited from interface org.aspectj.weaver.ResolvedMember
NONE
-
Constructor Summary
ConstructorDescriptionEclipseResolvedMember(FieldBinding binding, MemberKind field, ResolvedType realDeclaringType, int modifiers, ResolvedType type, String string, UnresolvedType[] none)
EclipseResolvedMember(MethodBinding binding, MemberKind memberKind, ResolvedType realDeclaringType, int modifiers, UnresolvedType rettype, String name, UnresolvedType[] paramtypes, UnresolvedType[] extypes, EclipseFactory eclipseFactory)
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationOfType(UnresolvedType ofType)
ResolvedType[][]
String[]
boolean
hasAnnotation(UnresolvedType ofType)
Check if this member has an annotation of the specified type.boolean
Return true if this is the default constructor.Methods inherited from class org.aspectj.weaver.ResolvedMemberImpl
addAnnotation, appendSigWithTypeVarBoundsRemoved, evictWeavingState, getAssociatedShadowMunger, getBackingGenericMember, getEffectiveSignature, getEnd, getExceptions, getExceptions, getGenericParameterTypes, getGenericReturnType, getGenericSignature, getJoinPointSignatures, getModifiers, getModifiers, getParameterAnnotations, getParameterNames, getParameterSignatureErased, getSignatureErased, getSignatureForAttribute, getSourceContext, getSourceContext, getSourceLocation, getStart, getTypeVariableNamed, getTypeVariables, hasAnnotations, hasBackingGenericMember, isAbstract, isAjSynthetic, isAnnotatedElsewhere, isBridgeMethod, isCompatibleWith, isDefault, isEquivalentTo, isPublic, isSynthetic, isVarargsMethod, isVisible, matches, parameterize, parameterizedWith, parameterizedWith, parameterizedWith, readResolvedMember, readResolvedMemberArray, resetKind, resetModifiers, resetName, resetReturnTypeToObjectArray, resolve, setAjSynthetic, setAnnotatedElsewhere, setAnnotations, setAnnotationTypes, setCheckedExceptions, setDeclaringType, setParameterNames, setPosition, setSourceContext, setTypeVariables, setVarargsMethod, toDebugString, toGenericString, write, writeArray
Methods inherited from class org.aspectj.weaver.MemberImpl
canBeParameterized, compareTo, equals, equalsApartFromDeclaringType, field, getArity, getDeclaringType, getDeclaringTypes, getJoinPointSignatures, getKind, getName, getParameterSignature, getParameterTypes, getReturnType, getSignature, getType, hashCode, isInterface, isPrivate, isStatic, makeExceptionHandlerSignature, method, method, monitorEnter, monitorExit, pointcut, toString, typesToSignature, typesToSignature, wipeJoinpointSignatures
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.aspectj.weaver.Member
canBeParameterized, compareTo, getArity, getDeclaringType, getDeclaringTypes, getJoinPointSignatures, getKind, getName, getParameterSignature, getParameterTypes, getReturnType, getSignature, getType
Methods inherited from interface org.aspectj.weaver.ResolvedMember
equalsApartFromDeclaringType
-
Constructor Details
-
EclipseResolvedMember
public EclipseResolvedMember(MethodBinding binding, MemberKind memberKind, ResolvedType realDeclaringType, int modifiers, UnresolvedType rettype, String name, UnresolvedType[] paramtypes, UnresolvedType[] extypes, EclipseFactory eclipseFactory) -
EclipseResolvedMember
public EclipseResolvedMember(FieldBinding binding, MemberKind field, ResolvedType realDeclaringType, int modifiers, ResolvedType type, String string, UnresolvedType[] none)
-
-
Method Details
-
hasAnnotation
Description copied from class:ResolvedMemberImpl
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.- Specified by:
hasAnnotation
in interfaceAnnotatedElement
- Specified by:
hasAnnotation
in interfaceResolvedMember
- Overrides:
hasAnnotation
in classResolvedMemberImpl
- Parameters:
ofType
- the type of the annotation being searched for- Returns:
- true if the annotation is found on this member or its backing generic member
-
getAnnotations
- Specified by:
getAnnotations
in interfaceMember
- Specified by:
getAnnotations
in interfaceResolvedMember
- Overrides:
getAnnotations
in classResolvedMemberImpl
-
getAnnotationOfType
- Specified by:
getAnnotationOfType
in interfaceAnnotatedElement
- Overrides:
getAnnotationOfType
in classResolvedMemberImpl
-
getAnnotationDefaultValue
- Specified by:
getAnnotationDefaultValue
in interfaceResolvedMember
- Overrides:
getAnnotationDefaultValue
in classResolvedMemberImpl
-
getAnnotationTypes
- Specified by:
getAnnotationTypes
in interfaceAnnotatedElement
- Specified by:
getAnnotationTypes
in interfaceResolvedMember
- Overrides:
getAnnotationTypes
in classResolvedMemberImpl
-
getParameterAnnotationTypes
- Specified by:
getParameterAnnotationTypes
in interfaceResolvedMember
- Overrides:
getParameterAnnotationTypes
in classResolvedMemberImpl
-
getParameterNames
- Specified by:
getParameterNames
in interfaceResolvedMember
- Overrides:
getParameterNames
in classResolvedMemberImpl
-
isDefaultConstructor
public boolean isDefaultConstructor()Return true if this is the default constructor. The default constructor is the one generated if there isn't one in the source. Eclipse helpfully uses a bit to indicate the default constructor.- Specified by:
isDefaultConstructor
in interfaceResolvedMember
- Overrides:
isDefaultConstructor
in classResolvedMemberImpl
- Returns:
- true if this is the default constructor.
-