trait
JSApp extends AnyRef
Abstract Value Members
-
abstract
def
main(): Unit
Concrete Value Members
-
final
def
!=(arg0: AnyRef): scala.Boolean
-
final
def
!=(arg0: scala.Any): scala.Boolean
-
final
def
##(): Int
-
def
+(other: Predef.String): java.lang.String
-
def
->[B](y: B): (JSApp, B)
-
final
def
==(arg0: AnyRef): scala.Boolean
-
final
def
==(arg0: scala.Any): scala.Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (JSApp) ⇒ scala.Boolean, msg: ⇒ scala.Any): JSApp
-
def
ensuring(cond: (JSApp) ⇒ scala.Boolean): JSApp
-
def
ensuring(cond: scala.Boolean, msg: ⇒ scala.Any): JSApp
-
def
ensuring(cond: scala.Boolean): JSApp
-
final
def
eq(arg0: AnyRef): scala.Boolean
-
def
equals(arg0: scala.Any): scala.Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: Predef.String): Predef.String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: scala.Boolean
-
final
def
ne(arg0: AnyRef): scala.Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): java.lang.String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (JSApp, B)
Shadowed Implicit Value Members
-
val
self: scala.Any
-
val
self: scala.Any
Inherited from scala.Any
Inherited by implicit conversion any2stringadd from
JSApp to StringAdd
Inherited by implicit conversion any2stringfmt from
JSApp to StringFormat
Inherited by implicit conversion any2ArrowAssoc from
JSApp to ArrowAssoc[JSApp]
Inherited by implicit conversion any2Ensuring from
JSApp to Ensuring[JSApp]
Base class for top-level, entry point main objects.
Objects inheriting from JSApp are automatically exported to JavaScript under their fully qualified name, and their main method as well.
JSApp is typically used to mark the entry point of a Scala.js application. As such, the sbt plugin also recognizes top-level objects extending JSApp. It allows to run their main method with
sbt run
, and can also generate a tiny JavaScript launcher snippet executing the main method of one specific JSApp object.