jnr.ffi.mapper
Class CachingTypeMapper

java.lang.Object
  extended by jnr.ffi.mapper.AbstractSignatureTypeMapper
      extended by jnr.ffi.mapper.CachingTypeMapper
All Implemented Interfaces:
SignatureTypeMapper

public final class CachingTypeMapper
extends AbstractSignatureTypeMapper
implements SignatureTypeMapper

Caches Class -> native converter lookups.


Constructor Summary
CachingTypeMapper(SignatureTypeMapper mapper)
           
 
Method Summary
 FromNativeType getFromNativeType(SignatureType type, FromNativeContext context)
           
 ToNativeType getToNativeType(SignatureType type, ToNativeContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingTypeMapper

public CachingTypeMapper(SignatureTypeMapper mapper)
Method Detail

getFromNativeType

public FromNativeType getFromNativeType(SignatureType type,
                                        FromNativeContext context)
Specified by:
getFromNativeType in interface SignatureTypeMapper
Overrides:
getFromNativeType in class AbstractSignatureTypeMapper

getToNativeType

public ToNativeType getToNativeType(SignatureType type,
                                    ToNativeContext context)
Specified by:
getToNativeType in interface SignatureTypeMapper
Overrides:
getToNativeType in class AbstractSignatureTypeMapper


Copyright © 2013. All Rights Reserved.