Package org.aspectj.weaver.patterns
Klasse IfPointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.IfPointcut
- Alle implementierten Schnittstellen:
IHasPosition,IHasSourceLocation
- Bekannte direkte Unterklassen:
IfPointcut.IfFalsePointcut,IfPointcut.IfTruePointcut
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classstatic classVon Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.patterns.Pointcut
Pointcut.State -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungintVon 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
KonstruktorenKonstruktorBeschreibungIfPointcut(String enclosingPointcutHint) No-arg constructor for @AJ style, where the if() body is actually the @Pointcut annotated methodIfPointcut(ResolvedMember testMethod, int extraParameterFlags) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaccept(PatternNodeVisitor visitor, Object data) booleanbooleanconcretize1(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 type) Could I match any shadows in the code defined within this type?protected TestfindResidueInternal(Shadow shadow, ExposedState state) At each shadow that matched, the residue can be different.inthashCode()static IfPointcutstatic IfPointcutmakeIfTruePointcut(Pointcut.State state) protected FuzzyBooleanmatchInternal(Shadow shadow) parameterizeWith(Map typeVariableMap, World w) static Pointcutread(VersionedDataInputStream s, ISourceContext context) voidresolveBindings(IScope scope, Bindings bindings) voidsetAlways(boolean matches) Called when it is determined that the pointcut refers to a constant value of TRUE or FALSE - enabling exact matching and no unnecessary calls to the method representing the if body.protected booleantoString()traverse(PatternNodeVisitor visitor, Object data) voidVon Klasse geerbte Methoden org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, postRead, resolve, setTypeVariablesInScopeVon Klasse geerbte Methoden org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Felddetails
-
testMethod
-
extraParameterFlags
public int extraParameterFlags -
residueSource
-
-
Konstruktordetails
-
IfPointcut
-
IfPointcut
No-arg constructor for @AJ style, where the if() body is actually the @Pointcut annotated method
-
-
Methodendetails
-
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
-
fastMatch
Beschreibung aus Klasse kopiert:PointcutCould I match any shadows in the code defined within this type? -
matchInternal
- Angegeben von:
matchInternalin KlassePointcut
-
alwaysFalse
public boolean alwaysFalse() -
alwaysTrue
public boolean alwaysTrue() -
getResidueSource
-
write
- Angegeben von:
writein KlassePatternNode- Löst aus:
IOException
-
read
- Löst aus:
IOException
-
resolveBindings
- Angegeben von:
resolveBindingsin KlassePointcut
-
equals
-
hashCode
public int hashCode() -
toString
-
findResidueInternal
At each shadow that matched, the residue can be different.- Angegeben von:
findResidueInternalin KlassePointcut
-
shouldCopyLocationForConcretize
protected boolean shouldCopyLocationForConcretize()- Setzt außer Kraft:
shouldCopyLocationForConcretizein 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
-
parameterizeWith
- Angegeben von:
parameterizeWithin KlassePointcut
-
makeIfFalsePointcut
-
accept
- Angegeben von:
acceptin KlassePatternNode
-
traverse
- Setzt außer Kraft:
traversein KlassePatternNode
-
makeIfTruePointcut
-
setAlways
public void setAlways(boolean matches) Called when it is determined that the pointcut refers to a constant value of TRUE or FALSE - enabling exact matching and no unnecessary calls to the method representing the if body.
-