Lines Matching defs:cst
884 * @param cst the value of the constant to be added to the constant pool.
890 Item newConstItem(final Object cst) {
891 if (cst instanceof Integer) {
892 int val = ((Integer) cst).intValue();
894 } else if (cst instanceof Byte) {
895 int val = ((Byte) cst).intValue();
897 } else if (cst instanceof Character) {
898 int val = ((Character) cst).charValue();
900 } else if (cst instanceof Short) {
901 int val = ((Short) cst).intValue();
903 } else if (cst instanceof Boolean) {
904 int val = ((Boolean) cst).booleanValue() ? 1 : 0;
906 } else if (cst instanceof Float) {
907 float val = ((Float) cst).floatValue();
909 } else if (cst instanceof Long) {
910 long val = ((Long) cst).longValue();
912 } else if (cst instanceof Double) {
913 double val = ((Double) cst).doubleValue();
915 } else if (cst instanceof String) {
916 return newString((String) cst);
917 } else if (cst instanceof Type) {
918 Type t = (Type) cst;
923 throw new IllegalArgumentException("value " + cst);
933 * @param cst the value of the constant to be added to the constant pool.
939 public int newConst(final Object cst) {
940 return newConstItem(cst).index;