public class WildAnnotationTypePattern extends AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILD
end, 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, setForParameterAnnotationMatch
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
public 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 AnnotationTypePattern
protected 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 AnnotationTypePattern
public void resolve(World world)
resolve
in class AnnotationTypePattern
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
resolveBindings
in class AnnotationTypePattern
public AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap, World w)
parameterizeWith
in class AnnotationTypePattern
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