jnr.ffi.provider.jffi
Class NativeClosure

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<Object>
          extended by jnr.ffi.provider.jffi.NativeClosure
All Implemented Interfaces:
com.kenai.jffi.Closure

public abstract class NativeClosure
extends WeakReference<Object>
implements com.kenai.jffi.Closure


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.kenai.jffi.Closure
com.kenai.jffi.Closure.Buffer, com.kenai.jffi.Closure.Handle
 
Field Summary
protected  NativeRuntime runtime
           
 
Constructor Summary
NativeClosure(NativeRuntime runtime, Object callable, ReferenceQueue<Object> queue, Integer key)
           
 
Method Summary
 Integer getKey()
           
 void invoke(com.kenai.jffi.Closure.Buffer buffer)
           
protected abstract  void invoke(com.kenai.jffi.Closure.Buffer buffer, Object callable)
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

protected final NativeRuntime runtime
Constructor Detail

NativeClosure

public NativeClosure(NativeRuntime runtime,
                     Object callable,
                     ReferenceQueue<Object> queue,
                     Integer key)
Method Detail

invoke

public final void invoke(com.kenai.jffi.Closure.Buffer buffer)
Specified by:
invoke in interface com.kenai.jffi.Closure

getKey

public Integer getKey()

invoke

protected abstract void invoke(com.kenai.jffi.Closure.Buffer buffer,
                               Object callable)


Copyright © 2012. All Rights Reserved.