| java.lang.Object mlsub.typing.Variance
Variance | final public class Variance implements AtomicKind(Code) | | Variance of a type constructor.
There is one instance of this class per Variance,
so pointer equality can be used on variances.
author: Daniel Bonniot |
COVARIANTCONTRAVARIANTINVARIANT | final public static int COVARIANTCONTRAVARIANTINVARIANT(Code) | | Simplification
|
assertEq | public void assertEq(Monotype[] tp1, Monotype[] tp2) throws mlsub.typing.lowlevel.Unsatisfiable(Code) | | Asserts the inequalities between type parameters
belonging to this variance
Parameters: tp1 - a least Collection of Monotypes Parameters: tp2 - a greatest Collection of Monotypes |
getConstraint | public mlsub.typing.lowlevel.Engine.Constraint getConstraint()(Code) | | |
getVariance | public int getVariance(int rank)(Code) | | the variance of the rankth element |
initialAbstracts | void initialAbstracts(int x, int iid)(Code) | | |
initialImplements | void initialImplements(int x, int iid)(Code) | | |
subInterface | void subInterface(int i1, int i2)(Code) | | |
|
|