Class ReferencePointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.ReferencePointcut
- All Implemented Interfaces:
IHasPosition
,IHasSourceLocation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.Pointcut
Pointcut.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields 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
ConstructorsConstructorDescriptionReferencePointcut
(TypePattern onTypeSymbolic, String name, TypePatternList arguments) ReferencePointcut
(UnresolvedType onType, String name, TypePatternList arguments) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(PatternNodeVisitor visitor, Object data) concretize1
(ResolvedType searchStart, ResolvedType declaringType, IntMap bindings) Resolves and removes ReferencePointcuts, replacing with basic onesint
The set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.javaboolean
fastMatch
(FastMatchInfo type) Could I match any shadows in the code defined within this type?protected Test
findResidueInternal
(Shadow shadow, ExposedState state) int
hashCode()
protected FuzzyBoolean
matchInternal
(Shadow shadow) Do I really match this shadow?parameterizeWith
(Map<String, UnresolvedType> typeVariableMap, World w) make a version of this pointcut with any refs to typeVariables replaced by their entry in the map.void
postRead
(ResolvedType enclosingType) static Pointcut
read
(VersionedDataInputStream s, ISourceContext context) void
resolveBindings
(IScope scope, Bindings bindings) protected boolean
toString()
traverse
(PatternNodeVisitor visitor, Object data) void
Methods inherited from class org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, resolve, setTypeVariablesInScope
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Field Details
-
onType
-
onTypeSymbolic
-
name
-
arguments
-
-
Constructor Details
-
ReferencePointcut
-
ReferencePointcut
-
-
Method Details
-
couldMatchKinds
public int couldMatchKinds()Description copied from class:Pointcut
The set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.java- Specified by:
couldMatchKinds
in classPointcut
-
fastMatch
Description copied from class:Pointcut
Could I match any shadows in the code defined within this type? -
matchInternal
Do I really match this shadow?- Specified by:
matchInternal
in classPointcut
-
toString
-
write
- Specified by:
write
in classPatternNode
- Throws:
IOException
-
read
- Throws:
IOException
-
resolveBindings
- Specified by:
resolveBindings
in classPointcut
-
postRead
-
findResidueInternal
- Specified by:
findResidueInternal
in classPointcut
-
concretize1
Description copied from class:Pointcut
Resolves and removes ReferencePointcuts, replacing with basic ones- Specified by:
concretize1
in classPointcut
- Parameters:
searchStart
- 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
-
parameterizeWith
make a version of this pointcut with any refs to typeVariables replaced by their entry in the map. Tricky thing is, we can't do this at the point in time this method will be called, so we make a version that will parameterize the pointcut it ultimately resolves to.- Specified by:
parameterizeWith
in classPointcut
-
shouldCopyLocationForConcretize
protected boolean shouldCopyLocationForConcretize()- Overrides:
shouldCopyLocationForConcretize
in classPointcut
-
equals
-
hashCode
-
accept
- Specified by:
accept
in classPatternNode
-
traverse
- Overrides:
traverse
in classPatternNode
-