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, typeVariablesFields inherited from class org.aspectj.weaver.MemberImpl
declaringType, kind, modifiers, name, parameterTypes, returnTypeFields inherited from interface org.aspectj.weaver.Member
ADVICE, CONSTRUCTOR, FIELD, HANDLER, METHOD, MONITORENTER, MONITOREXIT, NO_PARAMETER_ANNOTATION_TYPES, NO_PARAMETER_ANNOTATIONXS, NONE, POINTCUT, STATIC_INITIALIZATIONFields inherited from interface org.aspectj.weaver.ResolvedMember
NONE -
Constructor Summary
ConstructorsConstructorDescriptionEclipseResolvedMember(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[]booleanhasAnnotation(UnresolvedType ofType) Check if this member has an annotation of the specified type.booleanReturn 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, writeArrayMethods 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, wipeJoinpointSignaturesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.weaver.Member
canBeParameterized, compareTo, getArity, getDeclaringType, getDeclaringTypes, getJoinPointSignatures, getKind, getName, getParameterSignature, getParameterTypes, getReturnType, getSignature, getTypeMethods 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:ResolvedMemberImplCheck 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:
hasAnnotationin interfaceAnnotatedElement- Specified by:
hasAnnotationin interfaceResolvedMember- Overrides:
hasAnnotationin 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:
getAnnotationsin interfaceMember- Specified by:
getAnnotationsin interfaceResolvedMember- Overrides:
getAnnotationsin classResolvedMemberImpl
-
getAnnotationOfType
- Specified by:
getAnnotationOfTypein interfaceAnnotatedElement- Overrides:
getAnnotationOfTypein classResolvedMemberImpl
-
getAnnotationDefaultValue
- Specified by:
getAnnotationDefaultValuein interfaceResolvedMember- Overrides:
getAnnotationDefaultValuein classResolvedMemberImpl
-
getAnnotationTypes
- Specified by:
getAnnotationTypesin interfaceAnnotatedElement- Specified by:
getAnnotationTypesin interfaceResolvedMember- Overrides:
getAnnotationTypesin classResolvedMemberImpl
-
getParameterAnnotationTypes
- Specified by:
getParameterAnnotationTypesin interfaceResolvedMember- Overrides:
getParameterAnnotationTypesin classResolvedMemberImpl
-
getParameterNames
- Specified by:
getParameterNamesin interfaceResolvedMember- Overrides:
getParameterNamesin 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:
isDefaultConstructorin interfaceResolvedMember- Overrides:
isDefaultConstructorin classResolvedMemberImpl- Returns:
- true if this is the default constructor.
-