java.lang.Object
org.htmlunit.corejs.javascript.JSScript
- All Implemented Interfaces:
Script,ScriptOrFn<JSScript>
Represents a script object built upon a
JSDescriptor. This class does not support the
Callable interface scripts do not support arguments or some other parts of a call
operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the script.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.ScriptOrFn
getDeclarationScope
-
Constructor Details
-
JSScript
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceScript- Specified by:
getDescriptorin interfaceScriptOrFn<JSScript>
-
getHomeObject
- Specified by:
getHomeObjectin interfaceScriptOrFn<JSScript>
-
exec
Description copied from interface:ScriptExecute the script.The script is executed in a particular runtime Context, which must be associated with the current thread. The script is executed relative to a scope--definitions and uses of global top-level variables and functions will access properties of the scope object. For compliant ECMA programs, the scope must be an object that has been initialized as a global object using
Context.initStandardObjects.
-