ScalaCodegen

com.digitalasset.transcode.codegen.scala.ScalaCodegen
See theScalaCodegen companion class
object ScalaCodegen extends ScalaCodegen

Attributes

Companion
class
Graph
Supertypes
class ScalaCodegen
trait CodegenVisitor
trait SchemaVisitor
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

Attributes

Inherited from:
ScalaCodegen
type Context = Context

Attributes

Inherited from:
ScalaCodegen
final type Result = Context ?=> Map[RelPath, String]

Final result type

Final result type

Attributes

Inherited from:
CodegenVisitor
final type Type = Context ?=> CodeUnit

Visitor handler type for various DAML schema cases.

Visitor handler type for various DAML schema cases.

Attributes

Inherited from:
CodegenVisitor

Value members

Inherited methods

def application(value: Type, typeParams: Seq[TypeVarName], args: Seq[Type]): Type

Type Application

Type Application

Attributes

Inherited from:
ScalaCodegen
def bool: Type

Boolean

Boolean

Attributes

Inherited from:
ScalaCodegen
def collect(entities: Seq[Template[Type]]): Result

Attributes

Inherited from:
ScalaCodegen
def constructor(id: Identifier, typeParams: Seq[TypeVarName], value: => Type): Type

Wrap type into addressable DataType

Wrap type into addressable DataType

Attributes

Inherited from:
ScalaCodegen
def contractId(template: Type): Type

Contract ID, parametrized with the processor for corresponding template

Contract ID, parametrized with the processor for corresponding template

Attributes

Inherited from:
ScalaCodegen
override def createContext: Context

Attributes

Definition Classes
ScalaCodegen -> CodegenVisitor
Inherited from:
ScalaCodegen
final protected def ctx(using ctx: Context): Context

Attributes

Inherited from:
CodegenVisitor
def date: Type

Date

Date

Attributes

Inherited from:
ScalaCodegen
def enumeration(cases: Seq[EnumConName]): Type

ADT, Sum type - special case, where there are only named constructors without arguments

ADT, Sum type - special case, where there are only named constructors without arguments

Attributes

Inherited from:
ScalaCodegen
def genMap(key: Type, value: Type): Type

Map with keys and values of any type

Map with keys and values of any type

Attributes

Inherited from:
ScalaCodegen
def int64: Type

8-byte Integer

8-byte Integer

Attributes

Inherited from:
ScalaCodegen
def list(elem: Type): Type

Sequence of elements

Sequence of elements

Attributes

Inherited from:
ScalaCodegen
def numeric(scale: Int): Type

Numeric with scale

Numeric with scale

Attributes

Inherited from:
ScalaCodegen
def optional(elem: Type): Type

Optional element

Optional element

Attributes

Inherited from:
ScalaCodegen
def party: Type

Party

Party

Attributes

Inherited from:
ScalaCodegen
def record(fields: Seq[(FieldName, Type)]): Type

ADT, Product type

ADT, Product type

Attributes

Inherited from:
ScalaCodegen
def text: Type

Text

Text

Attributes

Inherited from:
ScalaCodegen
def textMap(value: Type): Type

Map with keys of String/Text type

Map with keys of String/Text type

Attributes

Inherited from:
ScalaCodegen
def timestamp: Type

Timestamp

Timestamp

Attributes

Inherited from:
ScalaCodegen
def unit: Type

Unit

Unit

Attributes

Inherited from:
ScalaCodegen
def variable(name: TypeVarName): Type

Type Variable.

Type Variable.

Codecs will use substitution, effectively replacing type variables with concrete types, while code generators will use type variable names.

Attributes

Inherited from:
ScalaCodegen
def variant(cases: Seq[(VariantConName, Type)]): Type

ADT, Sum type

ADT, Sum type

Attributes

Inherited from:
ScalaCodegen