Packages

abstract class Util extends AnyRef

In order to avoid endlessly passing around "packageName" and "iface" to utility functions we initialise a class with these values and allow all the methods to have access to them.

Self Type
Util
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Util(packageName: String, outputDir: File)

Type Members

  1. case class DamlScalaName(packageSuffixParts: Array[String], name: String) extends Product with Serializable

    A Scala class/object package suffix and name.

    A Scala class/object package suffix and name.

    packageSuffixParts

    the package suffix of the class. This will be appended to the packageNameElems to create the package for this Scala class/object

    name

    the name of the class/object

  2. abstract type Interface
  3. type RefType = TypeConNameOrPrimType
  4. abstract type TemplateInterface

Abstract Value Members

  1. abstract def genArgumentValueToGenType(genType: Type): scala.reflect.api.JavaUniverse.Tree

    Generate the function that converts an ArgumentValue into the given Type

    Generate the function that converts an ArgumentValue into the given Type

    genType

    the output type of the generated function

    returns

    the function that converts an ArgumentValue into the given Type

  2. abstract def genTypeToScalaType(genType: Type): scala.reflect.api.JavaUniverse.Tree

    This method is responsible for generating Scala reflection API "tree"s.

    This method is responsible for generating Scala reflection API "tree"s. It maps from Core package interface types to: a) the wrapper types defined in the typed-ledger-api project b) the classes that will be generated for the user defined types defined in the "typeDecls" field of the Package.PackageInterface value.

  3. abstract val iface: Interface
  4. abstract def mkDamlScalaName(codeGenDeclKind: CodeGenDeclKind, metadataAlias: QualifiedName): DamlScalaName

    Convert the metadataAlias into a DamlScalaName based on the codeGenDeclKind.

    Convert the metadataAlias into a DamlScalaName based on the codeGenDeclKind.

    > mkDamlScalaName(Contract, QualifiedName.assertFromString("foo.bar:Test"))
    DamlScalaName("foo.bar", "TestContract")
  5. abstract def paramRefAndGenTypeToArgumentValue(paramRef: scala.reflect.api.JavaUniverse.Tree, genType: Type): scala.reflect.api.JavaUniverse.Tree
  6. abstract def precacheVariance(interface: Interface): (Name) => ImmArraySeq[Variance]
    Attributes
    protected[this]
  7. abstract def templateAndTypeFiles(wp: WriteParams[TemplateInterface]): IterableOnce[FilePlan]
  8. abstract def templateCount(interface: Interface): Int

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(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. val outputDir: File
  16. val packageName: String
  17. val packageNameElems: Array[String]
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def variance(sdt: ScopedDataType[_]): Seq[Variance]
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped