Class ExactAnnotationTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.AnnotationTypePattern
org.aspectj.weaver.patterns.ExactAnnotationTypePattern
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
- Direct Known Subclasses:
BindingAnnotationFieldTypePattern, BindingAnnotationTypePattern, ExactAnnotationFieldTypePattern
Matches an annotation of a given type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UnresolvedTypeprotected booleanprotected Stringprotected booleanFields inherited from class AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILDModifier and TypeFieldDescriptionstatic final bytestatic final AnnotationTypePatternstatic final bytestatic final bytestatic final bytestatic final bytestatic final AnnotationTypePatternstatic final bytestatic final bytestatic final bytestatic final AnnotationTypePattern[]static final bytestatic final bytestatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExactAnnotationTypePattern(String formalName) ExactAnnotationTypePattern(UnresolvedType annotationType, Map<String, String> annotationValues) -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) booleanfastMatches(AnnotatedElement annotated) inthashCode()matches(AnnotatedElement annotated) matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) matchesRuntimeType(AnnotatedElement annotated) protected StringparameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) static AnnotationTypePatternread(VersionedDataInputStream s, ISourceContext context) voidresolveBindings(IScope scope, Bindings bindings, boolean allowBinding) This can modify in place, or return a new TypePattern if the type changes.toString()protected voidverifyIsAnnotationType(ResolvedType type, IScope scope) voidMethods inherited from class AnnotationTypePattern
isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatchModifier and TypeMethodDescriptionbooleanisAny()booleanremapAdviceFormals(IntMap bindings) voidMethods 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
-
Field Details
-
annotationType
-
formalName
-
resolved
protected boolean resolved -
bindingPattern
protected boolean bindingPattern
-
-
Constructor Details
-
ExactAnnotationTypePattern
public ExactAnnotationTypePattern(UnresolvedType annotationType, Map<String, String> annotationValues) -
ExactAnnotationTypePattern
-
-
Method Details
-
getResolvedAnnotationType
-
getAnnotationType
-
getAnnotationValues
-
fastMatches
- Overrides:
fastMatchesin classAnnotationTypePattern
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
matchesRuntimeType
-
resolve
- Specified by:
resolvein classAnnotationTypePattern
-
resolveBindings
Description copied from class:AnnotationTypePatternThis can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindingsin classAnnotationTypePattern
-
parameterizeWith
- Specified by:
parameterizeWithin classAnnotationTypePattern
-
maybeGetSimpleName
-
verifyIsAnnotationType
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
equals
-
hashCode
-
toString
-
accept
- Specified by:
acceptin classPatternNode
-