Packages

final case class LFUtil(packageName: String, iface: EnvironmentSignature, outputDir: File) extends Product with Serializable

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.

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

Instance Constructors

  1. new LFUtil(packageName: String, iface: EnvironmentSignature, 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

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() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def genArgsWithTypes(fields: Seq[FieldWithType]): Seq[scala.reflect.api.JavaUniverse.Typed]
  8. def genArgumentValueToGenType(genType: Type): scala.reflect.api.JavaUniverse.Tree
  9. def genForComprehensionBodyOfReaderMethod(params: Seq[FieldWithType], paramIds: Iterable[scala.reflect.api.JavaUniverse.Ident], nameOfRecord: String, inner: scala.reflect.api.JavaUniverse.Tree): scala.reflect.api.JavaUniverse.Tree

    Produces the for-comprehension body of a "reader" method.

    Produces the for-comprehension body of a "reader" method.

    Example: Take two variables "a: Int64", "b: Numeric", a nameOfRecord of "m" This will produce:

    if (m.fields == 2) { for { RecordField("" | "a", Some(z0)) = m.fields(0) a <- Value.decode[Int64](zv0) RecordField("" | "b", Some(zv1)) = m.fields(1) b <- Value.decode[Numeric](zv1) } yield (...) // what the user passes in } else { None }

    Note that we index and pattern match rather than pattern matching on Seq because unapply patterns are limited to 22 arguments, and we might have records with more than 22 arguments.

    Annotations
    @throws(scala.this.throws.<init>$default$1[com.daml.lf.codegen.exception.UnsupportedDamlTypeException])
  10. def genTemplateChoiceMethods(templateType: scala.reflect.api.JavaUniverse.Ident, idType: scala.reflect.api.JavaUniverse.TypeName, choiceId: ChoiceName, choiceInterface: FWT): Seq[scala.reflect.api.JavaUniverse.Tree]
  11. 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.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. val iface: EnvironmentSignature
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def mkDamlScalaName(metadataAlias: QualifiedName): DamlScalaName
  16. def mkDamlScalaNameFromDirsAndName(nameSpace: Array[String], name: String): DamlScalaName
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. val outputDir: File
  21. val packageName: String
  22. def paramRefAndGenTypeToArgumentValue(paramRef: scala.reflect.api.JavaUniverse.Tree): scala.reflect.api.JavaUniverse.Tree
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def templateAndTypeFiles(wp: WriteParams): IterableOnce[FilePlan]
  26. def toNamedArgumentsMap(params: List[FieldWithType], path: Option[scala.reflect.api.JavaUniverse.Tree]): scala.reflect.api.JavaUniverse.Tree
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped