public class WildAnnotationTypePattern extends AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILDend, sourceContext, start| Constructor and Description |
|---|
WildAnnotationTypePattern(TypePattern typePattern) |
WildAnnotationTypePattern(TypePattern typePattern,
java.util.Map<java.lang.String,java.lang.String> annotationValues) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
equals(java.lang.Object obj) |
TypePattern |
getTypePattern() |
int |
hashCode() |
FuzzyBoolean |
matches(AnnotatedElement annotated) |
FuzzyBoolean |
matches(AnnotatedElement annotated,
ResolvedType[] parameterAnnotations) |
AnnotationTypePattern |
parameterizeWith(java.util.Map typeVariableMap,
World w) |
static AnnotationTypePattern |
read(VersionedDataInputStream s,
ISourceContext context) |
void |
resolve(World world) |
protected void |
resolveAnnotationValues(ResolvedType annotationType,
IScope scope)
Resolve any annotation values specified, checking they are all well formed (valid names, valid values)
|
AnnotationTypePattern |
resolveBindings(IScope scope,
Bindings bindings,
boolean allowBinding)
This can modify in place, or return a new TypePattern if the type changes.
|
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
fastMatches, isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatchcopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationpublic WildAnnotationTypePattern(TypePattern typePattern)
public WildAnnotationTypePattern(TypePattern typePattern, java.util.Map<java.lang.String,java.lang.String> annotationValues)
public TypePattern getTypePattern()
public FuzzyBoolean matches(AnnotatedElement annotated)
matches in class AnnotationTypePatternprotected void resolveAnnotationValues(ResolvedType annotationType, IScope scope)
annotationType - the annotation type for which the values have been specifiedscope - the scope within which to resolve type references (eg. Color.GREEN)public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
matches in class AnnotationTypePatternpublic void resolve(World world)
resolve in class AnnotationTypePatternpublic AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
resolveBindings in class AnnotationTypePatternpublic AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap, World w)
parameterizeWith in class AnnotationTypePatternpublic 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