org.scalajs.core.tools.javascript

ScalaJSClassEmitter

Related Doc: package javascript

final class ScalaJSClassEmitter extends AnyRef

Defines methods to emit Scala.js classes to JavaScript code. The results are completely desugared.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaJSClassEmitter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaJSClassEmitter(semantics: Semantics, outputMode: OutputMode, globalInfo: GlobalInfo)

  2. new ScalaJSClassEmitter(semantics: Semantics)

    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.1) Use the constructor with an explicit output mode and additional GlobalInfo

  3. new ScalaJSClassEmitter(semantics: Semantics, globalInfo: GlobalInfo)

    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.2) Use the constructor with an explicit output mode

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def genAddToPrototype(className: String, name: PropertyName, value: Tree)(implicit pos: Position): Tree

    Generate classVar.prototype.name = value

  10. def genAddToPrototype(className: String, name: PropertyName, value: Tree)(implicit pos: Position): Tree

    Generate classVar.prototype.name = value

  11. def genArrayInstanceTests(tree: LinkedClass): Tree

  12. def genClass(tree: LinkedClass): Tree

  13. def genClassDef(tree: LinkedClass): Tree

    Desugar a Scala.js class into ECMAScript 5 constructs

    Desugar a Scala.js class into ECMAScript 5 constructs

    tree

    The IR tree to emit to raw JavaScript

  14. def genClassExports(tree: LinkedClass): Tree

  15. def genConstructor(tree: LinkedClass): Tree

    Generates the JS constructor for a class.

  16. def genConstructorExportDef(cd: LinkedClass, tree: ConstructorExportDef): Tree

  17. def genDeclareModule(tree: LinkedClass): Tree

  18. def genDeclareTypeData(tree: LinkedClass): Tree

  19. def genES6Class(tree: LinkedClass, members: List[Tree]): Tree

    Generates an ECMAScript 6 class for a linked class.

  20. def genExportedMembers(tree: LinkedClass): Tree

  21. def genInstanceTests(tree: LinkedClass): Tree

  22. def genMethod(className: String, method: MethodDef): Tree

    Generates a method.

  23. def genModuleAccessor(tree: LinkedClass): Tree

  24. def genModuleExportDef(cd: LinkedClass, tree: ModuleExportDef): Tree

  25. def genProperty(className: String, property: PropertyDef): Tree

    Generates a property.

  26. def genPropertyName(name: PropertyName): PropertyName

  27. def genSetTypeData(tree: LinkedClass): Tree

  28. def genStaticMembers(tree: LinkedClass): Tree

  29. def genStaticsES6Class(tree: LinkedClass, members: List[Tree]): Tree

    Generates an ECMAScript 6 class for a linked class containing only static methods.

    Generates an ECMAScript 6 class for a linked class containing only static methods.

    This is used for classes that do not have instances, as well as non-classes, such as interfaces. These linked classes must not have a parent nor a constructor.

    This method can only be used when emitting to Strong Mode. In ES6 non-strong (as well as ES5 modes), static methods are emitted as top-level functions instead.

  30. def genTypeData(tree: LinkedClass): Tree

  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped