Package net.hydromatic.morel.type
Class TypeVar
- java.lang.Object
-
- net.hydromatic.morel.type.TypeVar
-
-
Constructor Summary
Constructors Constructor Description TypeVar(int ordinal)
Creates a type variable with a given ordinal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(TypeVisitor<R> typeVisitor)
Type
copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)
Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.java.lang.String
description()
Description of the type, e.g.Op
op()
Type operator.java.lang.String
toString()
Returns a string for debugging; see alsodescription()
.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string for debugging; see alsodescription()
.- Overrides:
toString
in classjava.lang.Object
-
accept
public <R> R accept(TypeVisitor<R> typeVisitor)
-
description
public java.lang.String description()
Description copied from interface:Type
Description of the type, e.g. "int
", "int -> int
".- Specified by:
description
in interfaceType
-
copy
public Type copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)
Description copied from interface:Type
Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.
-
-