|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
public abstract class Pointcut
The lifecycle of Pointcuts is modeled by Pointcut.State. It has three things:
Creation -- SYMBOLIC -- then resolve(IScope) -- RESOLVED -- concretize(...) -- CONCRETE
Nested Class Summary | |
---|---|
static class |
Pointcut.State
|
Field Summary | |
---|---|
static byte |
AND
|
static byte |
ANNOTATION
|
static byte |
ARGS
|
static byte |
ATARGS
|
static byte |
ATTHIS_OR_TARGET
|
static byte |
ATWITHIN
|
static byte |
ATWITHINCODE
|
static byte |
CFLOW
|
static Pointcut.State |
CONCRETE
|
static java.lang.String[] |
EMPTY_STRING_ARRAY
|
static byte |
HANDLER
|
static byte |
IF
|
static byte |
IF_FALSE
|
static byte |
IF_TRUE
|
static byte |
KINDED
|
java.lang.String[] |
m_ignoreUnboundBindingForNames
ATAJ the name of the formal for which we don't want any warning when unbound since we consider them as implicitly bound. |
static byte |
NONE
|
static byte |
NOT
|
static byte |
OR
|
static byte |
REFERENCE
|
static Pointcut.State |
RESOLVED
|
Pointcut.State |
state
|
static Pointcut.State |
SYMBOLIC
|
static byte |
THIS_OR_TARGET
|
static byte |
USER_EXTENSION
|
static byte |
WITHIN
|
static byte |
WITHINCODE
|
Constructor Summary | |
---|---|
Pointcut()
Constructor for Pattern. |
Method Summary | |
---|---|
void |
assertState(Pointcut.State state)
|
void |
check(ISourceContext ctx,
World world)
|
Pointcut |
concretize(ResolvedType inAspect,
ResolvedType declaringType,
int arity)
Returns a new pointcut Only used by test cases |
Pointcut |
concretize(ResolvedType inAspect,
ResolvedType declaringType,
IntMap bindings)
|
Pointcut |
concretize(ResolvedType inAspect,
ResolvedType declaringType,
int arity,
ShadowMunger advice)
|
abstract int |
couldMatchKinds()
The set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.java |
abstract FuzzyBoolean |
fastMatch(FastMatchInfo info)
Could I match any shadows in the code defined within this type? |
Test |
findResidue(Shadow shadow,
ExposedState state)
This can be called from NotPointcut even for Pointcuts that don't match the shadow |
static Pointcut |
fromString(java.lang.String str)
|
byte |
getPointcutKind()
|
java.lang.String[] |
getTypeVariablesInScope()
|
boolean |
isDeclare(ShadowMunger munger)
|
static Pointcut |
makeMatchesNothing(Pointcut.State state)
|
FuzzyBoolean |
match(Shadow shadow)
Do I really match this shadow? XXX implementors need to handle state |
abstract Pointcut |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap,
World w)
|
void |
postRead(ResolvedType enclosingType)
|
static Pointcut |
read(VersionedDataInputStream s,
ISourceContext context)
|
Pointcut |
resolve(IScope scope)
Returns this pointcut mutated |
void |
setTypeVariablesInScope(java.lang.String[] typeVars)
|
Methods inherited from class org.aspectj.weaver.patterns.PatternNode |
---|
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String[] m_ignoreUnboundBindingForNames
public static final java.lang.String[] EMPTY_STRING_ARRAY
public static final Pointcut.State SYMBOLIC
public static final Pointcut.State RESOLVED
public static final Pointcut.State CONCRETE
public Pointcut.State state
public static final byte KINDED
public static final byte WITHIN
public static final byte THIS_OR_TARGET
public static final byte ARGS
public static final byte AND
public static final byte OR
public static final byte NOT
public static final byte REFERENCE
public static final byte IF
public static final byte CFLOW
public static final byte WITHINCODE
public static final byte HANDLER
public static final byte IF_TRUE
public static final byte IF_FALSE
public static final byte ANNOTATION
public static final byte ATWITHIN
public static final byte ATWITHINCODE
public static final byte ATTHIS_OR_TARGET
public static final byte NONE
public static final byte ATARGS
public static final byte USER_EXTENSION
Constructor Detail |
---|
public Pointcut()
Method Detail |
---|
public abstract FuzzyBoolean fastMatch(FastMatchInfo info)
public abstract int couldMatchKinds()
public java.lang.String[] getTypeVariablesInScope()
public void setTypeVariablesInScope(java.lang.String[] typeVars)
public final FuzzyBoolean match(Shadow shadow)
public byte getPointcutKind()
public final Pointcut resolve(IScope scope)
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, int arity)
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, int arity, ShadowMunger advice)
public boolean isDeclare(ShadowMunger munger)
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
public final Test findResidue(Shadow shadow, ExposedState state)
public void postRead(ResolvedType enclosingType)
public static Pointcut read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public void check(ISourceContext ctx, World world)
public static Pointcut fromString(java.lang.String str)
public static Pointcut makeMatchesNothing(Pointcut.State state)
public void assertState(Pointcut.State state)
public abstract Pointcut parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |