org

jscala

package jscala

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

Type Members

  1. class Attribute extends Node

  2. class Date extends AnyRef

  3. trait Doc extends Node with DocElemCommon

  4. trait DocElemCommon extends AnyRef

  5. class Element extends Node with DocElemCommon

  6. case class JArray[A](args: A*) extends Product with Serializable

  7. class JString extends AnyRef

  8. case class JsAccess(qualifier: JsExpr, key: JsExpr) extends JsExpr with Product with Serializable

  9. case class JsAnonFunDecl(params: List[String], body: JsStmt) extends JsExpr with Product with Serializable

  10. case class JsAnonObjDecl(fields: List[(String, JsExpr)]) extends JsExpr with Product with Serializable

  11. implicit class JsAnyOps extends AnyRef

  12. case class JsArray(values: List[JsExpr]) extends JsLit with Product with Serializable

  13. sealed trait JsAst extends AnyRef

  14. implicit class JsAstOps extends AnyRef

  15. trait JsBasis[C <: Context] extends MacroHelpers[C]

    Author: Alexander Nemish Date: 10/25/13 Time: 10:50 PM

  16. case class JsBinOp(operator: String, lhs: JsExpr, rhs: JsExpr) extends JsExpr with Product with Serializable

  17. case class JsBlock(stmts: List[JsStmt]) extends JsStmt with Product with Serializable

  18. case class JsBool(value: Boolean) extends JsLit with Product with Serializable

  19. case class JsCall(callee: JsExpr, params: List[JsExpr]) extends JsExpr with Product with Serializable

  20. case class JsCase(const: List[JsExpr], body: JsStmt) extends JsSwitchable with Product with Serializable

  21. case class JsCatch(ident: JsIdent, body: JsStmt) extends JsStmt with Product with Serializable

  22. case class JsDefault(body: JsStmt) extends JsSwitchable with Product with Serializable

  23. trait JsDynamic extends Dynamic

  24. sealed trait JsExpr extends JsAst

  25. case class JsExprStmt(jsExpr: JsExpr) extends JsStmt with Product with Serializable

  26. case class JsFor(init: List[JsStmt], check: JsExpr, update: List[JsStmt], body: JsStmt) extends JsStmt with Product with Serializable

  27. case class JsForIn(ident: JsIdent, coll: JsExpr, body: JsStmt) extends JsStmt with Product with Serializable

  28. case class JsFunDecl(ident: String, params: List[String], body: JsStmt) extends JsStmt with Product with Serializable

  29. case class JsIdent(ident: String) extends JsExpr with Product with Serializable

  30. case class JsIf(cond: JsExpr, then: JsStmt, else: Option[JsStmt]) extends JsStmt with Product with Serializable

  31. case class JsLazy[A <: JsAst](ast: () ⇒ A) extends JsExpr with Product with Serializable

  32. sealed trait JsLit extends JsExpr

  33. case class JsNew(ctor: JsCall) extends JsExpr with Product with Serializable

  34. case class JsNum(value: Double, isFloat: Boolean) extends JsLit with Product with Serializable

  35. case class JsObjDecl(name: String, constructor: JsFunDecl, fields: List[(String, JsExpr)]) extends JsStmt with Product with Serializable

  36. case class JsRaw(js: String) extends JsExpr with Product with Serializable

  37. case class JsReturn(jsExpr: JsExpr) extends JsStmt with Product with Serializable

  38. case class JsSelect(qualifier: JsExpr, name: String) extends JsExpr with Product with Serializable

  39. trait JsSerializer[A] extends AnyRef

  40. sealed trait JsStmt extends JsAst

  41. case class JsStmts(stmts: List[JsStmt]) extends JsStmt with Product with Serializable

  42. case class JsString(value: String) extends JsLit with Product with Serializable

  43. case class JsSwitch(expr: JsExpr, cases: List[JsCase], default: Option[JsDefault]) extends JsStmt with Product with Serializable

  44. sealed trait JsSwitchable extends JsStmt

  45. case class JsTernary(cond: JsExpr, then: JsExpr, else: JsExpr) extends JsExpr with Product with Serializable

  46. case class JsThrow(expr: JsExpr) extends JsExpr with Product with Serializable

  47. case class JsTry(body: JsStmt, cat: Option[JsCatch], fin: Option[JsStmt]) extends JsStmt with Product with Serializable

  48. case class JsUnOp(operator: String, operand: JsExpr) extends JsExpr with Product with Serializable

  49. case class JsVarDef(idents: List[(String, JsExpr)]) extends JsStmt with Product with Serializable

  50. case class JsWhile(cond: JsExpr, body: JsStmt) extends JsStmt with Product with Serializable

  51. class JsonConverter[C <: Context] extends JsBasis[C]

  52. trait MacroHelpers[C <: Context] extends AnyRef

    Author: Alexander Nemish Date: 10/25/13 Time: 10:35 PM

  53. trait Node extends JsDynamic

  54. class NodeList[+A <: Node] extends AnyRef

  55. class NodeMap extends AnyRef

  56. class RegExp extends AnyRef

  57. class ScalaToJsConverter[C <: Context] extends JsBasis[C]

  58. implicit class ToJsExpr[A] extends AnyRef

  59. implicit class implicitRichString extends AnyRef

Value Members

  1. val Infinity: Double

  2. object JavascriptPrinter

  3. object JsNull extends JsLit with Product with Serializable

  4. object JsUnit extends JsLit with Product with Serializable

  5. object Macros

  6. object Math

  7. val NaN: Double

  8. def ajax[A, B](input: A)(server: (A) ⇒ B)(callback: (B) ⇒ Unit): JsAst

    Macro that generates JavaScript AST representation of its argument

  9. implicit def arrJsSerializer[A](implicit ev: JsSerializer[A]): JsSerializer[Array[A]]

  10. implicit object boolJsSerializer extends JsSerializer[Boolean]

  11. implicit object byteJsSerializer extends JsSerializer[Byte]

  12. object console

  13. def decodeURI(uri: String): JString

  14. def decodeURIComponent(uri: String): JString

  15. object document extends Doc

  16. implicit object doubleJsSerializer extends JsSerializer[Double]

  17. def encodeURI(uri: String): JString

  18. def encodeURIComponent(uri: String): JString

  19. def escape(str: String): JString

  20. def eval(str: String): AnyRef

  21. implicit object floatJsSerializer extends JsSerializer[Float]

  22. def forIn[A, B](obj: AnyRef)(f: (String) ⇒ Unit): Nothing

    Scala/JavaScript implementation of for.

    Scala/JavaScript implementation of for..in

    val obj = new { val a = 1 }
    forIn(obj)(ch => print(ch))

    translates to var obj = {"a": 1}; for (var ch in obj) print(ch);

    Note

    Doesn't work in Scala!

  23. def forIn[A, B](map: Map[A, B])(f: (A) ⇒ Unit): Unit

    Scala/JavaScript implementation of for.

    Scala/JavaScript implementation of for..in

    val coll = Map("a" -> 1, "b" -> 2)
    forIn(coll)(ch => print(ch))

    translates to var coll = {"a": 1, "b": 2}; for (var ch in coll) print(ch);

  24. def forIn[A](coll: Seq[A])(f: (Int) ⇒ Unit): Unit

    Scala/JavaScript implementation of for.

    Scala/JavaScript implementation of for..in

    val coll = Seq("a", "b")
    forIn(coll)(ch => print(ch))

    translates to var coll = ["a", "b"]; for (var ch in coll) print(ch);

  25. def fromJson[A](s: String): A

    Annotations
    @macroImpl( ... )
  26. implicit def funcJsSerializer[A](implicit ev: JsSerializer[A]): JsSerializer[() ⇒ A]

  27. object history

  28. implicit def implicitArray2JArray[A](s: Array[A]): JArray[A]

  29. implicit def implicitJArray2Array[A](s: JArray[A]): Array[A]

  30. implicit def implicitJArray2Seq[A](s: JArray[A]): Seq[A]

  31. implicit def implicitJString2String(s: JString): String

  32. implicit def implicitSeq2JArray[A](s: Seq[A]): JArray[A]

  33. implicit def implicitString2JString(s: String): JString

  34. def include(js: String): String

  35. def inject[A](a: A)(implicit jss: JsSerializer[A]): A

    Injects a value into generated JavaScript using JsSerializer

  36. def inject(a: JsAst): Nothing

  37. implicit object intJsSerializer extends JsSerializer[Int]

  38. def isFinite(x: Any): Boolean

  39. def isNaN(x: Any): Boolean

  40. def javascript(expr: Any): JsAst

    Macro that generates JavaScript AST representation of its argument

    Macro that generates JavaScript AST representation of its argument

    Annotations
    @macroImpl( ... )
  41. def javascriptDebug(expr: Any): JsAst

    Annotations
    @macroImpl( ... )
  42. def javascriptString(expr: Any): String

    Macro that generates JavaScript String representation of its argument

    Macro that generates JavaScript String representation of its argument

    Annotations
    @macroImpl( ... )
  43. object location

  44. implicit object longJsSerializer extends JsSerializer[Long]

  45. implicit object mapJsSerializer extends JsSerializer[Map[String, JsExpr]]

  46. object navigator

  47. def parseFloat(str: String): Double

  48. def parseInt(str: String, base: Int = 10): Int

  49. def print(x: Any): Unit

  50. object screen

  51. implicit object seqJsSerializer extends JsSerializer[Seq[JsExpr]]

  52. implicit object shortJsSerializer extends JsSerializer[Short]

  53. implicit object stringJsSerializer extends JsSerializer[String]

  54. def toJson[A](ref: A): JsExpr

    Annotations
    @macroImpl( ... )
  55. def typeof(x: Any): String

  56. val undefined: AnyRef

  57. def unescape(str: String): JString

  58. def varDef(ident: String, init: JsExpr = JsUnit): JsVarDef

    JavaScript variable definition.

    JavaScript variable definition.

    In JavaScript you can define multiple variable in single statement:

    var a=1, b, c="string"

    JsVarDef case class represents above statements as List of ident -> init tuples. varDef creates a single variable definition with optional initialization:

    varDef("a")

    translates to JsVarDef(List("a" -> JsUnit)) and

    varDef("a", "string".toJs)

    translates to JsVarDef(List("a" -> JsString("string"))

  59. object window extends JsDynamic

Inherited from AnyRef

Inherited from Any

Ungrouped