Package jnr.ffi.provider.jffi
Class SimpleNativeContext
- java.lang.Object
-
- jnr.ffi.provider.jffi.SimpleNativeContext
-
- All Implemented Interfaces:
FromNativeContext
,ToNativeContext
public class SimpleNativeContext extends java.lang.Object implements ToNativeContext, FromNativeContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<java.lang.annotation.Annotation>
annotations
private Runtime
runtime
-
Constructor Summary
Constructors Constructor Description SimpleNativeContext(Runtime runtime, java.util.Collection<java.lang.annotation.Annotation> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.annotation.Annotation>
getAnnotations()
Gets a sorted list of annotationsRuntime
getRuntime()
Gets the Runtime used for the conversion.
-
-
-
Field Detail
-
runtime
private final Runtime runtime
-
annotations
private final java.util.Collection<java.lang.annotation.Annotation> annotations
-
-
Constructor Detail
-
SimpleNativeContext
SimpleNativeContext(Runtime runtime, java.util.Collection<java.lang.annotation.Annotation> annotations)
-
-
Method Detail
-
getAnnotations
public java.util.Collection<java.lang.annotation.Annotation> getAnnotations()
Description copied from interface:ToNativeContext
Gets a sorted list of annotations- Specified by:
getAnnotations
in interfaceFromNativeContext
- Specified by:
getAnnotations
in interfaceToNativeContext
- Returns:
- a sorted list of annotations for this native type
-
getRuntime
public final Runtime getRuntime()
Description copied from interface:ToNativeContext
Gets the Runtime used for the conversion.- Specified by:
getRuntime
in interfaceFromNativeContext
- Specified by:
getRuntime
in interfaceToNativeContext
- Returns:
- The runtime used for the conversion.
-
-