Package jnr.ffi.mapper
Class SimpleFunctionMapper
java.lang.Object
jnr.ffi.mapper.SimpleFunctionMapper
- All Implemented Interfaces:
FunctionMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface jnr.ffi.mapper.FunctionMapper
FunctionMapper.Builder, FunctionMapper.Context
-
Field Summary
FieldsFields inherited from interface jnr.ffi.mapper.FunctionMapper
IDENTITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapFunctionName
(String functionName, FunctionMapper.Context context) Translate the (Java) function name into its (native) equivalent.
-
Field Details
-
functionNameMap
-
-
Constructor Details
-
SimpleFunctionMapper
-
-
Method Details
-
mapFunctionName
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
-