Package

org

jscala

Permalink

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

Type Members

  1. class Attribute extends Node

    Permalink
  2. class Date extends AnyRef

    Permalink
  3. trait Doc extends Node with DocElemCommon

    Permalink
  4. trait DocElemCommon extends AnyRef

    Permalink
  5. class Element extends Node with DocElemCommon

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

    Permalink
  7. class JString extends AnyRef

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

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

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

    Permalink
  11. implicit class JsAnyOps extends AnyRef

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

    Permalink
  13. sealed trait JsAst extends AnyRef

    Permalink
  14. implicit class JsAstOps extends AnyRef

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

    Permalink

    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

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

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

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

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

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

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

    Permalink
  23. trait JsDynamic extends Dynamic

    Permalink
  24. sealed trait JsExpr extends JsStmt

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

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

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

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

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

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

    Permalink
  31. sealed trait JsLit extends JsExpr

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

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

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

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

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

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

    Permalink
  38. trait JsSerializer[-A] extends AnyRef

    Permalink
  39. sealed trait JsStmt extends JsAst

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

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

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

    Permalink
  43. sealed trait JsSwitchable extends JsStmt

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

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

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

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

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

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

    Permalink
  50. class JsonConverter[C <: Context] extends JsBasis[C]

    Permalink

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

    Permalink

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

  52. trait Node extends JsDynamic

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

    Permalink
  54. class NodeMap extends AnyRef

    Permalink
  55. class RegExp extends AnyRef

    Permalink
  56. class ScalaToJsConverter[C <: Context] extends JsBasis[C]

    Permalink
  57. implicit class ToJsExpr[A] extends AnyRef

    Permalink
  58. implicit class implicitRichString extends AnyRef

    Permalink

Value Members

  1. val Infinity: Double

    Permalink
  2. object JavascriptPrinter

    Permalink
  3. object JsNull extends JsLit with Product with Serializable

    Permalink
  4. object JsUnit extends JsLit with Product with Serializable

    Permalink
  5. object Macros

    Permalink
  6. object Math

    Permalink
  7. val NaN: Double

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

    Permalink

    Macro that generates JavaScript AST representation of its argument

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

    Permalink
  10. implicit object boolJsSerializer extends JsSerializer[Boolean]

    Permalink
  11. implicit object byteJsSerializer extends JsSerializer[Byte]

    Permalink
  12. object console

    Permalink
  13. def decodeURI(uri: String): JString

    Permalink
  14. def decodeURIComponent(uri: String): JString

    Permalink
  15. object document extends Doc

    Permalink
  16. implicit object doubleJsSerializer extends JsSerializer[Double]

    Permalink
  17. def encodeURI(uri: String): JString

    Permalink
  18. def encodeURIComponent(uri: String): JString

    Permalink
  19. def escape(str: String): JString

    Permalink
  20. def eval(str: String): AnyRef

    Permalink
  21. implicit object floatJsSerializer extends JsSerializer[Float]

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

    Permalink

    Scala/JavaScript implementation of for..in

    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

    Permalink

    Scala/JavaScript implementation of for..in

    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

    Permalink

    Scala/JavaScript implementation of for..in

    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. macro def fromJson[A](s: String): A

    Permalink
  26. implicit def funcJsSerializer[A](implicit ev: JsSerializer[A]): JsSerializer[() ⇒ A]

    Permalink
  27. object history

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

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

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

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

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

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

    Permalink
  34. def include(a: JsAst): Nothing

    Permalink
  35. def include(js: String): String

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

    Permalink

    Injects a value into generated JavaScript using JsSerializer

  37. implicit object intJsSerializer extends JsSerializer[Int]

    Permalink
  38. def isFinite(x: Any): Boolean

    Permalink
  39. def isNaN(x: Any): Boolean

    Permalink
  40. macro def javascript(expr: Any): JsAst

    Permalink

    Macro that generates JavaScript AST representation of its argument

  41. macro def javascriptDebug(expr: Any): JsAst

    Permalink
  42. macro def javascriptString(expr: Any): String

    Permalink

    Macro that generates JavaScript String representation of its argument

  43. implicit object jsExprJsSerializer extends JsSerializer[JsExpr]

    Permalink
  44. object location

    Permalink
  45. implicit object longJsSerializer extends JsSerializer[Long]

    Permalink
  46. implicit def mapJsSerializer[A](implicit ev: JsSerializer[A]): JsSerializer[Map[String, A]]

    Permalink
  47. object navigator

    Permalink
  48. def parseFloat(str: String): Double

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

    Permalink
  50. def print(x: Any): Unit

    Permalink
  51. object screen

    Permalink
  52. implicit def seqJsSerializer[A](implicit ev: JsSerializer[A]): JsSerializer[Seq[A]]

    Permalink
  53. implicit object shortJsSerializer extends JsSerializer[Short]

    Permalink
  54. implicit object stringJsSerializer extends JsSerializer[String]

    Permalink
  55. macro def toJson[A](ref: A): JsExpr

    Permalink
  56. def typeof(x: Any): String

    Permalink
  57. val undefined: AnyRef

    Permalink
  58. def unescape(str: String): JString

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

    Permalink

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

  60. object window extends JsDynamic

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped