Class AsmUtil
java.lang.Object
jnr.ffi.provider.jffi.AsmUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class(package private) static voidboxValue(AsmBuilder builder, SkinnyMethodAdapter mv, Class boxedType, Class unboxedType) (package private) static intCalculates the size of a local variable(package private) static intcalculateLocalVariableSpace(Class... types) Calculates the size of a list of types in the local variable area.(package private) static intCalculates the size of a local variable(package private) static intcalculateLocalVariableSpace(SigType... types) Calculates the size of a list of types in the local variable area.private static booleanclassIsVisible(ClassLoader classLoader, Class klass) (package private) static voidemitFromNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, FromNativeType fromNativeType, Class nativeClass) (package private) static voidemitReturn(AsmBuilder builder, SkinnyMethodAdapter mv, Class returnType, Class nativeIntType) (package private) static voidemitReturnOp(SkinnyMethodAdapter mv, Class returnType) (package private) static voidemitToNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, ToNativeType toNativeType) (package private) static voidgetfield(SkinnyMethodAdapter mv, AsmBuilder builder, AsmBuilder.ObjectField field) (package private) static MethodgetFromNativeMethod(FromNativeType fromNativeType, AsmClassLoader classLoader) (package private) static intgetNativeArrayFlags(int flags) (package private) static intgetNativeArrayFlags(Collection<Annotation> annotations) (package private) static LocalVariable[]getParameterVariables(Class[] parameterTypes) (package private) static LocalVariable[]getParameterVariables(ParameterType[] parameterTypes) (package private) static MethodgetToNativeMethod(ToNativeType toNativeType, AsmClassLoader classLoader) (package private) static voidload(SkinnyMethodAdapter mv, Class parameterType, LocalVariable parameter) (package private) static booleanmethodIsAccessible(Method method) static org.objectweb.asm.ClassVisitornewCheckClassAdapter(org.objectweb.asm.ClassVisitor cv) static org.objectweb.asm.ClassVisitorstatic org.objectweb.asm.ClassVisitornewTraceClassVisitor(org.objectweb.asm.ClassVisitor cv, OutputStream out) static org.objectweb.asm.ClassVisitornewTraceClassVisitor(org.objectweb.asm.ClassVisitor cv, PrintWriter out) static org.objectweb.asm.MethodVisitornewTraceMethodVisitor(org.objectweb.asm.MethodVisitor mv) (package private) static voidstore(SkinnyMethodAdapter mv, Class type, LocalVariable var) (package private) static voidtryfinally(SkinnyMethodAdapter mv, Runnable codeBlock, Runnable finallyBlock) (package private) static voidunboxBoolean(SkinnyMethodAdapter mv, Class nativeType) (package private) static voidunboxBoolean(SkinnyMethodAdapter mv, Class boxedType, Class nativeType) static ClassunboxedReturnType(Class type) static ClassunboxedType(Class boxedType) (package private) static voidunboxNumber(SkinnyMethodAdapter mv, Class boxedType, Class nativeType) (package private) static voidunboxNumber(SkinnyMethodAdapter mv, Class boxedType, Class unboxedType, NativeType nativeType) (package private) static voidunboxPointer(SkinnyMethodAdapter mv, Class nativeType) private static voidunboxPointerOrStruct(SkinnyMethodAdapter mv, Class type, Class nativeType)
-
Constructor Details
-
AsmUtil
private AsmUtil()
-
-
Method Details
-
newTraceMethodVisitor
public static org.objectweb.asm.MethodVisitor newTraceMethodVisitor(org.objectweb.asm.MethodVisitor mv) -
newTraceClassVisitor
public static org.objectweb.asm.ClassVisitor newTraceClassVisitor(org.objectweb.asm.ClassVisitor cv, OutputStream out) -
newTraceClassVisitor
public static org.objectweb.asm.ClassVisitor newTraceClassVisitor(org.objectweb.asm.ClassVisitor cv, PrintWriter out) -
newTraceClassVisitor
-
newCheckClassAdapter
public static org.objectweb.asm.ClassVisitor newCheckClassAdapter(org.objectweb.asm.ClassVisitor cv) -
unboxedReturnType
-
unboxedType
-
boxedType
-
emitReturnOp
-
calculateLocalVariableSpace
Calculates the size of a local variable- Parameters:
type- The type of parameter- Returns:
- The size in parameter units
-
calculateLocalVariableSpace
Calculates the size of a local variable- Parameters:
type- The type of parameter- Returns:
- The size in parameter units
-
calculateLocalVariableSpace
Calculates the size of a list of types in the local variable area.- Parameters:
types- The type of parameter- Returns:
- The size in parameter units
-
calculateLocalVariableSpace
Calculates the size of a list of types in the local variable area.- Parameters:
types- The type of parameter- Returns:
- The size in parameter units
-
unboxPointerOrStruct
-
unboxPointer
-
unboxBoolean
-
unboxBoolean
-
unboxNumber
static void unboxNumber(SkinnyMethodAdapter mv, Class boxedType, Class unboxedType, NativeType nativeType) -
unboxNumber
-
boxValue
static void boxValue(AsmBuilder builder, SkinnyMethodAdapter mv, Class boxedType, Class unboxedType) -
getNativeArrayFlags
static int getNativeArrayFlags(int flags) -
getNativeArrayFlags
-
getParameterVariables
-
getParameterVariables
-
load
-
store
-
emitReturn
static void emitReturn(AsmBuilder builder, SkinnyMethodAdapter mv, Class returnType, Class nativeIntType) -
getfield
-
tryfinally
-
emitToNativeConversion
static void emitToNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, ToNativeType toNativeType) -
emitFromNativeConversion
static void emitFromNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, FromNativeType fromNativeType, Class nativeClass) -
getToNativeMethod
-
getFromNativeMethod
-
methodIsAccessible
-
classIsVisible
-