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
FieldsModifier and TypeFieldDescriptionprotected UnresolvedTypeprotected booleanprotected Stringprotected booleanFields inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILDFields inherited from class org.aspectj.weaver.patterns.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 org.aspectj.weaver.patterns.AnnotationTypePattern
isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatchMethods 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:
fastMatchesin classAnnotationTypePattern
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
matchesRuntimeType
-
resolve
- Specified by:
resolvein classAnnotationTypePattern
-
resolveBindings
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)Description copied from class:AnnotationTypePatternThis can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindingsin classAnnotationTypePattern
-
parameterizeWith
public AnnotationTypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)- 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
public int hashCode() -
toString
-
accept
- Specified by:
acceptin classPatternNode
-