Package net.hydromatic.morel.type
Class ForallType
java.lang.Object
net.hydromatic.morel.type.BaseType
net.hydromatic.morel.type.ForallType
- All Implemented Interfaces:
Type
Universally quantified type.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(TypeVisitor<R> typeVisitor) copy(TypeSystem typeSystem, UnaryOperator<Type> transform) Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.key()Description of the type, e.g.substitute(TypeSystem typeSystem, List<? extends Type> types) Returns a copy of this type, specialized by substituting type parameters.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
isProgressive, moniker
-
Field Details
-
parameterCount
public final int parameterCount -
type
-
-
Constructor Details
-
ForallType
ForallType(int parameterCount, Type type)
-
-
Method Details
-
key
Description copied from interface:TypeDescription of the type, e.g. "int", "int -> int", "NONE | SOME of 'a". -
accept
-
copy
Description copied from interface:TypeCopies this type, applying a given transform to component types, and returning the original type if the component types are unchanged. -
substitute
Description copied from interface:TypeReturns a copy of this type, specialized by substituting type parameters.
-