Class AnyWithAnnotationTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.TypePattern
org.aspectj.weaver.patterns.AnyWithAnnotationTypePattern
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
This type represents a type pattern of '*' but with an annotation specified, e.g. '@Color *'
-
Nested Class Summary
Nested classes/interfaces inherited from class TypePattern
TypePattern.MatchKind -
Field Summary
Fields inherited from class TypePattern
AND, annotationPattern, ANY, ANY_KEY, ANY_WITH_ANNO, BINDING, DYNAMIC, ELLIPSIS, ELLIPSIS_KEY, EXACT, HAS_MEMBER, includeSubtypes, isVarArgs, NO, NO_KEY, NOT, OR, STATIC, TYPE_CATEGORY, typeParameters, WILDModifier and TypeFieldDescriptionstatic final byteprotected AnnotationTypePatternstatic final TypePatternstatic final bytestatic final bytestatic final bytestatic final TypePattern.MatchKindstatic final TypePatternstatic final bytestatic final bytestatic final byteprotected booleanprotected booleanstatic final TypePatternstatic final bytestatic final bytestatic final bytestatic final TypePattern.MatchKindstatic final byteprotected TypePatternListstatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) protected booleanbooleaninthashCode()booleanisStar()protected booleanmatchesArray(UnresolvedType type) protected booleanmatchesExactly(ResolvedType type) protected booleanmatchesExactly(ResolvedType type, ResolvedType annotatedType) protected booleanmatchesSubtypes(ResolvedType type) parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) return a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.static TypePatternresolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) This can modify in place, or return a new TypePattern if the type changes.toString()voidMethods inherited from class TypePattern
getAnnotationPattern, getDimensions, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters, traverseModifier and TypeMethodDescriptionintbooleanbooleanisArray()booleanFor quickly recognizing the pattern '!void'booleanbooleanbooleanbooleanbooleanisVoid()for quickly recognizing the pattern 'void'final FuzzyBooleanmatches(ResolvedType type, TypePattern.MatchKind kind) booleanprotected booleanmatchesSubtypes(ResolvedType superType, ResolvedType annotatedType) protected TypePatternvoidpostRead(ResolvedType enclosingType) remapAdviceFormals(IntMap bindings) This is called during concretization of pointcuts, it is used by BindingTypePattern to return a new BindingTypePattern with a formal index appropriate for the advice, rather than for the lexical declaration, i.e.voidresolveExactType(IScope scope, Bindings bindings) voidvoidsetIsVarArgs(boolean isVarArgs) voidsetTypeParameters(TypePatternList typeParams) traverse(PatternNodeVisitor visitor, Object data) Methods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, 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) void
-
Constructor Details
-
AnyWithAnnotationTypePattern
-
-
Method Details
-
accept
- Specified by:
acceptin classPatternNode
-
couldEverMatchSameTypesAs
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
resolveBindings
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) Description copied from class:TypePatternThis can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindingsin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesInstanceof
- Specified by:
matchesInstanceofin classTypePattern
-
matchesArray
- Specified by:
matchesArrayin classTypePattern
-
parameterizeWith
Description copied from class:TypePatternreturn a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.- Specified by:
parameterizeWithin classTypePattern
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
- Throws:
IOException
-
matchesSubtypes
- Overrides:
matchesSubtypesin classTypePattern
-
isStar
public boolean isStar()- Overrides:
isStarin classTypePattern
-
toString
-
getAnnotationTypePattern
-
equals
-
hashCode
-