Class StubCompiler

java.lang.Object
jnr.ffi.provider.jffi.StubCompiler
Direct Known Subclasses:
AbstractA64StubCompiler, AbstractX86StubCompiler, StubCompiler.DummyStubCompiler

abstract class StubCompiler extends Object
Compiles asm trampoline stubs for java class methods
  • Field Details

    • errnoFunctionAddress

      static final long errnoFunctionAddress
    • hasPageManager

      static final boolean hasPageManager
    • hasAssembler

      static final boolean hasAssembler
  • Constructor Details

    • StubCompiler

      StubCompiler()
  • Method Details

    • newCompiler

      public static StubCompiler newCompiler(Runtime runtime)
    • canCompile

      abstract boolean canCompile(ResultType returnType, ParameterType[] parameterTypes, CallingConvention convention)
    • compile

      abstract void compile(com.kenai.jffi.Function function, String name, ResultType returnType, ParameterType[] parameterTypes, Class resultClass, Class[] parameterClasses, CallingConvention convention, boolean saveErrno)
    • attach

      abstract void attach(Class clazz)
    • getErrnoSaveFunction

      private static long getErrnoSaveFunction()
    • hasPageManager

      private static boolean hasPageManager()
    • hasAssembler

      private static boolean hasAssembler()