Package net.hydromatic.morel.type
Class TypeShuttle
- java.lang.Object
-
- net.hydromatic.morel.type.TypeVisitor<Type>
-
- net.hydromatic.morel.type.TypeShuttle
-
public class TypeShuttle extends TypeVisitor<Type>
Visitor overTypeobjects that returns types.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeSystemtypeSystem
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeShuttle(TypeSystem typeSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Typevisit(ApplyType applyType)Visits anApplyType.Typevisit(DataType dataType)Visits aDataType.DummyTypevisit(DummyType dummyType)Visits aDummyType.FnTypevisit(FnType fnType)Visits aFnType.ForallTypevisit(ForallType forallType)Visits aForallType.ListTypevisit(ListType listType)Visits aListType.PrimitiveTypevisit(PrimitiveType primitiveType)Visits aPrimitiveType.RecordTypevisit(RecordType recordType)Visits aRecordType.TupleTypevisit(TupleType tupleType)Visits aTupleType.Typevisit(TypeVar typeVar)Visits aTypeVar.
-
-
-
Field Detail
-
typeSystem
private final TypeSystem typeSystem
-
-
Constructor Detail
-
TypeShuttle
protected TypeShuttle(TypeSystem typeSystem)
-
-
Method Detail
-
visit
public Type visit(TypeVar typeVar)
Description copied from class:TypeVisitorVisits aTypeVar.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public ListType visit(ListType listType)
Description copied from class:TypeVisitorVisits aListType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public FnType visit(FnType fnType)
Description copied from class:TypeVisitorVisits aFnType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public TupleType visit(TupleType tupleType)
Description copied from class:TypeVisitorVisits aTupleType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public RecordType visit(RecordType recordType)
Description copied from class:TypeVisitorVisits aRecordType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public Type visit(DataType dataType)
Description copied from class:TypeVisitorVisits aDataType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public PrimitiveType visit(PrimitiveType primitiveType)
Description copied from class:TypeVisitorVisits aPrimitiveType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public Type visit(ApplyType applyType)
Description copied from class:TypeVisitorVisits anApplyType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public ForallType visit(ForallType forallType)
Description copied from class:TypeVisitorVisits aForallType.- Overrides:
visitin classTypeVisitor<Type>
-
visit
public DummyType visit(DummyType dummyType)
Description copied from class:TypeVisitorVisits aDummyType.- Overrides:
visitin classTypeVisitor<Type>
-
-