Packages

class Script extends Object

Contextify Script

Annotations
@JSType() @native() @JSImport("vm", "Script")
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Script
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Script(code: String)
  2. new Script(code: String, filename: String)
  3. new Script(code: String, options: ScriptOptions)
  4. new Script()
    Attributes
    protected

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def createCachedData(): Buffer
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  19. def runInContext(contextifiedSandbox: Context): Any
  20. def runInContext(contextifiedSandbox: Context, options: RunInContextOptions): Any

    Runs the compiled code contained by the vm.Script object within the given contextifiedSandbox and returns the result.

    Runs the compiled code contained by the vm.Script object within the given contextifiedSandbox and returns the result. Running code does not have access to local scope.

    contextifiedSandbox

    A contextified object as returned by the vm.createContext() method.

    options

    the optional options

    Example:
    1. script.runInContext(contextifiedSandbox[, options])

  21. def runInNewContext(): Any
  22. def runInNewContext(sandbox: Object): Any
  23. def runInNewContext(sandbox: Object, options: RunInNewContextOptions): Any

    First contextifies the given sandbox, runs the compiled code contained by the vm.Script object within the created sandbox, and returns the result.

    First contextifies the given sandbox, runs the compiled code contained by the vm.Script object within the created sandbox, and returns the result. Running code does not have access to local scope.

    sandbox

    An object that will be contextified. If undefined, a new object will be created.

    options

    the optional options

    Example:
    1. script.runInNewContext([sandbox][, options])

  24. def runInThisContext(): Script
  25. def runInThisContext(options: RunInContextOptions): Script

    Runs the compiled code contained by the vm.Script within the context of the current global object.

    Runs the compiled code contained by the vm.Script within the context of the current global object. Running code does not have access to local scope, but does have access to the current global object.

    options

    the optional options

    Example:
    1. script.runInThisContext([options])

  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toLocaleString(): String
    Definition Classes
    Object
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def valueOf(): Any
    Definition Classes
    Object
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped