List of usage examples for org.objectweb.asm Opcodes DOUBLE
Integer DOUBLE
To view the source code for org.objectweb.asm Opcodes DOUBLE.
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 w w. j av a 2 s . co 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;/* w ww. j a v a 2 s.c om*/ } else { size += SINGLE; } } return size; }