public class AnyWithAnnotationTypePattern extends TypePattern
TypePattern.MatchKindAND, 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 |
|---|
AnyWithAnnotationTypePattern(AnnotationTypePattern atp) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
protected boolean |
couldEverMatchSameTypesAs(TypePattern other) |
boolean |
equals(java.lang.Object obj) |
AnnotationTypePattern |
getAnnotationTypePattern() |
int |
hashCode() |
boolean |
isStar() |
protected boolean |
matchesExactly(ResolvedType type) |
protected boolean |
matchesExactly(ResolvedType type,
ResolvedType annotatedType) |
FuzzyBoolean |
matchesInstanceof(ResolvedType type) |
protected boolean |
matchesSubtypes(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 c) |
TypePattern |
resolveBindings(IScope scope,
Bindings bindings,
boolean allowBinding,
boolean requireExactType)
This can modify in place, or return a new TypePattern if the type changes.
|
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameterscopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationpublic AnyWithAnnotationTypePattern(AnnotationTypePattern atp)
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNodeprotected boolean couldEverMatchSameTypesAs(TypePattern other)
couldEverMatchSameTypesAs in class TypePatternprotected boolean matchesExactly(ResolvedType type)
matchesExactly in class TypePatternpublic TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
TypePatternresolveBindings 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 void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic static TypePattern read(VersionedDataInputStream s, ISourceContext c) throws java.io.IOException
java.io.IOExceptionprotected boolean matchesSubtypes(ResolvedType type)
matchesSubtypes in class TypePatternpublic boolean isStar()
isStar in class TypePatternpublic java.lang.String toString()
toString in class java.lang.Objectpublic AnnotationTypePattern getAnnotationTypePattern()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object