Package jnr.ffi.mapper
Class CompositeFunctionMapper
- java.lang.Object
-
- jnr.ffi.mapper.CompositeFunctionMapper
-
- All Implemented Interfaces:
FunctionMapper
public final class CompositeFunctionMapper extends java.lang.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
Constructors Constructor Description CompositeFunctionMapper(java.util.Collection<FunctionMapper> functionMappers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
mapFunctionName(java.lang.String functionName, FunctionMapper.Context context)
Translate the (Java) function name into its (native) equivalent.
-
-
-
Constructor Detail
-
CompositeFunctionMapper
public CompositeFunctionMapper(java.util.Collection<FunctionMapper> functionMappers)
-
-
Method Detail
-
mapFunctionName
public java.lang.String mapFunctionName(java.lang.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 interfaceFunctionMapper
- Parameters:
functionName
- to translatecontext
- for translation- Returns:
- native equivalent or
functionName
if not in map
-
-