Lines Matching defs:cst

660     public void visitLdcInsn(final Object cst) {
661 if (cst instanceof Integer) {
662 int val = ((Integer) cst).intValue();
664 } else if (cst instanceof Byte) {
665 int val = ((Byte) cst).intValue();
667 } else if (cst instanceof Character) {
668 int val = ((Character) cst).charValue();
670 } else if (cst instanceof Short) {
671 int val = ((Short) cst).intValue();
673 } else if (cst instanceof Boolean) {
674 int val = ((Boolean) cst).booleanValue() ? 1 : 0;
676 } else if (cst instanceof Float) {
677 float val = ((Float) cst).floatValue();
679 } else if (cst instanceof Long) {
680 long val = ((Long) cst).longValue();
682 } else if (cst instanceof Double) {
683 double val = ((Double) cst).doubleValue();
685 } else if (cst instanceof String) {
686 aconst(cst);
687 } else if (cst instanceof Type) {
688 tconst((Type) cst);
689 } else if (cst instanceof Handle) {
690 hconst((Handle) cst);
724 public void aconst(final Object cst) {
725 if (cst == null) {
728 mv.visitLdcInsn(cst);
732 public void iconst(final int cst) {
733 if (cst >= -1 && cst <= 5) {
734 mv.visitInsn(Opcodes.ICONST_0 + cst);
735 } else if (cst >= Byte.MIN_VALUE && cst <= Byte.MAX_VALUE) {
736 mv.visitIntInsn(Opcodes.BIPUSH, cst);
737 } else if (cst >= Short.MIN_VALUE && cst <= Short.MAX_VALUE) {
738 mv.visitIntInsn(Opcodes.SIPUSH, cst);
740 mv.visitLdcInsn(cst);
744 public void lconst(final long cst) {
745 if (cst == 0L || cst == 1L) {
746 mv.visitInsn(Opcodes.LCONST_0 + (int) cst);
748 mv.visitLdcInsn(cst);
752 public void fconst(final float cst) {
753 int bits = Float.floatToIntBits(cst);
755 mv.visitInsn(Opcodes.FCONST_0 + (int) cst);
757 mv.visitLdcInsn(cst);
761 public void dconst(final double cst) {
762 long bits = Double.doubleToLongBits(cst);
764 mv.visitInsn(Opcodes.DCONST_0 + (int) cst);
766 mv.visitLdcInsn(cst);