Package jnr.ffi.provider.jffi
Class ToNativeOp
- java.lang.Object
-
- jnr.ffi.provider.jffi.ToNativeOp
-
- Direct Known Subclasses:
ToNativeOp.Primitive
abstract class ToNativeOp extends java.lang.ObjectEmits appropriate asm code to convert the parameter to a native value
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classToNativeOp.AddressOp(package private) static classToNativeOp.Delegate(package private) static classToNativeOp.Float32(package private) static classToNativeOp.Float64(package private) static classToNativeOp.Integral(package private) static classToNativeOp.Primitive
-
Field Summary
Fields Modifier and Type Field Description private booleanisPrimitiveprivate static java.util.Map<java.lang.Class,ToNativeOp>operations
-
Constructor Summary
Constructors Modifier Constructor Description protectedToNativeOp(boolean primitive)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidemitPrimitive(SkinnyMethodAdapter mv, java.lang.Class primitiveClass, NativeType nativeType)(package private) static ToNativeOpget(ToNativeType type)(package private) booleanisPrimitive()
-
-
-
Field Detail
-
isPrimitive
private final boolean isPrimitive
-
operations
private static final java.util.Map<java.lang.Class,ToNativeOp> operations
-
-
Method Detail
-
isPrimitive
final boolean isPrimitive()
-
emitPrimitive
abstract void emitPrimitive(SkinnyMethodAdapter mv, java.lang.Class primitiveClass, NativeType nativeType)
-
get
static ToNativeOp get(ToNativeType type)
-
-