Package jnr.posix

Class SimpleFunctionMapper

  • All Implemented Interfaces:
    jnr.ffi.mapper.FunctionMapper

    public class SimpleFunctionMapper
    extends java.lang.Object
    implements jnr.ffi.mapper.FunctionMapper
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SimpleFunctionMapper.Builder  
      • Nested classes/interfaces inherited from interface jnr.ffi.mapper.FunctionMapper

        jnr.ffi.mapper.FunctionMapper.Context
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> functionNameMap  
      • Fields inherited from interface jnr.ffi.mapper.FunctionMapper

        IDENTITY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SimpleFunctionMapper​(java.util.Map<java.lang.String,​java.lang.String> map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String mapFunctionName​(java.lang.String functionName, jnr.ffi.mapper.FunctionMapper.Context context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • functionNameMap

        private final java.util.Map<java.lang.String,​java.lang.String> functionNameMap
    • Constructor Detail

      • SimpleFunctionMapper

        private SimpleFunctionMapper​(java.util.Map<java.lang.String,​java.lang.String> map)
    • Method Detail

      • mapFunctionName

        public java.lang.String mapFunctionName​(java.lang.String functionName,
                                                jnr.ffi.mapper.FunctionMapper.Context context)
        Specified by:
        mapFunctionName in interface jnr.ffi.mapper.FunctionMapper