Package org.aspectj.weaver.patterns
Class WithinAnnotationPointcut
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.Pointcut
-
- org.aspectj.weaver.patterns.NameBindingPointcut
-
- org.aspectj.weaver.patterns.WithinAnnotationPointcut
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class WithinAnnotationPointcut extends NameBindingPointcut
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.Pointcut
Pointcut.State
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.patterns.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, WITHINCODE
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description WithinAnnotationPointcut(AnnotationTypePattern type)WithinAnnotationPointcut(AnnotationTypePattern type, ShadowMunger munger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)protected Pointcutconcretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)intcouldMatchKinds()booleanequals(Object obj)FuzzyBooleanfastMatch(FastMatchInfo info)protected TestfindResidueInternal(Shadow shadow, ExposedState state)AnnotationTypePatterngetAnnotationTypePattern()List<BindingPattern>getBindingAnnotationTypePatterns()List<BindingTypePattern>getBindingTypePatterns()inthashCode()protected FuzzyBooleanmatchInternal(Shadow shadow)PointcutparameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)static Pointcutread(VersionedDataInputStream s, ISourceContext context)protected voidresolveBindings(IScope scope, Bindings bindings)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.NameBindingPointcut
exposeStateForVar
-
Methods inherited from class org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, postRead, resolve, setTypeVariablesInScope, shouldCopyLocationForConcretize
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Constructor Detail
-
WithinAnnotationPointcut
public WithinAnnotationPointcut(AnnotationTypePattern type)
-
WithinAnnotationPointcut
public WithinAnnotationPointcut(AnnotationTypePattern type, ShadowMunger munger)
-
-
Method Detail
-
getAnnotationTypePattern
public AnnotationTypePattern getAnnotationTypePattern()
-
couldMatchKinds
public int couldMatchKinds()
- Specified by:
couldMatchKindsin classPointcut
-
parameterizeWith
public Pointcut parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
- Specified by:
parameterizeWithin classPointcut
-
fastMatch
public FuzzyBoolean fastMatch(FastMatchInfo info)
-
matchInternal
protected FuzzyBoolean matchInternal(Shadow shadow)
- Specified by:
matchInternalin classPointcut
-
resolveBindings
protected void resolveBindings(IScope scope, Bindings bindings)
- Specified by:
resolveBindingsin classPointcut
-
concretize1
protected Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
- Specified by:
concretize1in classPointcut
-
findResidueInternal
protected Test findResidueInternal(Shadow shadow, ExposedState state)
- Specified by:
findResidueInternalin classPointcut
-
getBindingAnnotationTypePatterns
public List<BindingPattern> getBindingAnnotationTypePatterns()
- Specified by:
getBindingAnnotationTypePatternsin classNameBindingPointcut
-
getBindingTypePatterns
public List<BindingTypePattern> getBindingTypePatterns()
- Specified by:
getBindingTypePatternsin classNameBindingPointcut
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static Pointcut read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
-