Package org.gnome.webkit.jsc
package org.gnome.webkit.jsc
The JavaScript engine used in WebKit
The following native libraries are required and will be loaded: libjavascriptcoregtk-6.0.so
For namespace-global declarations, refer to the JavaScriptCore
class documentation.
This package is only available on linux.
JSCOptions
JavaScript options allow changing the behavior of the JavaScript engine. They affect the way the engine works, so the options must be set at the very beginning of the program execution, before any other JavaScript API call. Most of the options are only useful for testing and debugging. Only a few of them are documented; you can use the undocumented options at your own risk. (You can find the list of options in the WebKit source code).
The API allows to set and get any option using the types defined in JSCOptionType
.
You can also iterate all the available options using jsc_options_foreach() and
passing a JSCOptionsFunc
callback. If your application uses GOptionContext
to handle
command line arguments, you can easily integrate the JSCOptions by adding the
GOptionGroup
returned by jsc_options_get_option_group().
-
ClassDescriptionEnum values to specify a mode to check for syntax errors in jsc_context_check_syntax().Enum values to specify the result of jsc_context_check_syntax().A JSSClass represents a custom JavaScript class registered by the user in a
JSCContext
.Class.Builder<B extends Class.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theClassDeletePropertyFunction
callback.Functional interface declaration of theClassEnumeratePropertiesFunction
callback.Functional interface declaration of theClassGetPropertyFunction
callback.Functional interface declaration of theClassHasPropertyFunction
callback.Functional interface declaration of theClassSetPropertyFunction
callback.Virtual table for a JSCClass.JSCContext represents a JavaScript execution context, where all operations take place and where the values will be associated.Context.Builder<B extends Context.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.JSCException represents a JavaScript exception.Exception.Builder<B extends Exception.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theExceptionHandler
callback.Constants and functions that are declared in the global JavaScriptCore namespace.Functional interface declaration of theOptionsFunc
callback.Enum values for options types.Possible types of the elements contained in a typed array.JSCValue represents a reference to a value in aJSCContext
.Value.Builder<B extends Value.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Flags used when defining properties with jsc_value_object_define_property_data() and jsc_value_object_define_property_accessor().JSCVirtualMachine represents a group of JSCContext<!-- -->s.VirtualMachine.Builder<B extends VirtualMachine.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.JSCWeakValue represents a weak reference to a value in aJSCContext
.WeakValue.Builder<B extends WeakValue.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theClearedCallback
callback.