public static class IfPointcut.IfTruePointcut extends IfPointcut
IfPointcut.IfFalsePointcut, IfPointcut.IfTruePointcut
Pointcut.State
extraParameterFlags, residueSource, testMethod
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
end, sourceContext, start
Constructor and Description |
---|
IfTruePointcut() |
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysTrue() |
Pointcut |
concretize1(ResolvedType inAspect,
ResolvedType declaringType,
IntMap bindings)
Resolves and removes ReferencePointcuts, replacing with basic ones
|
FuzzyBoolean |
fastMatch(FastMatchInfo type)
Could I match any shadows in the code defined within this type?
|
protected Test |
findResidueInternal(Shadow shadow,
ExposedState state)
At each shadow that matched, the residue can be different.
|
int |
hashCode() |
protected FuzzyBoolean |
matchInternal(Shadow shadow) |
void |
postRead(ResolvedType enclosingType) |
void |
resolveBindings(IScope scope,
Bindings bindings) |
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
accept, alwaysFalse, couldMatchKinds, equals, getResidueSource, makeIfFalsePointcut, makeIfTruePointcut, parameterizeWith, read, setAlways, shouldCopyLocationForConcretize
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, resolve, setTypeVariablesInScope
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
public boolean alwaysTrue()
alwaysTrue
in class IfPointcut
protected Test findResidueInternal(Shadow shadow, ExposedState state)
IfPointcut
findResidueInternal
in class IfPointcut
public FuzzyBoolean fastMatch(FastMatchInfo type)
Pointcut
fastMatch
in class IfPointcut
protected FuzzyBoolean matchInternal(Shadow shadow)
matchInternal
in class IfPointcut
public void resolveBindings(IScope scope, Bindings bindings)
resolveBindings
in class IfPointcut
public void postRead(ResolvedType enclosingType)
public Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
Pointcut
concretize1
in class IfPointcut
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 statepublic void write(CompressingDataOutputStream s) throws java.io.IOException
write
in class IfPointcut
java.io.IOException
public int hashCode()
hashCode
in class IfPointcut
public java.lang.String toString()
toString
in class IfPointcut