org.rococoa.internal
Class NSInvocationMapper

java.lang.Object
  extended by org.rococoa.internal.NSInvocationMapper

public abstract class NSInvocationMapper
extends java.lang.Object

Maps to and from bytes in an NSInvocation to Java types.

Author:
duncan

Field Summary
protected  java.lang.Class<?> type
           
protected  java.lang.String typeString
           
 
Constructor Summary
protected NSInvocationMapper(java.lang.String typeString, java.lang.Class<?> type)
           
 
Method Summary
abstract  com.sun.jna.Memory bufferForResult(java.lang.Object methodCallResult)
           
 java.lang.Object readArgumentFrom(NSInvocation invocation, int index, java.lang.Class<?> type)
           
protected  java.lang.Object readFrom(com.sun.jna.Memory buffer, java.lang.Class<?> type)
           
 java.lang.String typeString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected final java.lang.Class<?> type

typeString

protected final java.lang.String typeString
Constructor Detail

NSInvocationMapper

protected NSInvocationMapper(java.lang.String typeString,
                             java.lang.Class<?> type)
Method Detail

typeString

public java.lang.String typeString()

readArgumentFrom

public java.lang.Object readArgumentFrom(NSInvocation invocation,
                                         int index,
                                         java.lang.Class<?> type)

readFrom

protected java.lang.Object readFrom(com.sun.jna.Memory buffer,
                                    java.lang.Class<?> type)

bufferForResult

public abstract com.sun.jna.Memory bufferForResult(java.lang.Object methodCallResult)


Copyright © 2009. All Rights Reserved.