orc.type
Class TupleType
java.lang.Object
orc.type.Type
orc.type.TupleType
public class TupleType
- extends Type
Methods inherited from class orc.type.Type |
assertSubtype, call, closed, equal, freeVars, isBot, isTop, makeCallableInstance, substAll, supertype, unwrapAs, variances |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
items
public java.util.List<Type> items
TupleType
public TupleType(java.util.List<Type> items)
TupleType
public TupleType(Type a,
Type b)
subtype
public boolean subtype(Type that)
- Overrides:
subtype
in class Type
join
public Type join(Type that)
- Overrides:
join
in class Type
meet
public Type meet(Type that)
- Overrides:
meet
in class Type
call
public Type call(java.util.List<Type> args)
throws TypeException
- Overrides:
call
in class Type
- Throws:
TypeException
subst
public Type subst(Env<Type> ctx)
- Overrides:
subst
in class Type
findVariance
public Variance findVariance(java.lang.Integer var)
- Overrides:
findVariance
in class Type
promote
public Type promote(Env<java.lang.Boolean> V)
throws TypeException
- Overrides:
promote
in class Type
- Throws:
TypeException
demote
public Type demote(Env<java.lang.Boolean> V)
throws TypeException
- Overrides:
demote
in class Type
- Throws:
TypeException
addConstraints
public void addConstraints(Env<java.lang.Boolean> VX,
Type T,
Constraint[] C)
throws TypeException
- Overrides:
addConstraints
in class Type
- Throws:
TypeException
toString
public java.lang.String toString()
- Overrides:
toString
in class Type
width
public int width()