Package org.aspectj.weaver.patterns
Klasse ThisOrTargetPointcut
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.NameBindingPointcut
org.aspectj.weaver.patterns.ThisOrTargetPointcut
- Alle implementierten Schnittstellen:
IHasPosition
,IHasSourceLocation
Corresponds to target or this pcd.
type is initially a WildTypePattern. If it stays that way, it's a this(Foo) type deal. however, the resolveBindings method may convert it to a BindingTypePattern, in which case, it's a this(foo) type deal.
- Autor:
- Erik Hilsdale, Jim Hugunin
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.patterns.Pointcut
Pointcut.State
-
Feldübersicht
Von Klasse geerbte Felder 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
Von Klasse geerbte Felder org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaccept
(PatternNodeVisitor visitor, Object data) concretize1
(ResolvedType inAspect, 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) Residue is the remainder of the pointcut match that couldn't be performed with the purely static information at compile time and this method returns the residue of a pointcut at a particular shadow.getType()
int
hashCode()
boolean
boolean
isThis()
protected FuzzyBoolean
matchInternal
(Shadow shadow) parameterizeWith
(Map<String, UnresolvedType> typeVariableMap, World w) void
postRead
(ResolvedType enclosingType) static Pointcut
read
(VersionedDataInputStream s, ISourceContext context) void
resolveBindings
(IScope scope, Bindings bindings) toString()
traverse
(PatternNodeVisitor visitor, Object data) void
Von Klasse geerbte Methoden org.aspectj.weaver.patterns.NameBindingPointcut
exposeStateForVar
Von Klasse geerbte Methoden org.aspectj.weaver.patterns.Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, resolve, setTypeVariablesInScope, shouldCopyLocationForConcretize
Von Klasse geerbte Methoden org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Konstruktordetails
-
ThisOrTargetPointcut
-
-
Methodendetails
-
isBinding
public boolean isBinding() -
getType
-
isThis
public boolean isThis() -
parameterizeWith
- Angegeben von:
parameterizeWith
in KlassePointcut
-
couldMatchKinds
public int couldMatchKinds()Beschreibung aus Klasse kopiert: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- Angegeben von:
couldMatchKinds
in KlassePointcut
-
fastMatch
Beschreibung aus Klasse kopiert:Pointcut
Could I match any shadows in the code defined within this type? -
matchInternal
- Angegeben von:
matchInternal
in KlassePointcut
-
write
- Angegeben von:
write
in KlassePatternNode
- Löst aus:
IOException
-
read
- Löst aus:
IOException
-
resolveBindings
- Angegeben von:
resolveBindings
in KlassePointcut
-
postRead
-
getBindingAnnotationTypePatterns
- Angegeben von:
getBindingAnnotationTypePatterns
in KlasseNameBindingPointcut
-
getBindingTypePatterns
- Angegeben von:
getBindingTypePatterns
in KlasseNameBindingPointcut
-
equals
-
hashCode
public int hashCode() -
toString
-
findResidueInternal
Residue is the remainder of the pointcut match that couldn't be performed with the purely static information at compile time and this method returns the residue of a pointcut at a particular shadow.- Angegeben von:
findResidueInternal
in KlassePointcut
-
concretize1
Beschreibung aus Klasse kopiert:Pointcut
Resolves and removes ReferencePointcuts, replacing with basic ones- Angegeben von:
concretize1
in KlassePointcut
- Parameter:
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 state
-
accept
- Angegeben von:
accept
in KlassePatternNode
-
traverse
- Setzt außer Kraft:
traverse
in KlassePatternNode
-