Top Fields Constructors Methods
jnr.ffi.mapper

public final Class CompositeFunctionMapper

extends Object
implements FunctionMapper
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.FunctionMapper
Imports
java.util.ArrayList, .Collection, .Collections

Field Summary

Modifier and TypeField and Description
private final Collection<FunctionMapper>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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

Field Detail

functionMappersback to summary
private final Collection<FunctionMapper> functionMappers

Constructor Detail

CompositeFunctionMapperback to summary
public CompositeFunctionMapper(Collection<FunctionMapper> functionMappers)

Method Detail

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

Annotations
@Override