public class TypeSeq extends Object implements GradualTypeLike<TypeSeq>
| Modifier and Type | Field and Description |
|---|---|
protected List<Type> |
fixed |
protected Type |
tailType |
| Modifier and Type | Method and Description |
|---|---|
PartialOrderComparisonResult |
comparePointwiseTo(TypeSeq that) |
static TypeSeq |
empty() |
boolean |
equals(Object o) |
List<Type> |
fixed() |
Type |
get(int idx) |
int |
hashCode() |
boolean |
isConsistentSubtypeOf(TypeSeq that) |
boolean |
isConsistentWith(TypeSeq that) |
boolean |
isSubsumedBy(TypeSeq that) |
TypeSeq |
join(TypeSeq that) |
TypeSeq |
meet(TypeSeq that) |
static TypeSeq |
of(List<Type> fixed,
boolean vararg) |
static TypeSeq |
of(Type... fixed) |
TypeSeq |
prefixedBy(Type[] types) |
TypeSeq |
restrict(TypeSeq that) |
Type |
tailType() |
String |
toString() |
static TypeSeq |
vararg() |
TypeSeq |
withVararg() |
public static TypeSeq empty()
public static TypeSeq vararg()
public TypeSeq withVararg()
public Type tailType()
public Type get(int idx)
public boolean isSubsumedBy(TypeSeq that)
public PartialOrderComparisonResult comparePointwiseTo(TypeSeq that)
public boolean isConsistentWith(TypeSeq that)
isConsistentWith in interface GradualTypeLike<TypeSeq>public boolean isConsistentSubtypeOf(TypeSeq that)
isConsistentSubtypeOf in interface GradualTypeLike<TypeSeq>Copyright © 2016–2017. All rights reserved.