Package org.aspectj.weaver.patterns
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
Modifier and TypeFieldDescriptionprotected UnresolvedType
protected boolean
protected String
protected boolean
Fields inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILD
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
Constructor Summary
ModifierConstructorDescriptionprotected
ExactAnnotationTypePattern
(String formalName) ExactAnnotationTypePattern
(UnresolvedType annotationType, Map<String, String> annotationValues) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(PatternNodeVisitor visitor, Object data) boolean
fastMatches
(AnnotatedElement annotated) int
hashCode()
matches
(AnnotatedElement annotated) matches
(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) matchesRuntimeType
(AnnotatedElement annotated) protected String
parameterizeWith
(Map<String, UnresolvedType> typeVariableMap, World w) static AnnotationTypePattern
read
(VersionedDataInputStream s, ISourceContext context) void
resolveBindings
(IScope scope, Bindings bindings, boolean allowBinding) This can modify in place, or return a new TypePattern if the type changes.toString()
protected void
verifyIsAnnotationType
(ResolvedType type, IScope scope) void
Methods inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatch
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
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:
fastMatches
in classAnnotationTypePattern
-
matches
- Specified by:
matches
in classAnnotationTypePattern
-
matches
- Specified by:
matches
in classAnnotationTypePattern
-
matchesRuntimeType
-
resolve
- Specified by:
resolve
in classAnnotationTypePattern
-
resolveBindings
Description copied from class:AnnotationTypePattern
This can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindings
in classAnnotationTypePattern
-
parameterizeWith
- Specified by:
parameterizeWith
in classAnnotationTypePattern
-
maybeGetSimpleName
-
verifyIsAnnotationType
-
write
- Specified by:
write
in classPatternNode
- Throws:
IOException
-
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
accept
- Specified by:
accept
in classPatternNode
-