Package org.aspectj.weaver.patterns
Class IfPointcut
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.Pointcut
-
- org.aspectj.weaver.patterns.IfPointcut
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
IfPointcut.IfFalsePointcut,IfPointcut.IfTruePointcut
public class IfPointcut extends Pointcut
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIfPointcut.IfFalsePointcutstatic classIfPointcut.IfTruePointcut-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.Pointcut
Pointcut.State
-
-
Field Summary
Fields Modifier and Type Field Description intextraParameterFlagsPointcutresidueSourceResolvedMembertestMethod-
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 IfPointcut(String enclosingPointcutHint)IfPointcut(ResolvedMember testMethod, int extraParameterFlags)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, postRead, resolve, setTypeVariablesInScope
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Field Detail
-
testMethod
public ResolvedMember testMethod
-
extraParameterFlags
public int extraParameterFlags
-
residueSource
public Pointcut residueSource
-
-
Constructor Detail
-
IfPointcut
public IfPointcut(ResolvedMember testMethod, int extraParameterFlags)
-
IfPointcut
public IfPointcut(String enclosingPointcutHint)
-
-
Method Detail
-
couldMatchKinds
public int couldMatchKinds()
- Specified by:
couldMatchKindsin classPointcut
-
fastMatch
public FuzzyBoolean fastMatch(FastMatchInfo type)
-
matchInternal
protected FuzzyBoolean matchInternal(Shadow shadow)
- Specified by:
matchInternalin classPointcut
-
alwaysFalse
public boolean alwaysFalse()
-
alwaysTrue
public boolean alwaysTrue()
-
getResidueSource
public Pointcut getResidueSource()
-
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
-
resolveBindings
public void resolveBindings(IScope scope, Bindings bindings)
- Specified by:
resolveBindingsin classPointcut
-
findResidueInternal
protected Test findResidueInternal(Shadow shadow, ExposedState state)
- Specified by:
findResidueInternalin classPointcut
-
shouldCopyLocationForConcretize
protected boolean shouldCopyLocationForConcretize()
- Overrides:
shouldCopyLocationForConcretizein classPointcut
-
concretize1
public Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
- Specified by:
concretize1in classPointcut
-
parameterizeWith
public Pointcut parameterizeWith(Map typeVariableMap, World w)
- Specified by:
parameterizeWithin classPointcut
-
makeIfFalsePointcut
public static IfPointcut makeIfFalsePointcut(Pointcut.State state)
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
makeIfTruePointcut
public static IfPointcut makeIfTruePointcut(Pointcut.State state)
-
setAlways
public void setAlways(boolean matches)
-
-