public abstract class AnnotationTypePattern extends PatternNode
Modifier and Type | Field and Description |
---|---|
static byte |
AND |
static AnnotationTypePattern |
ANY |
static byte |
ANY_KEY |
static byte |
BINDING |
static byte |
BINDINGFIELD |
static byte |
BINDINGFIELD2 |
static AnnotationTypePattern |
ELLIPSIS |
static byte |
ELLIPSIS_KEY |
static byte |
EXACT |
static byte |
EXACTFIELD |
static AnnotationTypePattern[] |
NONE |
static byte |
NOT |
static byte |
OR |
static byte |
WILD |
end, sourceContext, start
Modifier | Constructor and Description |
---|---|
protected |
AnnotationTypePattern()
TODO: write, read, equals & hashCode both in annotation hierarchy and in altered TypePattern hierarchy
|
Modifier and Type | Method and Description |
---|---|
FuzzyBoolean |
fastMatches(AnnotatedElement annotated) |
boolean |
isAny() |
boolean |
isForParameterAnnotationMatch() |
abstract FuzzyBoolean |
matches(AnnotatedElement annotated) |
abstract FuzzyBoolean |
matches(AnnotatedElement annotated,
ResolvedType[] parameterAnnotations) |
abstract AnnotationTypePattern |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap,
World w) |
static AnnotationTypePattern |
read(VersionedDataInputStream s,
ISourceContext context) |
AnnotationTypePattern |
remapAdviceFormals(IntMap bindings) |
abstract 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() |
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocation
public static final AnnotationTypePattern ANY
public static final AnnotationTypePattern ELLIPSIS
public static final AnnotationTypePattern[] NONE
public static final byte EXACT
public static final byte BINDING
public static final byte NOT
public static final byte OR
public static final byte AND
public static final byte ELLIPSIS_KEY
public static final byte ANY_KEY
public static final byte WILD
public static final byte EXACTFIELD
public static final byte BINDINGFIELD
public static final byte BINDINGFIELD2
protected AnnotationTypePattern()
public abstract FuzzyBoolean matches(AnnotatedElement annotated)
public abstract FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
public FuzzyBoolean fastMatches(AnnotatedElement annotated)
public AnnotationTypePattern remapAdviceFormals(IntMap bindings)
public abstract void resolve(World world)
public abstract AnnotationTypePattern parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
public boolean isAny()
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public void setForParameterAnnotationMatch()
public boolean isForParameterAnnotationMatch()