public class AndAnnotationTypePattern extends AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILD
end, sourceContext, start
Constructor and Description |
---|
AndAnnotationTypePattern(AnnotationTypePattern left,
AnnotationTypePattern right) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
equals(java.lang.Object obj) |
AnnotationTypePattern |
getLeft() |
AnnotationTypePattern |
getRight() |
int |
hashCode() |
FuzzyBoolean |
matches(AnnotatedElement annotated) |
FuzzyBoolean |
matches(AnnotatedElement annotated,
ResolvedType[] parameterAnnotations) |
AnnotationTypePattern |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap,
World w) |
static AnnotationTypePattern |
read(VersionedDataInputStream s,
ISourceContext context) |
void |
resolve(World world) |
AnnotationTypePattern |
resolveBindings(IScope scope,
Bindings bindings,
boolean allowBinding)
This can modify in place, or return a new TypePattern if the type changes.
|
void |
setForParameterAnnotationMatch() |
java.lang.String |
toString() |
java.lang.Object |
traverse(PatternNodeVisitor visitor,
java.lang.Object data) |
void |
write(CompressingDataOutputStream s) |
fastMatches, isAny, isForParameterAnnotationMatch, remapAdviceFormals
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
public AndAnnotationTypePattern(AnnotationTypePattern left, AnnotationTypePattern right)
public FuzzyBoolean matches(AnnotatedElement annotated)
matches
in class AnnotationTypePattern
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)
AnnotationTypePattern
resolveBindings
in class AnnotationTypePattern
public AnnotationTypePattern parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
parameterizeWith
in class AnnotationTypePattern
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public void write(CompressingDataOutputStream s) throws java.io.IOException
write
in class PatternNode
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 AnnotationTypePattern getLeft()
public AnnotationTypePattern getRight()
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept
in class PatternNode
public java.lang.Object traverse(PatternNodeVisitor visitor, java.lang.Object data)
traverse
in class PatternNode
public void setForParameterAnnotationMatch()
setForParameterAnnotationMatch
in class AnnotationTypePattern