Packages

c

scalan.compilation.kotlin

KotlinFileCodegen

class KotlinFileCodegen[+IR <: ScalanEx] extends FileCodegen[IR]

Linear Supertypes
FileCodegen[IR], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KotlinFileCodegen
  2. FileCodegen
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KotlinFileCodegen(_scalan: IR, config: CodegenConfig)

Type Members

  1. sealed trait BaseNumericType extends AnyRef
    Definition Classes
    FileCodegen
  2. sealed trait SpecialNumericValue extends AnyRef
    Definition Classes
    FileCodegen
  3. trait SrcStringHelper extends AnyRef
    Definition Classes
    FileCodegen
  4. class SrcStringHelperBase extends SrcStringHelper
    Definition Classes
    FileCodegen
  5. class SrcStringHelperKotlin extends SrcStringHelperBase

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. val PairType: SSymName
  5. def applyFunction(f: IR.Sym, args: Seq[IR.Sym]): String
    Definition Classes
    FileCodegen
  6. def argList(f: IR.Sym, x: IR.Sym): List[IR.Sym]
    Definition Classes
    FileCodegen
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def binOp(op: IR.BinOp[_, _], x: IR.Ref[_], y: IR.Ref[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. lazy val codegenName: String
    Definition Classes
    FileCodegen
  11. val config: CodegenConfig
    Definition Classes
    FileCodegen
  12. implicit val context: AstContextBase
  13. implicit def ctxToWriter(implicit ctx: GenCtx): PrintWriter
  14. val devirtPipeline: DevirtPipeline
  15. def emit(string: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
    Definition Classes
    FileCodegen
  16. def emit(lines: Seq[String])(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
    Definition Classes
    FileCodegen
  17. def emitBody(body: List[SBodyItem])(implicit ctx: GenCtx, l: IndentLevel): Unit
  18. def emitBodyItem(x: SBodyItem)(implicit ctx: GenCtx, l: IndentLevel): Unit
  19. def emitClass(c: SClassDef)(implicit ctx: GenCtx, l: IndentLevel): Unit
  20. def emitFooter(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Nothing
    Definition Classes
    KotlinFileCodegen → FileCodegen
  21. def emitFunction(sym: IR.Sym, args: List[IR.Sym], returnValue: Option[IR.Ref[Any]], lambdaOrThunk: IR.AstGraph, f: (IR.Schedule) ⇒ IR.Schedule)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
    Definition Classes
    FileCodegen
  22. def emitHeader(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Nothing
    Definition Classes
    KotlinFileCodegen → FileCodegen
  23. def emitKernel(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Unit
    Definition Classes
    FileCodegen
  24. def emitLambdaFooter(lam: IR.Lambda[_, _], functionName: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
  25. def emitLambdaHeader(f: IR.Ref[_], lam: IR.Lambda[_, _], functionName: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
  26. def emitModule(name: SSymName)(implicit writer: PrintWriter, indentLevel: IndentLevel): Unit
  27. def emitNode(sym: IR.Ref[_], d: IR.Def[_], graph: IR.AstGraph)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
    Definition Classes
    KotlinFileCodegen → FileCodegen
  28. def emitSchedule(graph: IR.AstGraph, f: (IR.Schedule) ⇒ IR.Schedule)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
    Definition Classes
    FileCodegen
  29. def emitSourceFile(graph: IR.PGraph, functionName: String, sourcesDir: File): File
    Definition Classes
    FileCodegen
  30. def emitTrait(t: STraitDef)(implicit ctx: GenCtx, l: IndentLevel): Unit
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  33. def fileExtension: String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  34. def fileName(baseName: String): String
    Definition Classes
    FileCodegen
  35. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def functionFooter(): Option[String]
    Definition Classes
    KotlinFileCodegen → FileCodegen
  37. def functionHeader(sym: IR.Ref[_], args: List[IR.Ref[_]]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  38. def functionReturn(y: IR.Ref[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  39. def genClassArg(arg: SClassArg)(implicit ctx: GenCtx): String
  40. def genClassArgs(args: SClassArgs, implicitArgs: SClassArgs)(implicit ctx: GenCtx): List[List[String]]
  41. def genMethodArg(arg: SMethodArg)(implicit ctx: GenCtx): String
  42. def genMethodArgs(argSections: List[SMethodArgs])(implicit ctx: GenCtx): List[String]
  43. def genParents(ancestors: List[STypeApply])(implicit ctx: GenCtx): List[String]
  44. def genTpeExpr(tpeExpr: STpeExpr)(implicit ctx: GenCtx): String
  45. def genTuple2(first: String, second: String)(implicit ctx: GenCtx): String
  46. def genTuples(elems: List[STpeExpr])(implicit ctx: GenCtx): String
  47. def genTypeArg(arg: STpeArg)(implicit ctx: GenCtx): String
  48. def genTypeArgs(tpeArgs: STpeArgs)(implicit ctx: GenCtx): List[String]
  49. def genTypeSel(ref: String, name: String)(implicit ctx: GenCtx): String
  50. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  52. def id(s: IR.Sym): String
    Definition Classes
    FileCodegen
  53. val importBuilder: ImportBuilder
    Definition Classes
    FileCodegen
  54. def indent: String
    Attributes
    protected
    Definition Classes
    FileCodegen
  55. def indented(f: (IndentLevel) ⇒ Unit)(implicit indentLevel: IndentLevel): Unit
    Definition Classes
    FileCodegen
  56. def init(functionName: String, graph: IR.PGraph): Unit
    Definition Classes
    FileCodegen
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. def languageName: String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  59. def literal(value: Any): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  60. def mapTypeName(name: String)(implicit ctx: GenCtx): String
  61. def modules: Map[SSymName, SUnitDef]
  62. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  63. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  64. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  65. def reset(): Unit
    Definition Classes
    FileCodegen
  66. def rhs(d: IR.Def[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  67. val scalan: IR
    Definition Classes
    FileCodegen
  68. def simpleNode(sym: IR.Ref[_], d: IR.Def[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  69. def sourceFile(sourcesDir: File, functionName: String): File
    Definition Classes
    FileCodegen
  70. def specialNumericLiteral(x: SpecialNumericValue, t: BaseNumericType): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  71. implicit def srcStringHelper(sc: StringContext): SrcStringHelper
    Definition Classes
    KotlinFileCodegen → FileCodegen
  72. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  73. def tableLit(elems: Iterable[String]): String
  74. def toString(): String
    Definition Classes
    FileCodegen → AnyRef → Any
  75. def tpe(elem: IR.Elem[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  76. def transitiveClosureSet(modules: Seq[SUnitDef], deps: (SUnitDef) ⇒ Iterable[SUnitDef]): Set[SSymName]
  77. def translateMethodArg(arg: AnyRef): Option[String]
  78. def translateToSrc(arg: Any): String
    Attributes
    protected
    Definition Classes
    KotlinFileCodegen → FileCodegen
  79. def unOp(op: IR.UnOp[_, _], x: IR.Ref[_]): String
    Definition Classes
    KotlinFileCodegen → FileCodegen
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  83. object NaN extends SpecialNumericValue with Product with Serializable
    Definition Classes
    FileCodegen
  84. object NegInf extends SpecialNumericValue with Product with Serializable
    Definition Classes
    FileCodegen
  85. object PosInf extends SpecialNumericValue with Product with Serializable
    Definition Classes
    FileCodegen

Inherited from FileCodegen[IR]

Inherited from AnyRef

Inherited from Any

Ungrouped