Class FnType

java.lang.Object
net.hydromatic.morel.type.BaseType
net.hydromatic.morel.type.FnType
All Implemented Interfaces:
Type

public class FnType extends BaseType
The type of a function value.
  • Field Details

    • paramType

      public final Type paramType
    • resultType

      public final Type resultType
  • Constructor Details

    • FnType

      FnType(Type paramType, Type resultType)
  • Method Details

    • key

      public Type.Key key()
      Description copied from interface: Type
      Description of the type, e.g. "int", "int -> int", "NONE | SOME of 'a".
    • accept

      public <R> R accept(TypeVisitor<R> typeVisitor)
    • copy

      public FnType copy(TypeSystem typeSystem, UnaryOperator<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.