Class DataType

    • Constructor Detail

      • DataType

        DataType​(String name,
                 Type.Key key,
                 List<? extends Type> parameterTypes,
                 SortedMap<String,​Type> typeConstructors)
        Creates a DataType.

        Called only from TypeSystem.dataTypes(List).

        If the typeSystem argument is specified, canonizes the types inside type-constructors. This also allows temporary types (necessary while creating self-referential data types) to be replaced with real DataType instances.

        During replacement, if a type matches placeholderType it is replaced with this. This allows cyclic graphs to be copied.