org.rococoa.cocoa.javascriptcore
Interface JavaScriptCoreLibrary
- All Superinterfaces:
- Library
public interface JavaScriptCoreLibrary
- extends Library
JNA Wrapper for library JavaScriptCore
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
INSTANCE
static final JavaScriptCoreLibrary INSTANCE
JSEvaluateScript
JavaScriptCoreLibrary.OpaqueJSValue JSEvaluateScript(JavaScriptCoreLibrary.OpaqueJSContext ctx,
JavaScriptCoreLibrary.OpaqueJSString script,
JavaScriptCoreLibrary.OpaqueJSValue thisObject,
JavaScriptCoreLibrary.OpaqueJSString sourceURL,
int startingLineNumber,
PointerByReference exception)
- Parameters:
ctx
- The execution context to use.
script
- A JSString containing the script to evaluate.
thisObject
- The object to use as "this," or NULL to use the global object as "this."
sourceURL
- A JSString containing a URL for the script's source file. This is only used when reporting exceptions. Pass NULL if you do not care to include source file information in exceptions.
startingLineNumber
- An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions.
exception
- A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
JSCheckScriptSyntax
boolean JSCheckScriptSyntax(JavaScriptCoreLibrary.OpaqueJSContext ctx,
JavaScriptCoreLibrary.OpaqueJSString script,
JavaScriptCoreLibrary.OpaqueJSString sourceURL,
int startingLineNumber,
PointerByReference exception)
- Parameters:
ctx
- The execution context to use.
script
- A JSString containing the script to check for syntax errors.
sourceURL
- A JSString containing a URL for the script's source file. This is only used when reporting exceptions. Pass NULL if you do not care to include source file information in exceptions.
startingLineNumber
- An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions.
exception
- A pointer to a JSValueRef in which to store a syntax error exception, if any. Pass NULL if you do not care to store a syntax error exception.
JSGarbageCollect
void JSGarbageCollect(JavaScriptCoreLibrary.OpaqueJSContext ctx)
- Parameters:
ctx
- This parameter is currently unused. Pass NULL.