public class VariableAccessorGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
VariableAccessorGenerator.PointerOp |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicLong |
nextClassID |
private static VariableAccessorGenerator.PointerOp |
POINTER_OP_POINTER |
(package private) static java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> |
pointerOperations |
private Runtime |
runtime |
Constructor and Description |
---|
VariableAccessorGenerator(Runtime runtime) |
Modifier and Type | Method and Description |
---|---|
(package private) Variable |
buildVariableAccessor(Runtime runtime,
long address,
java.lang.Class interfaceClass,
java.lang.Class javaType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
ToNativeConverter toNativeConverter,
FromNativeConverter fromNativeConverter,
AsmClassLoader classLoader) |
void |
generate(AsmBuilder builder,
java.lang.Class interfaceClass,
java.lang.String variableName,
long address,
java.lang.Class javaType,
java.util.Collection<java.lang.annotation.Annotation> annotations,
SignatureTypeMapper typeMapper,
AsmClassLoader classLoader) |
private static void |
op(java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> ops,
NativeType type,
java.lang.String name,
java.lang.Class nativeIntType) |
private final java.util.concurrent.atomic.AtomicLong nextClassID
private final Runtime runtime
static final java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> pointerOperations
private static final VariableAccessorGenerator.PointerOp POINTER_OP_POINTER
public VariableAccessorGenerator(Runtime runtime)
public void generate(AsmBuilder builder, java.lang.Class interfaceClass, java.lang.String variableName, long address, java.lang.Class javaType, java.util.Collection<java.lang.annotation.Annotation> annotations, SignatureTypeMapper typeMapper, AsmClassLoader classLoader)
Variable buildVariableAccessor(Runtime runtime, long address, java.lang.Class interfaceClass, java.lang.Class javaType, java.util.Collection<java.lang.annotation.Annotation> annotations, ToNativeConverter toNativeConverter, FromNativeConverter fromNativeConverter, AsmClassLoader classLoader)
private static void op(java.util.Map<NativeType,VariableAccessorGenerator.PointerOp> ops, NativeType type, java.lang.String name, java.lang.Class nativeIntType)