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
- Annotations
- @SuppressWarnings()
- Alphabetic
- By Inheritance
- Util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Util(packageName: String, outputDir: File)
Type Members
-
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
- abstract type Interface
- type RefType = TypeConNameOrPrimType
- abstract type TemplateInterface
Abstract Value Members
-
abstract
def
genArgumentValueToGenType(genType: Type): scala.reflect.api.JavaUniverse.Tree
Generate the function that converts an
ArgumentValue
into the givenType
Generate the function that converts an
ArgumentValue
into the givenType
- genType
the output type of the generated function
- returns
the function that converts an
ArgumentValue
into the givenType
-
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.
- abstract val iface: Interface
-
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")
- abstract def paramRefAndGenTypeToArgumentValue(paramRef: scala.reflect.api.JavaUniverse.Tree, genType: Type): scala.reflect.api.JavaUniverse.Tree
- abstract def templateAndTypeFiles(wp: WriteParams[TemplateInterface]): TraversableOnce[FilePlan]
- abstract def templateCount(interface: Interface): Int
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputDir: File
- val packageName: String
- val packageNameElems: Array[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()