org.rococoa.internal
Class NSInvocationMapper

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

public abstract class NSInvocationMapper
extends Object

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

Author:
duncan

Field Summary
protected  Class<?> type
           
protected  String typeString
           
 
Constructor Summary
protected NSInvocationMapper(String typeString, Class<?> type)
           
 
Method Summary
abstract  com.sun.jna.Memory bufferForResult(Object methodCallResult)
           
 Object readArgumentFrom(NSInvocation invocation, int index, Class<?> type)
           
protected  Object readFrom(com.sun.jna.Memory buffer, Class<?> type)
           
 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 Class<?> type

typeString

protected final String typeString
Constructor Detail

NSInvocationMapper

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

typeString

public String typeString()

readArgumentFrom

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

readFrom

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

bufferForResult

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


Copyright © 2012. All Rights Reserved.