org.rococoa.cocoa.webkit
Class NPClass

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.webkit.NPClass
Direct Known Subclasses:
NPClass.ByReference, NPClass.ByValue

public class NPClass
extends com.ochafik.lang.jnaerator.runtime.Structure

NPObjects returned by create have a reference count of one. It is the caller's responsibility
to release the returned object.
NPInvokeFunctionPtr function may return false to indicate a the method could not be invoked.
NPGetPropertyFunctionPtr and NPSetPropertyFunctionPtr may return false to indicate a property doesn't
exist.
NPInvalidateFunctionPtr is called by the scripting environment when the native code is
shutdown. Any attempt to message a NPObject instance after the invalidate
callback has been called will result in undefined behavior, even if the
native code is still retaining those NPObject instances.
(The runtime will typically return immediately, with 0 or NULL, from an attempt to
dispatch to a NPObject, but this behavior should not be depended upon.)
The NPEnumerationFunctionPtr function may pass an array of
NPIdentifiers back to the caller. The callee allocs the memory of
the array using NPN_MemAlloc(), and it's the caller's responsibility
to release it using NPN_MemFree().
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 NPClass.ByReference
           
static class NPClass.ByValue
           
 
Field Summary
 WebKitLibrary.NPAllocateFunctionPtr allocate
           
 WebKitLibrary.NPDeallocateFunctionPtr deallocate
           
 WebKitLibrary.NPEnumerationFunctionPtr enumerate
           
 WebKitLibrary.NPGetPropertyFunctionPtr getProperty
           
 WebKitLibrary.NPHasMethodFunctionPtr hasMethod
           
 WebKitLibrary.NPHasPropertyFunctionPtr hasProperty
           
 WebKitLibrary.NPInvalidateFunctionPtr invalidate
           
 WebKitLibrary.NPInvokeFunctionPtr invoke
           
 WebKitLibrary.NPInvokeDefaultFunctionPtr invokeDefault
           
 WebKitLibrary.NPRemovePropertyFunctionPtr removeProperty
           
 WebKitLibrary.NPSetPropertyFunctionPtr setProperty
           
 int structVersion
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
NPClass()
           
 
Method Summary
 NPClass.ByReference byReference()
           
 NPClass.ByValue byValue()
           
 NPClass clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

structVersion

public int structVersion

allocate

public WebKitLibrary.NPAllocateFunctionPtr allocate

deallocate

public WebKitLibrary.NPDeallocateFunctionPtr deallocate

invalidate

public WebKitLibrary.NPInvalidateFunctionPtr invalidate

hasMethod

public WebKitLibrary.NPHasMethodFunctionPtr hasMethod

invoke

public WebKitLibrary.NPInvokeFunctionPtr invoke

invokeDefault

public WebKitLibrary.NPInvokeDefaultFunctionPtr invokeDefault

hasProperty

public WebKitLibrary.NPHasPropertyFunctionPtr hasProperty

getProperty

public WebKitLibrary.NPGetPropertyFunctionPtr getProperty

setProperty

public WebKitLibrary.NPSetPropertyFunctionPtr setProperty

removeProperty

public WebKitLibrary.NPRemovePropertyFunctionPtr removeProperty

enumerate

public WebKitLibrary.NPEnumerationFunctionPtr enumerate
Constructor Detail

NPClass

public NPClass()
Method Detail

byReference

public NPClass.ByReference byReference()

byValue

public NPClass.ByValue byValue()

clone

public NPClass clone()
Overrides:
clone in class Object