All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.ffi.provider.jffi.SimpleNativeContext Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy