Class IfPointcut.IfTruePointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.IfPointcut
org.aspectj.weaver.patterns.IfPointcut.IfTruePointcut
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
- Enclosing class:
IfPointcut
-
Nested Class Summary
Nested classes/interfaces inherited from class IfPointcut
IfPointcut.IfFalsePointcut, IfPointcut.IfTruePointcutModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class Pointcut
Pointcut.State -
Field Summary
Fields inherited from class IfPointcut
extraParameterFlags, residueSource, testMethodModifier and TypeFieldDescriptionintFields 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 TypeMethodDescriptionbooleanconcretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) Resolves and removes ReferencePointcuts, replacing with basic onesfastMatch(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()protected FuzzyBooleanmatchInternal(Shadow shadow) voidpostRead(ResolvedType enclosingType) voidresolveBindings(IScope scope, Bindings bindings) toString()voidMethods inherited from class IfPointcut
accept, alwaysFalse, couldMatchKinds, equals, getResidueSource, makeIfFalsePointcut, makeIfTruePointcut, parameterizeWith, read, setAlways, shouldCopyLocationForConcretize, traverseModifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) booleanintThe set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.javabooleanstatic IfPointcutstatic IfPointcutmakeIfTruePointcut(Pointcut.State state) parameterizeWith(Map typeVariableMap, World w) static Pointcutread(VersionedDataInputStream s, ISourceContext context) 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 booleantraverse(PatternNodeVisitor visitor, Object data) Methods inherited from class Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, resolve, setTypeVariablesInScopeModifier 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) final TestfindResidue(Shadow shadow, ExposedState state) This can be called from NotPointcut even for Pointcuts that don't match the shadowstatic PointcutfromString(String str) byteString[]booleanisDeclare(ShadowMunger munger) static PointcutmakeMatchesNothing(Pointcut.State state) final FuzzyBooleanDo I really match this shadow? XXX implementors need to handle statefinal PointcutReturns this pointcut mutatedvoidsetTypeVariablesInScope(String[] typeVars) Methods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocationModifier and TypeMethodDescriptionvoidcopyLocationFrom(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) void
-
Constructor Details
-
IfTruePointcut
public IfTruePointcut()
-
-
Method Details
-
alwaysTrue
public boolean alwaysTrue()- Overrides:
alwaysTruein classIfPointcut
-
findResidueInternal
Description copied from class:IfPointcutAt each shadow that matched, the residue can be different.- Overrides:
findResidueInternalin classIfPointcut
-
fastMatch
Description copied from class:PointcutCould I match any shadows in the code defined within this type?- Overrides:
fastMatchin classIfPointcut
-
matchInternal
- Overrides:
matchInternalin classIfPointcut
-
resolveBindings
- Overrides:
resolveBindingsin classIfPointcut
-
postRead
-
concretize1
Description copied from class:PointcutResolves and removes ReferencePointcuts, replacing with basic ones- Overrides:
concretize1in classIfPointcut- Parameters:
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
-
write
- Overrides:
writein classIfPointcut- Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classIfPointcut
-
toString
- Overrides:
toStringin classIfPointcut
-