Class ResolvedPointcutDefinition
java.lang.Object
org.aspectj.weaver.MemberImpl
org.aspectj.weaver.ResolvedMemberImpl
org.aspectj.weaver.ResolvedPointcutDefinition
- All Implemented Interfaces:
Comparable<Member>, AnnotatedElement, IHasPosition, Member, ResolvedMember, TypeVariableDeclaringElement
- Direct Known Subclasses:
AtAjAttributes.LazyResolvedPointcutDefinition, DeferredResolvedPointcutDefinition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResolvedPointcutDefinitionstatic final ResolvedPointcutDefinition[]Fields inherited from class ResolvedMemberImpl
annotations, annotationTypes, backingGenericMember, checkedExceptions, end, parameterAnnotations, parameterAnnotationTypes, showParameterNames, sourceContext, start, typeVariablesModifier and TypeFieldDescriptionprotected AnnotationAJ[]protected ResolvedType[]protected ResolvedMemberif this member is a parameterized version of a member in a generic type, then this field holds a reference to the member we parameterize.protected UnresolvedType[]protected intprotected AnnotationAJ[][]protected ResolvedType[][]static booleanprotected ISourceContextprotected intprotected TypeVariable[]Fields inherited from class MemberImpl
declaringType, kind, modifiers, name, parameterTypes, returnTypeModifier and TypeFieldDescriptionprotected UnresolvedTypeprotected MemberKindprotected intprotected Stringprotected UnresolvedType[]protected UnresolvedTypeFields inherited from interface Member
ADVICE, CONSTRUCTOR, FIELD, HANDLER, METHOD, MONITORENTER, MONITOREXIT, NO_PARAMETER_ANNOTATION_TYPES, NO_PARAMETER_ANNOTATIONXS, NONE, POINTCUT, STATIC_INITIALIZATIONModifier and TypeFieldDescriptionstatic final MemberKindstatic final MemberKindstatic final MemberKindstatic final MemberKindstatic final MemberKindstatic final MemberKindstatic final MemberKindstatic final ResolvedType[][]static final AnnotationAJ[][]static final Member[]static final MemberKindstatic final MemberKindFields inherited from interface ResolvedMember
NONE -
Constructor Summary
ConstructorsConstructorDescriptionResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name, UnresolvedType[] parameterTypes, Pointcut pointcut) ResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name, UnresolvedType[] parameterTypes, UnresolvedType returnType, Pointcut pointcut) An instance which can be given a specific returnType, used f.e. -
Method Summary
Modifier and TypeMethodDescriptionbooleanparameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) Called when asking a parameterized super-aspect for its pointcuts.static ResolvedPointcutDefinitionread(VersionedDataInputStream s, ISourceContext context) voidsetPointcut(Pointcut pointcut) toString()voidMethods inherited from class ResolvedMemberImpl
addAnnotation, appendSigWithTypeVarBoundsRemoved, evictWeavingState, getAnnotationDefaultValue, getAnnotationOfType, getAnnotations, getAnnotationTypes, getAssociatedShadowMunger, getBackingGenericMember, getEffectiveSignature, getEnd, getExceptions, getExceptions, getGenericParameterTypes, getGenericReturnType, getGenericSignature, getJoinPointSignatures, getModifiers, getModifiers, getParameterAnnotations, getParameterAnnotationTypes, getParameterNames, getParameterNames, getParameterSignatureErased, getSignatureErased, getSignatureForAttribute, getSourceContext, getSourceContext, getSourceLocation, getStart, getTypeVariableNamed, getTypeVariables, hasAnnotation, hasAnnotations, hasBackingGenericMember, isAbstract, isAnnotatedElsewhere, isBridgeMethod, isCompatibleWith, isDefault, isDefaultConstructor, isEquivalentTo, isPublic, isSynthetic, isVarargsMethod, isVisible, matches, parameterize, parameterizedWith, parameterizedWith, readResolvedMember, readResolvedMemberArray, resetKind, resetModifiers, resetName, resetReturnTypeToObjectArray, resolve, setAjSynthetic, setAnnotatedElsewhere, setAnnotations, setAnnotationTypes, setCheckedExceptions, setDeclaringType, setParameterNames, setPosition, setSourceContext, setTypeVariables, setVarargsMethod, toDebugString, toGenericString, writeArrayModifier and TypeMethodDescriptionvoidaddAnnotation(AnnotationAJ annotation) static voidappendSigWithTypeVarBoundsRemoved(UnresolvedType aType, StringBuffer toBuffer, Set<UnresolvedType> alreadyUsedTypeVars) voidgetAnnotationOfType(UnresolvedType ofType) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.final UnresolvedType[]getExceptions(World world) Get the TypeXs of the parameter types, taking generic signature into accountGet the UnresolvedType for the return type, taking generic signature into accountstatic JoinPointSignature[]getJoinPointSignatures(Member joinPointSignature, World inAWorld) Compute the full set of signatures for a member.final intfinal intgetModifiers(World world) AnnotationAJ[][]ResolvedType[][]String[]final String[]getParameterNames(World world) Return the erased form of the signature with bounds collapsed for type variables, etc.Return the member generic signature that would be suitable for inclusion in a class file Signature attribute.getSourceContext(World world) intgetStart()The starting index of this location in the character stream.getTypeVariableNamed(String name) booleanhasAnnotation(UnresolvedType ofType) Check if this member has an annotation of the specified type.booleanbooleanIf this member is defined by a parameterized super-type, return the erasure of that member.booleanbooleanbooleanbooleanbooleanbooleanbooleanisEquivalentTo(Object other) booleanisPublic()booleanbooleanbooleanisVisible(ResolvedType fromType) booleanmatches(ResolvedMember aCandidateMatch, boolean ignoreGenerics) Returns true if this member matches the other.protected UnresolvedTypeparameterize(UnresolvedType aType, Map<String, UnresolvedType> typeVariableMap, boolean inParameterizedType, World w) parameterizedWith(Map<String, UnresolvedType> m, World w) Replace occurrences of type variables in the signature with values contained in the map.parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized, List<String> aliases) Return a resolvedmember in which all the type variables in the signature have been replaced with the given bindings.static ResolvedMemberImplreadResolvedMember(VersionedDataInputStream s, ISourceContext sourceContext) static ResolvedMember[]voidresetKind(MemberKind newKind) voidresetModifiers(int newModifiers) voidFor ITDs, we use the default factory methods to build a resolved member, then alter a couple of characteristics using this method - this is safe.voidprotected voidsetAjSynthetic(boolean b) voidsetAnnotatedElsewhere(boolean b) voidsetAnnotations(AnnotationAJ[] annotations) voidsetAnnotationTypes(ResolvedType[] annotationTypes) voidsetCheckedExceptions(UnresolvedType[] checkedExceptions) voidfinal voidsetParameterNames(String[] pnames) voidsetPosition(int sourceStart, int sourceEnd) voidsetSourceContext(ISourceContext sourceContext) voidsetTypeVariables(TypeVariable[] tvars) voidUseful for writing tests, returns *everything* we know about this member.static voidwriteArray(ResolvedMember[] members, CompressingDataOutputStream s) Methods inherited from class 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, typesToSignature, typesToSignature, wipeJoinpointSignaturesModifier and TypeMethodDescriptionbooleanReturns true iff the member is generic (NOT parameterized)intfinal booleanfinal booleanstatic MemberImplintgetArity()getDeclaringTypes(World world) getJoinPointSignatures(World inAWorld) All the signatures that a join point with this member as its signature has.getKind()getName()Return signature without return type, e.g.Return full signature, including return type, e.g.final UnresolvedTypegetType()inthashCode()final booleanfinal booleanfinal booleanisStatic()static ResolvedMemberImplmakeExceptionHandlerSignature(UnresolvedType inType, UnresolvedType catchType) static MemberImplmethod(UnresolvedType declaring, int mods, String name, String signature) static MemberImplmethod(UnresolvedType declTy, int mods, UnresolvedType rTy, String name, UnresolvedType[] paramTys) static MemberImplstatic MemberImplstatic Memberpointcut(UnresolvedType declaring, String name, String signature) static StringtypesToSignature(UnresolvedType[] paramTypes) Returns "(<signaturesOfParamTypes>,...)" - unlike the other typesToSignature that also includes the return type, this one just deals with the parameter types.static StringtypesToSignature(UnresolvedType returnType, UnresolvedType[] paramTypes, boolean eraseGenerics) Build a signature based on the return type and parameter types.voidMethods inherited from interface ResolvedMember
equalsApartFromDeclaringType
-
Field Details
-
DUMMY
-
NO_POINTCUTS
-
-
Constructor Details
-
ResolvedPointcutDefinition
public ResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name, UnresolvedType[] parameterTypes, Pointcut pointcut) -
ResolvedPointcutDefinition
public ResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name, UnresolvedType[] parameterTypes, UnresolvedType returnType, Pointcut pointcut) An instance which can be given a specific returnType, used f.e. in if() pointcut for @AJ- Parameters:
declaringType-modifiers-name-parameterTypes-returnType-pointcut-
-
-
Method Details
-
write
- Specified by:
writein interfaceResolvedMember- Overrides:
writein classResolvedMemberImpl- Throws:
IOException
-
read
public static ResolvedPointcutDefinition read(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
toString
- Overrides:
toStringin classMemberImpl
-
getPointcut
-
isAjSynthetic
public boolean isAjSynthetic()- Specified by:
isAjSyntheticin interfaceResolvedMember- Overrides:
isAjSyntheticin classResolvedMemberImpl
-
parameterizedWith
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) Called when asking a parameterized super-aspect for its pointcuts.- Specified by:
parameterizedWithin interfaceResolvedMember- Overrides:
parameterizedWithin classResolvedMemberImpl
-
setPointcut
-