JSC – javascriptcoregtk-5.0 Reference Manual
Packages
javascriptcoregtk-5.0
JSC
Options
CheckSyntaxMode
CheckSyntaxResult
OptionType
TypedArrayType
ValuePropertyFlags
Class
Context
Exception
Value
VirtualMachine
WeakValue
ClassVTable
MAJOR_VERSION
MICRO_VERSION
MINOR_VERSION
ClassConstructorCb
ClassDeletePropertyFunction
ClassEnumeratePropertiesFunction
ClassGetPropertyCb
ClassGetPropertyFunction
ClassHasPropertyFunction
ClassMethodCb
ClassSetPropertyCb
ClassSetPropertyFunction
ExceptionHandler
OptionsFunc
get_major_version
get_micro_version
get_minor_version
JSC
Description:
Content:
Namespaces:
Options
Classes:
Class
-
A JSSClass represents a custom JavaScript class registered by the user in a
Context
.
Context
-
JSCContext represents a JavaScript execution context, where all operations take place and where the values will be associated.
Exception
-
JSCException represents a JavaScript exception.
Value
-
JSCValue represents a reference to a value in a
Context
.
VirtualMachine
-
JSCVirtualMachine represents a group of JSCContext<!-- -->s.
WeakValue
-
JSCWeakValue represents a weak reference to a value in a
Context
.
Structs:
ClassVTable
-
Virtual table for a JSCClass.
Enums:
CheckSyntaxMode
-
Enum values to specify a mode to check for syntax errors in
check_syntax
.
CheckSyntaxResult
-
Enum values to specify the result of
check_syntax
.
OptionType
-
Enum values for options types.
TypedArrayType
-
Possible types of the elements contained in a typed array.
ValuePropertyFlags
-
Flags used when defining properties with
object_define_property_data
and
object_define_property_accessor
.
Constants:
public
const
int
MAJOR_VERSION
Like
get_major_version
, but from the headers used at application compile time, rather than from the library linked against at application run time.
public
const
int
MICRO_VERSION
Like
get_micro_version
, but from the headers used at application compile time, rather than from the library linked against at application run time.
public
const
int
MINOR_VERSION
Like
get_minor_version
, but from the headers used at application compile time, rather than from the library linked against at application run time.
Delegates:
public
delegate
T
ClassConstructorCb
<
T
> (
GenericArray
<
Value
> values)
public
delegate
bool
ClassDeletePropertyFunction
(
Class
jsc_class,
Context
context,
void
* instance,
string
name)
The type of delete_property in
ClassVTable
.
public
delegate
string
[]?
ClassEnumeratePropertiesFunction
(
Class
jsc_class,
Context
context,
void
* instance)
The type of enumerate_properties in
ClassVTable
.
public
delegate
T
ClassGetPropertyCb
<
T
> (
Class
instance)
public
delegate
Value
?
ClassGetPropertyFunction
(
Class
jsc_class,
Context
context,
void
* instance,
string
name)
The type of get_property in
ClassVTable
.
public
delegate
bool
ClassHasPropertyFunction
(
Class
jsc_class,
Context
context,
void
* instance,
string
name)
The type of has_property in
ClassVTable
.
public
delegate
T
ClassMethodCb
<
T
> (
Class
instance,
GenericArray
<
Value
> values)
public
delegate
void
ClassSetPropertyCb
<
T
> (
Class
instance,
T
value)
The type used for callback functions in structure definitions and function signatures.
public
delegate
bool
ClassSetPropertyFunction
(
Class
jsc_class,
Context
context,
void
* instance,
string
name,
Value
value)
The type of set_property in
ClassVTable
.
public
delegate
void
ExceptionHandler
(
Context
context,
Exception
exception)
Function used to handle JavaScript exceptions in a
Context
.
public
delegate
bool
OptionsFunc
(
string
option,
OptionType
type,
string
? description)
Function used to iterate options.
Functions:
public
uint
get_major_version
()
Returns the major version number of the JavaScriptCore library.
public
uint
get_micro_version
()
Returns the micro version number of the JavaScriptCore library.
public
uint
get_minor_version
()
Returns the minor version number of the JavaScriptCore library.