sealed abstract class Type extends Product with Serializable

Type is an intermediate form from which record/variant objects or type aliases are generated from.

You might be wondering, why so many data structures for types We've got Core.Type and Package.ParamType, now why do we need yet another?

The reason we have chosen to use the Core.Type in the typeDecls field of com.daml.core.Package.PackageInterface is because other programs besides the DAML Scala code generator inspect this data structure. (e.g. Integration Adapter as of 07 Sep 2017).

The Package.ParamType structure represents all types that are valid parameters in app-side contract templates.

The Type structure defined in this module defines all types that can validly have a Scala data structure generated from them. This is slightly more sophisticated data structure than Package.ParamType since it contains type variables which, when present, are used to generate polymorphic Scala data structures.

Only a subset of Core.Type values can be translated to Type values. The method com.daml.core.Package#validTypeSynonymRHS returns

true

when a Core.Type value can be translated.

true }}}

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Type
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fold[Z](typeCon: (TypeCon) ⇒ Z, typePrim: (TypePrim) ⇒ Z, typeVar: (TypeVar) ⇒ Z, typeNum: (TypeNumeric) ⇒ Z): Z

    Handle the possible Types without missing one or casting.

    Handle the possible Types without missing one or casting. Meant to be used from Java.

    Note

    Normally Type's recursive occurrences would be replaced with Z, but we have not done that for closer analogy to pattern matching.

  10. def foldMapConsPrims[Z](f: (TypeConNameOrPrimType) ⇒ Z)(implicit arg0: Monoid[Z]): Z

    Fold over the TypeConNameOrPrimTypes therein.

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def mapTypeVars(f: (TypeVar) ⇒ Type): Type

    Map all type variables that occur anywhere within this type

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def productIterator: Iterator[Any]
    Definition Classes
    Product
  19. def productPrefix: String
    Definition Classes
    Product
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped