Package jnr.ffi.provider
Class IdentityFunctionMapper
java.lang.Object
jnr.ffi.provider.IdentityFunctionMapper
- All Implemented Interfaces:
FunctionMapper
An implementation of
FunctionMapper that just returns the same name as input-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionMappermapFunctionName(String functionName, FunctionMapper.Context context) Translate the (Java) function name into its (native) equivalent.
-
Constructor Details
-
IdentityFunctionMapper
public IdentityFunctionMapper()
-
-
Method Details
-
getInstance
-
mapFunctionName
Description copied from interface:FunctionMapperTranslate 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:
mapFunctionNamein interfaceFunctionMapper- Parameters:
functionName- to translatecontext- for translation- Returns:
- native equivalent or
functionNameif not in map
-