Top Inners Constructors Methods
jnr.ffi.provider.jffi

pack-priv Class ReflectionVariableAccessorGenerator

extends Object
Class Inheritance
Imports
jnr.ffi.NativeType, .Pointer, .Variable, jnr.ffi.mapper.DataConverter, .DefaultSignatureType, .FromNativeContext, .FromNativeConverter, .SignatureType, .SignatureTypeMapper, .ToNativeConverter, java.lang.annotation.Annotation, java.lang.reflect.Method, .ParameterizedType, java.util.Collection

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static interface
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Variable<T>
createVariableAccessor(Runtime runtime, Method method, long symbolAddress, SignatureTypeMapper typeMapper, Collection<Annotation> annotations)

pack-priv static Variable<T>
getConvertingVariable(Variable<T> nativeVariable, ToNativeConverter<J, N> toNativeConverter, FromNativeConverter<J, N> fromNativeConverter)

pack-priv static Variable<T>
getNativeVariableAccessor(Pointer memory, ToNativeType toNativeType, FromNativeType fromNativeType)

private static ReflectionVariableAccessorGenerator.PointerOp<Number>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReflectionVariableAccessorGeneratorback to summary
pack-priv ReflectionVariableAccessorGenerator()

Method Detail

createVariableAccessorback to summary
pack-priv static Variable<T> createVariableAccessor(Runtime runtime, Method method, long symbolAddress, SignatureTypeMapper typeMapper, Collection<Annotation> annotations)
getConvertingVariableback to summary
pack-priv static Variable<T> getConvertingVariable(Variable<T> nativeVariable, ToNativeConverter<J, N> toNativeConverter, FromNativeConverter<J, N> fromNativeConverter)
getNativeVariableAccessorback to summary
pack-priv static Variable<T> getNativeVariableAccessor(Pointer memory, ToNativeType toNativeType, FromNativeType fromNativeType)
getPointerOpback to summary
private static ReflectionVariableAccessorGenerator.PointerOp<Number> getPointerOp(NativeType nativeType)
jnr.ffi.provider.jffi back to summary

private abstract Class ReflectionVariableAccessorGenerator.AbstractVariable<T>

extends Object
implements Variable<T>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.AbstractVariable
All Implemented Interfaces
jnr.ffi.Variable
Known Direct Subclasses
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.NumberVariable, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerVariable

Field Summary

Modifier and TypeField and Description
protected final Pointer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

memoryback to summary
protected final Pointer memory

Constructor Detail

AbstractVariableback to summary
protected AbstractVariable(Pointer memory)
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.ConvertingVariable

extends Object
implements Variable
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.ConvertingVariable
All Implemented Interfaces
jnr.ffi.Variable

Field Summary

Modifier and TypeField and Description
private final FromNativeConverter<J, N>
private final ToNativeConverter<J, N>
private final Variable<T>

Constructor Summary

AccessConstructor and Description
private
ConvertingVariable(Variable<T> variable, ToNativeConverter<J, N> toNativeConverter, FromNativeConverter<J, N> fromNativeConverter)

Method Summary

Modifier and TypeMethod and Description
public Object
get()

Implements jnr.ffi.Variable.get.

Gets the current value of the global variable
public void
set(Object
The value to set the global variable to.
value
)

Implements jnr.ffi.Variable.set.

Sets the global variable to a value
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fromNativeConverterback to summary
private final FromNativeConverter<J, N> fromNativeConverter
toNativeConverterback to summary
private final ToNativeConverter<J, N> toNativeConverter
variableback to summary
private final Variable<T> variable

Constructor Detail

ConvertingVariableback to summary
private ConvertingVariable(Variable<T> variable, ToNativeConverter<J, N> toNativeConverter, FromNativeConverter<J, N> fromNativeConverter)

Method Detail

getback to summary
public Object get()

Implements jnr.ffi.Variable.get.

Doc from jnr.ffi.Variable.get.

Gets the current value of the global variable

Returns:Object

The value of the variable

Annotations
@Override
setback to summary
public void set(Object value)

Implements jnr.ffi.Variable.set.

Doc from jnr.ffi.Variable.set.

Sets the global variable to a value

Parameters
value:Object

The value to set the global variable to.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.DoublePointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.DoublePointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

DoublePointerOpback to summary
private DoublePointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.FloatPointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.FloatPointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

FloatPointerOpback to summary
private FloatPointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.Int16PointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int16PointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

Int16PointerOpback to summary
private Int16PointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.Int32PointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int32PointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

Int32PointerOpback to summary
private Int32PointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.Int64PointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int64PointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

Int64PointerOpback to summary
private Int64PointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.Int8PointerOp

extends Object
implements ReflectionVariableAccessorGenerator.PointerOp<Number>
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int8PointerOp
All Implemented Interfaces
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp

Field Summary

Modifier and TypeField and Description
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ReflectionVariableAccessorGenerator.PointerOp<Number> INSTANCE

Constructor Detail

Int8PointerOpback to summary
private Int8PointerOp()

Method Detail

getback to summary
public Number get(Pointer memory)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.get.

Annotations
@Override
putback to summary
public void put(Pointer memory, Number value)

Implements jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.PointerOp.put.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.NumberVariable

extends ReflectionVariableAccessorGenerator.AbstractVariable<Number>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final DataConverter<Number, Number>
private final ReflectionVariableAccessorGenerator.PointerOp<Number>
private final DefaultInvokerFactory.ResultConverter<? extends Number, Number>
Inherited from jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.AbstractVariable:
memory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
get()

Implements jnr.ffi.Variable.get.

Gets the current value of the global variable
public void
set(Number
The value to set the global variable to.
value
)

Implements jnr.ffi.Variable.set.

Sets the global variable to a value

Field Detail

dataConverterback to summary
private final DataConverter<Number, Number> dataConverter
pointerOpback to summary
private final ReflectionVariableAccessorGenerator.PointerOp<Number> pointerOp
resultConverterback to summary
private final DefaultInvokerFactory.ResultConverter<? extends Number, Number> resultConverter

Constructor Detail

NumberVariableback to summary
private NumberVariable(Pointer memory, ReflectionVariableAccessorGenerator.PointerOp<Number> pointerOp, DataConverter<Number, Number> dataConverter, DefaultInvokerFactory.ResultConverter<? extends Number, Number> resultConverter)

Method Detail

getback to summary
public Number get()

Implements jnr.ffi.Variable.get.

Doc from jnr.ffi.Variable.get.

Gets the current value of the global variable

Returns:Number

The value of the variable

Annotations
@Override
setback to summary
public void set(Number value)

Implements jnr.ffi.Variable.set.

Doc from jnr.ffi.Variable.set.

Sets the global variable to a value

Parameters
value:Number

The value to set the global variable to.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private Interface ReflectionVariableAccessorGenerator.PointerOp<T>

Known Direct Implementers
jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int8PointerOp, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int16PointerOp, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int32PointerOp, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.Int64PointerOp, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.FloatPointerOp, jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.DoublePointerOp

Method Summary

Modifier and TypeMethod and Description
public T
get(Pointer memory)

public void
put(Pointer memory, T value)

Method Detail

getback to summary
public T get(Pointer memory)
putback to summary
public void put(Pointer memory, T value)
jnr.ffi.provider.jffi back to summary

private final Class ReflectionVariableAccessorGenerator.PointerVariable

extends ReflectionVariableAccessorGenerator.AbstractVariable<Pointer>
Class Inheritance

Field Summary

Inherited from jnr.ffi.provider.jffi.ReflectionVariableAccessorGenerator.AbstractVariable:
memory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Pointer
get()

Implements jnr.ffi.Variable.get.

Gets the current value of the global variable
public void
set(Pointer
The value to set the global variable to.
value
)

Implements jnr.ffi.Variable.set.

Sets the global variable to a value

Constructor Detail

PointerVariableback to summary
private PointerVariable(Pointer memory)

Method Detail

getback to summary
public Pointer get()

Implements jnr.ffi.Variable.get.

Doc from jnr.ffi.Variable.get.

Gets the current value of the global variable

Returns:Pointer

The value of the variable

setback to summary
public void set(Pointer value)

Implements jnr.ffi.Variable.set.

Doc from jnr.ffi.Variable.set.

Sets the global variable to a value

Parameters
value:Pointer

The value to set the global variable to.