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.


Nested Class Summary
static class JavaScriptCoreLibrary.OpaqueJSContext
           
static class JavaScriptCoreLibrary.OpaqueJSString
           
static class JavaScriptCoreLibrary.OpaqueJSValue
           
 
Nested classes/interfaces inherited from interface com.sun.jna.Library
Library.Handler
 
Field Summary
static JavaScriptCoreLibrary INSTANCE
           
 
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
Method Summary
 boolean JSCheckScriptSyntax(JavaScriptCoreLibrary.OpaqueJSContext ctx, JavaScriptCoreLibrary.OpaqueJSString script, JavaScriptCoreLibrary.OpaqueJSString sourceURL, int startingLineNumber, PointerByReference exception)
           
 JavaScriptCoreLibrary.OpaqueJSValue JSEvaluateScript(JavaScriptCoreLibrary.OpaqueJSContext ctx, JavaScriptCoreLibrary.OpaqueJSString script, JavaScriptCoreLibrary.OpaqueJSValue thisObject, JavaScriptCoreLibrary.OpaqueJSString sourceURL, int startingLineNumber, PointerByReference exception)
           
 void JSGarbageCollect(JavaScriptCoreLibrary.OpaqueJSContext ctx)
           
 

Field Detail

INSTANCE

static final JavaScriptCoreLibrary INSTANCE
Method Detail

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.