Package org.aspectj.weaver.patterns
Klasse ThisOrTargetAnnotationPointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.NameBindingPointcut
org.aspectj.weaver.patterns.ThisOrTargetAnnotationPointcut
- Alle implementierten Schnittstellen:
IHasPosition,IHasSourceLocation
- Autor:
- colyer TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.patterns.Pointcut
Pointcut.State -
Feldübersicht
Von Klasse geerbte Felder 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, WITHINCODEVon Klasse geerbte Felder org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungThisOrTargetAnnotationPointcut(boolean isThis, ExactAnnotationTypePattern type) ThisOrTargetAnnotationPointcut(boolean isThis, ExactAnnotationTypePattern type, ShadowMunger munger) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaccept(PatternNodeVisitor visitor, Object data) protected Pointcutconcretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) Resolves and removes ReferencePointcuts, replacing with basic onesintThe set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.javabooleanfastMatch(FastMatchInfo info) Could I match any shadows in the code defined within this type?protected TestfindResidueInternal(Shadow shadow, ExposedState state) The guard here is going to be the hasAnnotation() test - if it gets through (which we cannot determine until runtime) then we must have a TypeAnnotationAccessVar in place - this means we must *always* have one in place.inthashCode()booleanisThis()protected FuzzyBooleanmatchInternal(Shadow shadow) parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) static Pointcutread(VersionedDataInputStream s, ISourceContext context) protected voidresolveBindings(IScope scope, Bindings bindings) toString()traverse(PatternNodeVisitor visitor, Object data) voidVon Klasse geerbte Methoden org.aspectj.weaver.patterns.NameBindingPointcut
exposeStateForVarVon Klasse geerbte Methoden org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, postRead, resolve, setTypeVariablesInScope, shouldCopyLocationForConcretizeVon Klasse geerbte Methoden org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Konstruktordetails
-
ThisOrTargetAnnotationPointcut
-
ThisOrTargetAnnotationPointcut
public ThisOrTargetAnnotationPointcut(boolean isThis, ExactAnnotationTypePattern type, ShadowMunger munger)
-
-
Methodendetails
-
getAnnotationTypePattern
-
couldMatchKinds
public int couldMatchKinds()Beschreibung aus Klasse kopiert:PointcutThe set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.java- Angegeben von:
couldMatchKindsin KlassePointcut
-
parameterizeWith
- Angegeben von:
parameterizeWithin KlassePointcut
-
fastMatch
Beschreibung aus Klasse kopiert:PointcutCould I match any shadows in the code defined within this type? -
matchInternal
- Angegeben von:
matchInternalin KlassePointcut
-
isThis
public boolean isThis() -
resolveBindings
- Angegeben von:
resolveBindingsin KlassePointcut
-
concretize1
Beschreibung aus Klasse kopiert:PointcutResolves and removes ReferencePointcuts, replacing with basic ones- Angegeben von:
concretize1in KlassePointcut- Parameter:
inAspect- the aspect to resolve relative tobindings- a Map from formal index in the current lexical context → formal index in the concrete advice that will run This must always return a new Pointcut object (even if the concretized Pointcut is identical to the resolved one). That behavior is assumed in many places. XXX fix implementors to handle state
-
findResidueInternal
The guard here is going to be the hasAnnotation() test - if it gets through (which we cannot determine until runtime) then we must have a TypeAnnotationAccessVar in place - this means we must *always* have one in place.- Angegeben von:
findResidueInternalin KlassePointcut
-
getBindingAnnotationTypePatterns
- Angegeben von:
getBindingAnnotationTypePatternsin KlasseNameBindingPointcut
-
getBindingTypePatterns
- Angegeben von:
getBindingTypePatternsin KlasseNameBindingPointcut
-
write
- Angegeben von:
writein KlassePatternNode- Löst aus:
IOException
-
read
- Löst aus:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
accept
- Angegeben von:
acceptin KlassePatternNode
-
traverse
- Setzt außer Kraft:
traversein KlassePatternNode
-