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, writeLocation
public 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.Object
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public static TypePatternList read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public int getEnd()
IHasPosition
getEnd
in interface IHasPosition
getEnd
in class PatternNode
public ISourceContext getSourceContext()
getSourceContext
in interface IHasSourceLocation
getSourceContext
in class PatternNode
public ISourceLocation getSourceLocation()
getSourceLocation
in interface IHasSourceLocation
getSourceLocation
in class PatternNode
public int getStart()
IHasPosition
getStart
in interface IHasPosition
getStart
in class PatternNode
public void write(CompressingDataOutputStream s) throws java.io.IOException
write
in class PatternNode
java.io.IOException
public TypePattern[] getTypePatterns()
public java.util.List<UnresolvedType> getExactTypes()
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 boolean areAllExactWithNoSubtypesAllowed()
public java.lang.String[] maybeGetCleanNames()