Package org.aspectj.weaver.patterns
Class Pointcut
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.Pointcut
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
AndPointcut,CflowPointcut,ConcreteCflowPointcut,HandlerPointcut,IfPointcut,KindedPointcut,NameBindingPointcut,NotPointcut,OrPointcut,PerClause,PointcutDesignatorHandlerBasedPointcut,ReferencePointcut,WithincodePointcut,WithinPointcut
public abstract class Pointcut extends PatternNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPointcut.State
-
Field Summary
Fields Modifier and Type Field Description static byteANDstatic byteANNOTATIONstatic byteARGSstatic byteATARGSstatic byteATTHIS_OR_TARGETstatic byteATWITHINstatic byteATWITHINCODEstatic byteCFLOWstatic Pointcut.StateCONCRETEstatic String[]EMPTY_STRING_ARRAYstatic byteHANDLERprotected booleanhasBeenParameterizedstatic byteIFstatic byteIF_FALSEstatic byteIF_TRUEstatic byteKINDEDprotected intlastMatchedShadowIdString[]m_ignoreUnboundBindingForNamesstatic byteNONEstatic byteNOTstatic byteORprotected bytepointcutKindstatic byteREFERENCEstatic Pointcut.StateRESOLVEDPointcut.Statestatestatic Pointcut.StateSYMBOLICstatic byteTHIS_OR_TARGETstatic byteUSER_EXTENSIONstatic byteWITHINstatic byteWITHINCODE-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description Pointcut()
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocation
-
-
-
-
Field Detail
-
m_ignoreUnboundBindingForNames
public String[] m_ignoreUnboundBindingForNames
-
EMPTY_STRING_ARRAY
public static final String[] EMPTY_STRING_ARRAY
-
SYMBOLIC
public static final Pointcut.State SYMBOLIC
-
RESOLVED
public static final Pointcut.State RESOLVED
-
CONCRETE
public static final Pointcut.State CONCRETE
-
pointcutKind
protected byte pointcutKind
-
state
public Pointcut.State state
-
lastMatchedShadowId
protected int lastMatchedShadowId
-
hasBeenParameterized
protected boolean hasBeenParameterized
-
KINDED
public static final byte KINDED
- See Also:
- Constant Field Values
-
WITHIN
public static final byte WITHIN
- See Also:
- Constant Field Values
-
THIS_OR_TARGET
public static final byte THIS_OR_TARGET
- See Also:
- Constant Field Values
-
ARGS
public static final byte ARGS
- See Also:
- Constant Field Values
-
AND
public static final byte AND
- See Also:
- Constant Field Values
-
OR
public static final byte OR
- See Also:
- Constant Field Values
-
NOT
public static final byte NOT
- See Also:
- Constant Field Values
-
REFERENCE
public static final byte REFERENCE
- See Also:
- Constant Field Values
-
IF
public static final byte IF
- See Also:
- Constant Field Values
-
CFLOW
public static final byte CFLOW
- See Also:
- Constant Field Values
-
WITHINCODE
public static final byte WITHINCODE
- See Also:
- Constant Field Values
-
HANDLER
public static final byte HANDLER
- See Also:
- Constant Field Values
-
IF_TRUE
public static final byte IF_TRUE
- See Also:
- Constant Field Values
-
IF_FALSE
public static final byte IF_FALSE
- See Also:
- Constant Field Values
-
ANNOTATION
public static final byte ANNOTATION
- See Also:
- Constant Field Values
-
ATWITHIN
public static final byte ATWITHIN
- See Also:
- Constant Field Values
-
ATWITHINCODE
public static final byte ATWITHINCODE
- See Also:
- Constant Field Values
-
ATTHIS_OR_TARGET
public static final byte ATTHIS_OR_TARGET
- See Also:
- Constant Field Values
-
NONE
public static final byte NONE
- See Also:
- Constant Field Values
-
ATARGS
public static final byte ATARGS
- See Also:
- Constant Field Values
-
USER_EXTENSION
public static final byte USER_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
fastMatch
public abstract FuzzyBoolean fastMatch(FastMatchInfo info)
-
couldMatchKinds
public abstract int couldMatchKinds()
-
getTypeVariablesInScope
public String[] getTypeVariablesInScope()
-
setTypeVariablesInScope
public void setTypeVariablesInScope(String[] typeVars)
-
match
public final FuzzyBoolean match(Shadow shadow)
-
matchInternal
protected abstract FuzzyBoolean matchInternal(Shadow shadow)
-
getPointcutKind
public byte getPointcutKind()
-
concretize
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, int arity)
-
concretize
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, int arity, ShadowMunger advice)
-
isDeclare
public boolean isDeclare(ShadowMunger munger)
-
concretize
public final Pointcut concretize(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
-
shouldCopyLocationForConcretize
protected boolean shouldCopyLocationForConcretize()
-
concretize1
protected abstract Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings)
-
findResidue
public final Test findResidue(Shadow shadow, ExposedState state)
-
findResidueInternal
protected abstract Test findResidueInternal(Shadow shadow, ExposedState state)
-
postRead
public void postRead(ResolvedType enclosingType)
-
read
public static Pointcut read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
check
public void check(ISourceContext ctx, World world)
-
makeMatchesNothing
public static Pointcut makeMatchesNothing(Pointcut.State state)
-
assertState
public void assertState(Pointcut.State state)
-
parameterizeWith
public abstract Pointcut parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
-
-