Class PerSingleton
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Pointcut
org.aspectj.weaver.patterns.PerClause
org.aspectj.weaver.patterns.PerSingleton
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
-
Nested Class Summary
Nested classes/interfaces inherited from class PerClause
PerClause.Kind, PerClause.KindAnnotationPrefixModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class Pointcut
Pointcut.State -
Field Summary
Fields inherited from class PerClause
FROMSUPER, inAspect, PERCFLOW, PEROBJECT, PERTYPEWITHIN, SINGLETONModifier and TypeFieldDescriptionstatic final PerClause.Kindprotected ResolvedTypestatic final PerClause.Kindstatic final PerClause.Kindstatic final PerClause.Kindstatic final PerClause.KindFields inherited from class 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, WITHINCODEModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final Pointcut.Statestatic final String[]static final byteprotected booleanstatic final bytestatic final bytestatic final bytestatic final byteprotected intString[]ATAJ the name of the formal for which we don't want any warning when unbound since we consider them as implicitly bound.static final bytestatic final bytestatic final byteprotected bytestatic final bytestatic final Pointcut.Statestatic final Pointcut.Statestatic final bytestatic final bytestatic final bytestatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) concretize(ResolvedType inAspect) intThe set of ShadowKinds that this Pointcut could possibly match - an int whose bits are set according to the Kinds specified in Shadow.javabooleanfastMatch(FastMatchInfo type) Could I match any shadows in the code defined within this type?findResidueInternal(Shadow shadow, ExposedState state) getKind()inthashCode()protected FuzzyBooleanmatchInternal(Shadow shadow) parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) static PerClausereadPerClause(VersionedDataInputStream s, ISourceContext context) voidresolveBindings(IScope scope, Bindings bindings) toString()voidMethods inherited from class PerClause
concretize1Modifier and TypeMethodDescriptionfinal Pointcutconcretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) Resolves and removes ReferencePointcuts, replacing with basic onesMethods inherited from class Pointcut
assertState, check, concretize, concretize, concretize, findResidue, fromString, getPointcutKind, getTypeVariablesInScope, isDeclare, makeMatchesNothing, match, postRead, read, resolve, setTypeVariablesInScope, shouldCopyLocationForConcretizeModifier and TypeMethodDescriptionvoidassertState(Pointcut.State state) voidcheck(ISourceContext ctx, World world) final Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, int arity) Returns a new pointcut Only used by test casesfinal Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, int arity, ShadowMunger advice) final Pointcutconcretize(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) final TestfindResidue(Shadow shadow, ExposedState state) This can be called from NotPointcut even for Pointcuts that don't match the shadowstatic PointcutfromString(String str) byteString[]booleanisDeclare(ShadowMunger munger) static PointcutmakeMatchesNothing(Pointcut.State state) final FuzzyBooleanDo I really match this shadow? XXX implementors need to handle statevoidpostRead(ResolvedType enclosingType) static Pointcutread(VersionedDataInputStream s, ISourceContext context) final PointcutReturns this pointcut mutatedvoidsetTypeVariablesInScope(String[] typeVars) protected booleanMethods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationModifier and TypeMethodDescriptionvoidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) traverse(PatternNodeVisitor visitor, Object data) void
-
Constructor Details
-
PerSingleton
public PerSingleton()
-
-
Method Details
-
accept
- Specified by:
acceptin classPatternNode
-
couldMatchKinds
public int couldMatchKinds()Description copied from class:PointcutThe 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:
couldMatchKindsin classPointcut
-
fastMatch
Description copied from class:PointcutCould I match any shadows in the code defined within this type? -
matchInternal
- Specified by:
matchInternalin classPointcut
-
resolveBindings
- Specified by:
resolveBindingsin classPointcut
-
parameterizeWith
- Specified by:
parameterizeWithin classPointcut
-
findResidueInternal
- Specified by:
findResidueInternalin classPointcut
-
concretize
- Specified by:
concretizein classPerClause
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
readPerClause
public static PerClause readPerClause(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
getKind
-
toString
-
toDeclarationString
- Specified by:
toDeclarationStringin classPerClause
-
equals
-
hashCode
-