Top Description Inners Constructors Methods
jnr.ffi.provider

public Class IdentityFunctionMapper

extends Object
implements FunctionMapper
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.FunctionMapper
Imports
jnr.ffi.mapper.FunctionMapper

An implementation of FunctionMapper that just returns the same name as input

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static FunctionMapper
public String
mapFunctionName(String
to translate
functionName
,
FunctionMapper.Context
for translation
context
)

Implements jnr.ffi.mapper.FunctionMapper.mapFunctionName.

Translate the (Java) function name into its (native) equivalent.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IdentityFunctionMapperback to summary
public IdentityFunctionMapper()

Method Detail

getInstanceback to summary
public static FunctionMapper getInstance()
mapFunctionNameback to summary
public String mapFunctionName(String functionName, FunctionMapper.Context context)

Implements jnr.ffi.mapper.FunctionMapper.mapFunctionName.

Doc from jnr.ffi.mapper.FunctionMapper.mapFunctionName.

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:String

to translate

context:FunctionMapper.Context

for translation

Returns:String

native equivalent or functionName if not in map

jnr.ffi.provider back to summary

private final Class IdentityFunctionMapper.SingletonHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final FunctionMapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final FunctionMapper INSTANCE

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()