jnr.ffi.mapper
Interface FunctionMapper
- All Known Implementing Classes:
- CompositeFunctionMapper, IdentityFunctionMapper
public interface FunctionMapper
IDENTITY
static final FunctionMapper IDENTITY
- An implementation of
FunctionMapper that maps 1:1 between java symbols and native functions
mapFunctionName
String mapFunctionName(String functionName,
FunctionMapper.Context context)
- 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).
- Parameters:
functionName - to translatecontext - for translation
- Returns:
- native equivalent or
functionName if not in map
Copyright © 2014. All rights reserved.