Package-level declarations

Types

Link copied to clipboard

Enum values to specify a mode to check for syntax errors in jsc_context_check_syntax().

Link copied to clipboard

Enum values to specify the result of jsc_context_check_syntax().

Link copied to clipboard
class Class(pointer: <Error class: unknown class><<Error class: unknown class>>)

A JSSClass represents a custom JavaScript class registered by the user in a #JSCContext. It allows to create new JavaScripts objects whose instances are created by the user using this API. It's possible to add constructors, properties and methods for a JSSClass by providing #GCallbacks to implement them.

Link copied to clipboard
typealias ClassDeletePropertyFunction = (jscClass: Class, context: Context, <Error class: unknown class>?, name: String) -> Boolean

The type of delete_property in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

Link copied to clipboard
typealias ClassEnumeratePropertiesFunction = (jscClass: Class, context: Context, <Error class: unknown class>?) -> List<String>?

The type of enumerate_properties in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

Link copied to clipboard
typealias ClassGetPropertyFunction = (jscClass: Class, context: Context, <Error class: unknown class>?, name: String) -> Value?

The type of get_property in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

Link copied to clipboard
typealias ClassHasPropertyFunction = (jscClass: Class, context: Context, <Error class: unknown class>?, name: String) -> Boolean

The type of has_property in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

Link copied to clipboard
typealias ClassSetPropertyFunction = (jscClass: Class, context: Context, <Error class: unknown class>?, name: String, value: Value) -> Boolean

The type of set_property in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

Link copied to clipboard
class ClassVTable(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Virtual table for a JSCClass. This can be optionally used when registering a #JSCClass in a #JSCContext to provide a custom implementation for the class. All virtual functions are optional and can be set to null to fallback to the default implementation.

Link copied to clipboard
class Context(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCContext represents a JavaScript execution context, where all operations take place and where the values will be associated.

Link copied to clipboard
class Exception(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCException represents a JavaScript exception.

Link copied to clipboard
typealias ExceptionHandler = (context: Context, exception: Exception) -> Unit

Function used to handle JavaScript exceptions in a #JSCContext.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias OptionsFunc = (option: String, type: OptionType, description: String?) -> Boolean

Function used to iterate options.

Link copied to clipboard

Enum values for options types.

Link copied to clipboard

Possible types of the elements contained in a typed array.

Link copied to clipboard
class Value(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.

Link copied to clipboard
class ValuePropertyFlags(val mask: <Error class: unknown class>)

Flags used when defining properties with jsc_value_object_define_property_data() and jsc_value_object_define_property_accessor().

Link copied to clipboard
class VirtualMachine(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCVirtualMachine represents a group of JSCContexts. It allows concurrent JavaScript execution by creating a different instance of JSCVirtualMachine in each thread.

Link copied to clipboard
class WeakValue(pointer: <Error class: unknown class><<Error class: unknown class>>)

JSCWeakValue represents a weak reference to a value in a #JSCContext. It can be used to keep a reference to a JavaScript value without protecting it from being garbage collected and without referencing the #JSCContext either.

Properties

Link copied to clipboard
val ClassDeletePropertyFunctionFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>?, <Error class: unknown class><<Error class: unknown class>>) -> <Error class: unknown class>>>
Link copied to clipboard
val ClassEnumeratePropertiesFunctionFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>?) -> <Error class: unknown class><<Error class: unknown class><<Error class: unknown class><<Error class: unknown class>>>>?>>
Link copied to clipboard
val ClassGetPropertyFunctionFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>?, <Error class: unknown class><<Error class: unknown class>>) -> <Error class: unknown class><<Error class: unknown class>>?>>
Link copied to clipboard
val ClassHasPropertyFunctionFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>?, <Error class: unknown class><<Error class: unknown class>>) -> <Error class: unknown class>>>
Link copied to clipboard
val ClassSetPropertyFunctionFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>?, <Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>) -> <Error class: unknown class>>>
Link copied to clipboard
val ExceptionHandlerFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class><<Error class: unknown class>>) -> Unit>>
Link copied to clipboard
val OptionsFuncFunc: <Error class: unknown class><<Error class: unknown class><(<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>, <Error class: unknown class><<Error class: unknown class>>?) -> <Error class: unknown class>>>