List of usage examples for org.objectweb.asm Opcodes LONG
Integer LONG
To view the source code for org.objectweb.asm Opcodes LONG.
Click Source Link
From source file:org.yx.asm.ProxyMethodWritor.java
License:Apache License
private static void jReturn(MethodVisitor mv, Object type) { if (Opcodes.INTEGER.equals(type)) { mv.visitInsn(IRETURN);//from w ww . j a va 2 s . c o m } else if (Opcodes.LONG.equals(type)) { mv.visitInsn(LRETURN); } else if (Opcodes.FLOAT.equals(type)) { mv.visitInsn(FRETURN); } else if (Opcodes.DOUBLE.equals(type)) { mv.visitInsn(DRETURN); } else { mv.visitInsn(ARETURN); } }
From source file:org.yx.asm.ProxyMethodWritor.java
License:Apache License
private static int argLength(List<Object> argTypes) { int size = 0; for (Object type : argTypes) { if (Opcodes.LONG.equals(type) || Opcodes.DOUBLE.equals(type)) { size += WIDTH;// www.ja va 2s . c om } else { size += SINGLE; } } return size; }