| java.lang.Object mlsub.typing.Monotype mlsub.typing.MonotypeConstructor
MonotypeConstructor | final public class MonotypeConstructor extends Monotype (Code) | | A monotype, build by application of
a type constructor to type parameters.
|
MonotypeConstructor | public MonotypeConstructor(TypeConstructor tc, Monotype[] parameters) throws BadSizeEx(Code) | | Constructs a monotype by application of the type constructor
to the type parameters.
Parameters: tc - the type constructor Parameters: parameters - the type parameters |
getId | public int getId()(Code) | | low-level interface
|
head | public TypeConstructor head()(Code) | | Return the head type constructor if this monotype is
of a known variance, or null.
|
isRigid | public boolean isRigid()(Code) | | Returns true if this monotype is only made of
top-level, rigid type constructors
|
setId | public void setId(int value)(Code) | | |
substitute | Monotype substitute(Map map)(Code) | | Perform type symbol substitution inside the monotype.
Does not need to create a new object, but must not
imperatively modify the monotype.
Parameters: map - a map from TypeSymbols to TypeSymbols a monotype with substitution performed |
tag | void tag(int variance)(Code) | | Simplification
|
|
|