Class/Object

org.scalajs.core.tools.javascript

ScalaJSClassEmitter

Related Docs: object ScalaJSClassEmitter | package javascript

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink
  2. new ScalaJSClassEmitter(semantics: Semantics)

    Permalink
    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)

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    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

    Permalink

    Generate classVar.prototype.name = value

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

    Permalink

    Generate classVar.prototype.name = value

  11. def genArrayInstanceTests(tree: LinkedClass): Tree

    Permalink
  12. def genClass(tree: LinkedClass): Tree

    Permalink
  13. def genClassDef(tree: LinkedClass): Tree

    Permalink

    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

    Permalink
  15. def genConstructor(tree: LinkedClass): Tree

    Permalink

    Generates the JS constructor for a class.

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

    Permalink
  17. def genDeclareModule(tree: LinkedClass): Tree

    Permalink
  18. def genDeclareTypeData(tree: LinkedClass): Tree

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

    Permalink

    Generates an ECMAScript 6 class for a linked class.

  20. def genExportedMembers(tree: LinkedClass): Tree

    Permalink
  21. def genInstanceTests(tree: LinkedClass): Tree

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

    Permalink

    Generates a method.

  23. def genModuleAccessor(tree: LinkedClass): Tree

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

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

    Permalink

    Generates a property.

  26. def genPropertyName(name: PropertyName): PropertyName

    Permalink
  27. def genSetTypeData(tree: LinkedClass): Tree

    Permalink
  28. def genStaticMembers(tree: LinkedClass): Tree

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

    Permalink

    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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped