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, WILD
end, 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, setForParameterAnnotationMatch
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
protected 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 AnnotationTypePattern
public FuzzyBoolean matches(AnnotatedElement annotated)
matches
in class AnnotationTypePattern
public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
matches
in class AnnotationTypePattern
public FuzzyBoolean matchesRuntimeType(AnnotatedElement annotated)
public void resolve(World world)
resolve
in class AnnotationTypePattern
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
AnnotationTypePattern
resolveBindings
in class AnnotationTypePattern
public AnnotationTypePattern parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
parameterizeWith
in class AnnotationTypePattern
protected java.lang.String maybeGetSimpleName()
protected void verifyIsAnnotationType(ResolvedType type, IScope scope)
public void write(CompressingDataOutputStream s) throws java.io.IOException
write
in class PatternNode
java.io.IOException
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept
in class PatternNode