jnr.ffi.mapper
Class CompositeFunctionMapper

java.lang.Object
  extended by jnr.ffi.mapper.CompositeFunctionMapper
All Implemented Interfaces:
FunctionMapper

public final class CompositeFunctionMapper
extends Object
implements FunctionMapper


Nested Class Summary
 
Nested classes/interfaces inherited from interface jnr.ffi.mapper.FunctionMapper
FunctionMapper.Builder, FunctionMapper.Context
 
Field Summary
 
Fields inherited from interface jnr.ffi.mapper.FunctionMapper
IDENTITY
 
Constructor Summary
CompositeFunctionMapper(Collection<FunctionMapper> functionMappers)
           
 
Method Summary
 String mapFunctionName(String functionName, FunctionMapper.Context context)
          Translate the (Java) function name into its (native) equivalent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFunctionMapper

public CompositeFunctionMapper(Collection<FunctionMapper> functionMappers)
Method Detail

mapFunctionName

public String mapFunctionName(String functionName,
                              FunctionMapper.Context context)
Description copied from interface: FunctionMapper
Translate the (Java) function name into its (native) equivalent. If the name is not present in the map, it is to return the supplied name (same object exactly).

Specified by:
mapFunctionName in interface FunctionMapper
Parameters:
functionName - to translate
context - for translation
Returns:
native equivalent or functionName if not in map


Copyright © 2014. All rights reserved.