orc.type
Class TypeInstance
java.lang.Object
orc.type.Type
orc.type.TypeInstance
public class TypeInstance
- extends Type
A type constructor instantiated at particular types,
e.g. a List of Integers.
- Author:
- dkitchin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tycon
public Tycon tycon
params
public java.util.List<Type> params
TypeInstance
public TypeInstance(Tycon tycon,
java.util.List<Type> params)
subtype
public boolean subtype(Type that)
throws TypeException
- Overrides:
subtype
in class Type
- Throws:
TypeException
join
public Type join(Type that)
throws TypeException
- Overrides:
join
in class Type
- Throws:
TypeException
meet
public Type meet(Type that)
throws TypeException
- Overrides:
meet
in class Type
- Throws:
TypeException
call
public Type call(Env<Type> ctx,
Env<Type> typectx,
java.util.List<Arg> args,
java.util.List<Type> typeActuals)
throws TypeException
- Overrides:
call
in class Type
- Throws:
TypeException
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)
throws TypeException
- Overrides:
subst
in class Type
- Throws:
TypeException
findVariance
public Variance findVariance(java.lang.Integer var)
throws TypeException
- Overrides:
findVariance
in class Type
- Throws:
TypeException
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
unwrapAs
public Type unwrapAs(Type T)
throws TypeException
- Overrides:
unwrapAs
in class Type
- Throws:
TypeException
toString
public java.lang.String toString()
- Overrides:
toString
in class Type