org.rococoa.cocoa.webkit
Class NPClass
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure
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.
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 |
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
NPClass
public NPClass()
byReference
public NPClass.ByReference byReference()
byValue
public NPClass.ByValue byValue()
clone
public NPClass clone()
- Overrides:
clone
in class Object