public class TypeCategoryTypePattern extends TypePattern
TypePattern.MatchKind| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION |
static int |
ANONYMOUS |
static int |
ASPECT |
static int |
CLASS |
static int |
ENUM |
static int |
FINAL |
static int |
INNER |
static int |
INTERFACE |
AND, annotationPattern, ANY, ANY_KEY, ANY_WITH_ANNO, BINDING, DYNAMIC, ELLIPSIS, ELLIPSIS_KEY, EXACT, HAS_MEMBER, includeSubtypes, isVarArgs, NO, NO_KEY, NOT, OR, STATIC, TYPE_CATEGORY, typeParameters, WILDend, sourceContext, start| Constructor and Description |
|---|
TypeCategoryTypePattern(int category) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
equals(java.lang.Object other) |
int |
getTypeCategory() |
int |
hashCode() |
protected boolean |
matchesExactly(ResolvedType type) |
protected boolean |
matchesExactly(ResolvedType type,
ResolvedType annotatedType) |
FuzzyBoolean |
matchesInstanceof(ResolvedType type) |
TypePattern |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap,
World w)
return a version of this type pattern in which all type variable references have been replaced by their corresponding entry
in the map.
|
static TypePattern |
read(VersionedDataInputStream s,
ISourceContext context) |
void |
write(CompressingDataOutputStream s) |
couldEverMatchSameTypesAs, getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveBindings, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameterscopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationpublic static final int CLASS
public static final int INTERFACE
public static final int ASPECT
public static final int INNER
public static final int ANONYMOUS
public static final int ENUM
public static final int ANNOTATION
public static final int FINAL
public int getTypeCategory()
protected boolean matchesExactly(ResolvedType type)
matchesExactly in class TypePatternprotected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType)
matchesExactly in class TypePatternpublic FuzzyBoolean matchesInstanceof(ResolvedType type)
matchesInstanceof in class TypePatternpublic TypePattern parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
TypePatternparameterizeWith in class TypePatternpublic java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNodepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException