Uses of Class
net.hydromatic.morel.ast.Ast.Type
-
Packages that use Ast.Type Package Description net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated. -
-
Uses of Ast.Type in net.hydromatic.morel.ast
Subclasses of Ast.Type in net.hydromatic.morel.ast Modifier and Type Class Description static classAst.CompositeTypeNot really a type, just a way for the parser to represent the type arguments to a type constructor.static classAst.FunctionTypeFunction type.static classAst.NamedTypeParse tree for a named type (e.g.static classAst.RecordTypeParse tree node of a record type.static classAst.TupleTypeTuple type.static classAst.TyVarParse tree node of a type variable.Fields in net.hydromatic.morel.ast declared as Ast.Type Modifier and Type Field Description Ast.TypeAst.FunctionType. paramTypeAst.TypeAst.FunctionType. resultTypeAst.TypeAst.AnnotatedExp. typeAst.TypeAst.AnnotatedPat. typeAst.TypeAst.TyCon. typeFields in net.hydromatic.morel.ast with type parameters of type Ast.Type Modifier and Type Field Description java.util.Map<java.lang.String,Ast.Type>Ast.RecordType. fieldTypesjava.util.List<Ast.Type>Ast.CompositeType. typesjava.util.List<Ast.Type>Ast.NamedType. typesjava.util.List<Ast.Type>Ast.TupleType. typesMethods in net.hydromatic.morel.ast that return Ast.Type Modifier and Type Method Description Ast.TypeAst.CompositeType. accept(Shuttle shuttle)Ast.TypeAst.FunctionType. accept(Shuttle shuttle)Ast.TypeAst.NamedType. accept(Shuttle shuttle)Ast.TypeAst.TupleType. accept(Shuttle shuttle)abstract Ast.TypeAst.Type. accept(Shuttle shuttle)Ast.TypeAstBuilder. compositeType(Pos pos, java.lang.Iterable<Ast.Type> types)Ast.TypeAstBuilder. foldFunctionType(java.util.List<Ast.Type> types)Ast.TypeAstBuilder. namedType(Pos pos, java.lang.Iterable<? extends Ast.Type> types, java.lang.String name)Ast.TypeAstBuilder. tupleType(Pos pos, java.lang.Iterable<Ast.Type> types)Ast.TypeShuttle. visit(Ast.CompositeType compositeType)Ast.TypeShuttle. visit(Ast.FunctionType functionType)protected Ast.TypeShuttle. visit(Ast.NamedType namedType)Ast.TypeShuttle. visit(Ast.TupleType tupleType)Methods in net.hydromatic.morel.ast with parameters of type Ast.Type Modifier and Type Method Description Ast.ExpAstBuilder. annotatedExp(Pos pos, Ast.Type type, Ast.Exp expression)Ast.PatAstBuilder. annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Ast.FunctionTypeAstBuilder. functionType(Pos pos, Ast.Type fromType, Ast.Type toType)Ast.TyConAstBuilder. typeConstructor(Pos pos, Ast.Id id, Ast.Type type)Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.Type Modifier and Type Method Description Ast.TypeAstBuilder. compositeType(Pos pos, java.lang.Iterable<Ast.Type> types)Ast.TypeAstBuilder. foldFunctionType(java.util.List<Ast.Type> types)Ast.TypeAstBuilder. namedType(Pos pos, java.lang.Iterable<? extends Ast.Type> types, java.lang.String name)Ast.RecordTypeAstBuilder. recordType(Pos pos, java.util.Map<java.lang.String,Ast.Type> fieldTypes)Ast.TypeAstBuilder. tupleType(Pos pos, java.lang.Iterable<Ast.Type> types)Constructors in net.hydromatic.morel.ast with parameters of type Ast.Type Constructor Description AnnotatedExp(Pos pos, Ast.Type type, Ast.Exp e)Creates a type annotation.AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)FunctionType(Pos pos, Ast.Type paramType, Ast.Type resultType)TyCon(Pos pos, Ast.Id id, Ast.Type type)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.Type Constructor Description CompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)NamedType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types, java.lang.String name)Creates a type.RecordType(Pos pos, com.google.common.collect.ImmutableMap<java.lang.String,Ast.Type> fieldTypes)Creates a TyVar.TupleType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types) -
Uses of Ast.Type in net.hydromatic.morel.compile
Methods in net.hydromatic.morel.compile with parameters of type Ast.Type Modifier and Type Method Description private TypeTypeResolver. toType(Ast.Type type)Method parameters in net.hydromatic.morel.compile with type arguments of type Ast.Type Modifier and Type Method Description private java.util.List<Type>TypeResolver. toTypes(java.util.List<Ast.Type> typeList)
-