Class NameBindingPointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.NameBindingPointcut
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
- Direct Known Subclasses:
AnnotationPointcut, ArgsAnnotationPointcut, ArgsPointcut, ThisOrTargetAnnotationPointcut, ThisOrTargetPointcut, WithinAnnotationPointcut, WithinCodeAnnotationPointcut
Common super type for Pointcuts that can bind formal parameters.
- Author:
- Erik Hilsdale, Jim Hugunin
-
Nested Class Summary
Nested classes/interfaces inherited from class Pointcut
Pointcut.State -
Field Summary
Fields inherited from class Pointcut
AND, ANNOTATION, ARGS, ATARGS, ATTHIS_OR_TARGET, ATWITHIN, ATWITHINCODE, CFLOW, CONCRETE, EMPTY_STRING_ARRAY, HANDLER, hasBeenParameterized, IF, IF_FALSE, IF_TRUE, KINDED, lastMatchedShadowId, m_ignoreUnboundBindingForNames, NONE, NOT, OR, pointcutKind, REFERENCE, RESOLVED, state, SYMBOLIC, THIS_OR_TARGET, USER_EXTENSION, WITHIN, WITHINCODEModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final Pointcut.Statestatic final String[]static final byteprotected booleanstatic final bytestatic final bytestatic final bytestatic final byteprotected intString[]ATAJ the name of the formal for which we don't want any warning when unbound since we consider them as implicitly bound.static final bytestatic final bytestatic final byteprotected bytestatic final bytestatic final Pointcut.Statestatic final Pointcut.Statestatic final bytestatic final bytestatic final bytestatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestexposeStateForVar(Var var, TypePattern type, ExposedState state, World world) abstract List<BindingPattern> abstract List<BindingTypePattern> Methods inherited from class Pointcut
assertState, check, concretize, concretize, concretize, concretize1, couldMatchKinds, fastMatch, findResidue, findResidueInternal, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, matchInternal, parameterizeWith, postRead, read, resolve, resolveBindings, setTypeVariablesInScope, shouldCopyLocationForConcretizeModifier and TypeMethodDescriptionvoidassertState(Pointcut.State state) voidcheck(ISourceContext ctx, World world) final Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, int arity) Returns a new pointcut Only used by test casesfinal Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, int arity, ShadowMunger advice) final Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) protected abstract Pointcutconcretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) Resolves and removes ReferencePointcuts, replacing with basic onesabstract intThe set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.javaabstract FuzzyBooleanfastMatch(FastMatchInfo info) Could I match any shadows in the code defined within this type?final TestfindResidue(Shadow shadow, ExposedState state) This can be called from NotPointcut even for Pointcuts that don't match the shadowprotected abstract TestfindResidueInternal(Shadow shadow, ExposedState state) static PointcutfromString(String str) byteString[]booleanisDeclare(ShadowMunger munger) static PointcutmakeMatchesNothing(Pointcut.State state) final FuzzyBooleanDo I really match this shadow? XXX implementors need to handle stateprotected abstract FuzzyBooleanmatchInternal(Shadow shadow) abstract PointcutparameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) voidpostRead(ResolvedType enclosingType) static Pointcutread(VersionedDataInputStream s, ISourceContext context) final PointcutReturns this pointcut mutatedprotected abstract voidresolveBindings(IScope scope, Bindings bindings) voidsetTypeVariablesInScope(String[] typeVars) protected booleanMethods inherited from class PatternNode
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocationModifier and TypeMethodDescriptionabstract Objectaccept(PatternNodeVisitor visitor, Object data) voidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) traverse(PatternNodeVisitor visitor, Object data) abstract voidvoid
-
Constructor Details
-
NameBindingPointcut
public NameBindingPointcut()
-
-
Method Details
-
exposeStateForVar
-
getBindingTypePatterns
-
getBindingAnnotationTypePatterns
-