Package net.hydromatic.morel.type
Class ParameterizedType
java.lang.Object
net.hydromatic.morel.type.BaseType
net.hydromatic.morel.type.ParameterizedType
- Direct Known Subclasses:
DataType
Base class for types that accept type parameters.
These types have not just names but also monikers. For example,
the datatype named option has instantiations whose monikers
include int option, (string * bool) option, and
'b option.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParameterizedType(Op op, String name, String moniker, int parameterCount) Creates a ParameterizedType. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.hydromatic.morel.type.Type
accept, copy, isProgressive, key, op, substitute
-
Field Details
-
name
-
moniker
-
parameterTypes
-
-
Constructor Details
-
ParameterizedType
Creates a ParameterizedType.
-
-
Method Details
-
name
Description copied from interface:NamedTypeName of the type. -
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.
-
toString
-
computeMoniker
-