jnr.ffi.provider.jffi.SimpleNativeContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
The newest version!
package jnr.ffi.provider.jffi;
import jnr.ffi.mapper.FromNativeContext;
import jnr.ffi.mapper.ToNativeContext;
import java.lang.annotation.Annotation;
import java.util.Collection;
public class SimpleNativeContext implements ToNativeContext, FromNativeContext {
private final jnr.ffi.Runtime runtime;
private final Collection annotations;
SimpleNativeContext(jnr.ffi.Runtime runtime, Collection annotations) {
this.runtime = runtime;
this.annotations = annotations;
}
public Collection getAnnotations() {
return annotations;
}
public final jnr.ffi.Runtime getRuntime() {
return runtime;
}
}