public class ExactAnnotationTypePattern extends AnnotationTypePattern
| Modifier and Type | Field and Description |
|---|---|
protected UnresolvedType |
annotationType |
protected boolean |
bindingPattern |
protected java.lang.String |
formalName |
protected boolean |
resolved |
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILDend, sourceContext, start| Modifier | Constructor and Description |
|---|---|
protected |
ExactAnnotationTypePattern(java.lang.String formalName) |
|
ExactAnnotationTypePattern(UnresolvedType annotationType,
java.util.Map<java.lang.String,java.lang.String> annotationValues) |
isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatchcopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationprotected UnresolvedType annotationType
protected java.lang.String formalName
protected boolean resolved
protected boolean bindingPattern
public ExactAnnotationTypePattern(UnresolvedType annotationType, java.util.Map<java.lang.String,java.lang.String> annotationValues)
protected ExactAnnotationTypePattern(java.lang.String formalName)
public ResolvedType getResolvedAnnotationType()
public UnresolvedType getAnnotationType()
public java.util.Map<java.lang.String,java.lang.String> getAnnotationValues()
public FuzzyBoolean fastMatches(AnnotatedElement annotated)
fastMatches in class AnnotationTypePatternpublic FuzzyBoolean matches(AnnotatedElement annotated)
matches in class AnnotationTypePatternpublic FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
matches in class AnnotationTypePatternpublic FuzzyBoolean matchesRuntimeType(AnnotatedElement annotated)
public void resolve(World world)
resolve in class AnnotationTypePatternpublic AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
AnnotationTypePatternresolveBindings in class AnnotationTypePatternpublic AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap, World w)
parameterizeWith in class AnnotationTypePatternprotected java.lang.String maybeGetSimpleName()
protected void verifyIsAnnotationType(ResolvedType type, IScope scope)
public void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNode