Modifier and Type | Method and Description |
---|---|
NativeType |
StructLayout.getNativeType() |
abstract NativeType |
Type.getNativeType()
The native type of this type
|
static NativeType |
NativeType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NativeType[] |
NativeType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Pointer |
Memory.allocate(Runtime runtime,
NativeType type)
Allocates a new block of java memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateDirect(Runtime runtime,
NativeType type)
Allocates a new block of native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateTemporary(Runtime runtime,
NativeType type)
Allocates a new block of transient native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateTemporary(Runtime runtime,
NativeType type,
boolean clear)
Allocates a new block of transient native memory and wraps it in a
Pointer
accessor. |
abstract Type |
Runtime.findType(NativeType type)
Looks up the runtime-specific type that corresponds to the pseudo-type
|
Modifier and Type | Field and Description |
---|---|
private NativeType |
SigType.nativeType |
Modifier and Type | Method and Description |
---|---|
NativeType |
SigType.getNativeType() |
NativeType |
BadType.getNativeType() |
Modifier and Type | Method and Description |
---|---|
Type |
InvalidRuntime.findType(NativeType type) |
Type |
AbstractRuntime.findType(NativeType type)
Looks up the runtime-specific that corresponds to the pseudo-type
|
Constructor and Description |
---|
FromNativeType(java.lang.Class javaType,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
FromNativeConverter fromNativeConverter,
FromNativeContext fromNativeContext) |
ParameterType(java.lang.Class javaType,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
ToNativeConverter toNativeConverter,
ToNativeContext toNativeContext) |
ResultType(java.lang.Class javaType,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
FromNativeConverter fromNativeConverter,
FromNativeContext fromNativeContext) |
SigType(java.lang.Class javaType,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.Class convertedType) |
ToNativeType(java.lang.Class javaType,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
ToNativeConverter toNativeConverter,
ToNativeContext toNativeContext) |
Constructor and Description |
---|
AbstractRuntime(java.nio.ByteOrder byteOrder,
java.util.EnumMap<NativeType,Type> typeMap) |
Modifier and Type | Field and Description |
---|---|
private NativeType |
NativeRuntime.TypeDelegate.nativeType |
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Map<NativeType,BufferMethodGenerator.InvokeOp> |
BufferMethodGenerator.invokeOps |
(package private) static java.util.Map<NativeType,com.kenai.jffi.Type> |
InvokerUtil.jffiTypes |
(package private) static java.util.Map<NativeType,BufferMethodGenerator.MarshalOp> |
BufferMethodGenerator.marshalOps |
(package private) static java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> |
VariableAccessorGenerator.pointerOperations |
Modifier and Type | Method and Description |
---|---|
private static NativeType[] |
NativeRuntime.buildNativeTypeAliases() |
(package private) static NativeType |
InvokerUtil.getMethodParameterNativeType(Runtime runtime,
java.lang.Class parameterClass,
java.util.Collection<java.lang.annotation.Annotation> annotations) |
(package private) static NativeType |
InvokerUtil.getMethodResultNativeType(Runtime runtime,
java.lang.Class resultClass,
java.util.Collection<java.lang.annotation.Annotation> annotations) |
NativeType |
NativeRuntime.TypeDelegate.getNativeType() |
(package private) static NativeType |
InvokerUtil.nativeType(Type jnrType) |
Modifier and Type | Method and Description |
---|---|
private static java.util.EnumMap<NativeType,Type> |
NativeRuntime.buildTypeMap() |
Modifier and Type | Method and Description |
---|---|
static void |
NumberUtil.convertPrimitive(SkinnyMethodAdapter mv,
java.lang.Class from,
java.lang.Class to,
NativeType nativeType) |
(package private) abstract void |
ToNativeOp.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
void |
ToNativeOp.Integral.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
(package private) void |
ToNativeOp.Float32.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
(package private) void |
ToNativeOp.Float64.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
(package private) void |
ToNativeOp.Delegate.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
(package private) void |
ToNativeOp.AddressOp.emitPrimitive(SkinnyMethodAdapter mv,
java.lang.Class primitiveClass,
NativeType nativeType) |
(package private) static DefaultInvokerFactory.Marshaller |
DefaultInvokerFactory.getMarshaller(java.lang.Class type,
NativeType nativeType,
java.util.Collection<java.lang.annotation.Annotation> annotations) |
(package private) static java.lang.Class |
X86MethodGenerator.getNativeClass(NativeType nativeType) |
(package private) static java.lang.Class |
NativeClosureProxy.getNativeClass(NativeType nativeType) |
(package private) static DataConverter<java.lang.Number,java.lang.Number> |
DefaultInvokerFactory.getNumberDataConverter(NativeType nativeType) |
private static DefaultInvokerFactory.FunctionInvoker |
DefaultInvokerFactory.getNumberFunctionInvoker(NativeType nativeType) |
private static ReflectionVariableAccessorGenerator.PointerOp<java.lang.Number> |
ReflectionVariableAccessorGenerator.getPointerOp(NativeType nativeType) |
private static boolean |
DefaultInvokerFactory.isUnsigned(NativeType nativeType) |
private static Type |
NativeRuntime.jafflType(NativeType type) |
(package private) static com.kenai.jffi.Type |
InvokerUtil.jffiType(NativeType jnrType) |
private static void |
VariableAccessorGenerator.op(java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> ops,
NativeType type,
java.lang.String name,
java.lang.Class nativeIntType) |
(package private) static jnr.x86asm.Mem |
X86_32StubCompiler.ptr(jnr.x86asm.Register base,
long disp,
NativeType nativeType) |
(package private) static int |
NumberUtil.sizeof(NativeType nativeType) |
(package private) static void |
AsmUtil.unboxNumber(SkinnyMethodAdapter mv,
java.lang.Class boxedType,
java.lang.Class unboxedType,
NativeType nativeType) |
static void |
NumberUtil.widen(SkinnyMethodAdapter mv,
java.lang.Class from,
java.lang.Class to,
NativeType nativeType) |
Modifier and Type | Method and Description |
---|---|
private static void |
VariableAccessorGenerator.op(java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> ops,
NativeType type,
java.lang.String name,
java.lang.Class nativeIntType) |
Constructor and Description |
---|
TypeDelegate(com.kenai.jffi.Type type,
NativeType nativeType) |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<TypeAlias,NativeType> |
TypeAliases.ALIASES |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<TypeAlias,NativeType> |
TypeAliases.buildTypeMap() |