Package net.hydromatic.morel.type
Class ParameterizedType
- java.lang.Object
-
- net.hydromatic.morel.type.BaseType
-
- net.hydromatic.morel.type.ParameterizedType
-
- Direct Known Subclasses:
DataType
public abstract class ParameterizedType extends BaseType implements NamedType
Base class for types that accept type parameters.These types have not just names but also monikers. For example, the datatype named
optionhas instantiations whose monikers includeint option,(string * bool) option, and'b option.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static StringcomputeMoniker(String name, List<? extends Type> typeVars)Stringmoniker()Key of the type.Stringname()Name of the type.StringtoString()
-
-
-
Method Detail
-
moniker
public String moniker()
Description copied from interface:TypeKey of the type.Often the same as
Type.key(), but an exception is datatype. For example, datatype "'a option" has moniker and name "option" and description "NONE | SOME of 'a".Use the description if you are looking for a type that is structurally equivalent. Use the moniker to identify it when printing.
-
-