jnr.ffi.provider
Class IdentityFunctionMapper
java.lang.Object
jnr.ffi.provider.IdentityFunctionMapper
- All Implemented Interfaces:
- FunctionMapper
public class IdentityFunctionMapper
- extends Object
- implements FunctionMapper
An implementation of FunctionMapper that just returns the same name as input
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityFunctionMapper
public IdentityFunctionMapper()
getInstance
public static FunctionMapper getInstance()
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 translatecontext - for translation
- Returns:
- native equivalent or
functionName if not in map
Copyright © 2014. All rights reserved.