public class TypePatternList extends PatternNode
| Modifier and Type | Field and Description |
|---|---|
static TypePatternList |
ANY |
static TypePatternList |
EMPTY |
end, sourceContext, start| Constructor and Description |
|---|
TypePatternList() |
TypePatternList(java.util.List<TypePattern> l) |
TypePatternList(TypePattern[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
areAllExactWithNoSubtypesAllowed() |
boolean |
canMatchSignatureWithNParameters(int numParams) |
boolean |
equals(java.lang.Object other) |
TypePattern |
get(int index) |
int |
getEnd()
The ending index of this location in the character stream
This points to the last character in this token.
|
java.util.List<UnresolvedType> |
getExactTypes() |
ISourceContext |
getSourceContext() |
ISourceLocation |
getSourceLocation() |
int |
getStart()
The starting index of this location in the character stream.
|
TypePattern[] |
getTypePatterns() |
int |
hashCode() |
FuzzyBoolean |
matches(ResolvableTypeList types,
TypePattern.MatchKind kind,
ResolvedType[][] parameterAnnotations) |
FuzzyBoolean |
matches(ResolvedType[] types,
TypePattern.MatchKind kind) |
FuzzyBoolean |
matches(ResolvedType[] types,
TypePattern.MatchKind kind,
ResolvedType[][] parameterAnnotations)
When called with TypePattern.STATIC this will always return either FuzzyBoolean.YES or FuzzyBoolean.NO.
|
java.lang.String[] |
maybeGetCleanNames() |
TypePatternList |
parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap,
World w)
Return a version of this type pattern list in which all type variable references are replaced by their corresponding entry in
the map
|
void |
postRead(ResolvedType enclosingType) |
static TypePatternList |
read(VersionedDataInputStream s,
ISourceContext context) |
TypePatternList |
resolveBindings(IScope scope,
Bindings bindings,
boolean allowBinding,
boolean requireExactType) |
TypePatternList |
resolveReferences(IntMap bindings) |
int |
size() |
java.lang.String |
toString() |
java.lang.Object |
traverse(PatternNodeVisitor visitor,
java.lang.Object data) |
void |
write(CompressingDataOutputStream s) |
copyLocationFrom, getFileName, readLocation, setLocation, writeLocationpublic static final TypePatternList EMPTY
public static final TypePatternList ANY
public TypePatternList()
public TypePatternList(TypePattern[] arguments)
public TypePatternList(java.util.List<TypePattern> l)
public int size()
public TypePattern get(int index)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean canMatchSignatureWithNParameters(int numParams)
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind)
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)
public FuzzyBoolean matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations)
public TypePatternList parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableMap, World w)
typeVariableMap - public TypePatternList resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
public TypePatternList resolveReferences(IntMap bindings)
public void postRead(ResolvedType enclosingType)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static TypePatternList read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOExceptionpublic int getEnd()
IHasPositiongetEnd in interface IHasPositiongetEnd in class PatternNodepublic ISourceContext getSourceContext()
getSourceContext in interface IHasSourceLocationgetSourceContext in class PatternNodepublic ISourceLocation getSourceLocation()
getSourceLocation in interface IHasSourceLocationgetSourceLocation in class PatternNodepublic int getStart()
IHasPositiongetStart in interface IHasPositiongetStart in class PatternNodepublic void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic TypePattern[] getTypePatterns()
public java.util.List<UnresolvedType> getExactTypes()
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNodepublic java.lang.Object traverse(PatternNodeVisitor visitor, java.lang.Object data)
traverse in class PatternNodepublic boolean areAllExactWithNoSubtypesAllowed()
public java.lang.String[] maybeGetCleanNames()