Lines Matching defs:cst
1048 * @param cst
1055 Item newConstItem(final Object cst) {
1056 if (cst instanceof Integer) {
1057 int val = ((Integer) cst).intValue();
1059 } else if (cst instanceof Byte) {
1060 int val = ((Byte) cst).intValue();
1062 } else if (cst instanceof Character) {
1063 int val = ((Character) cst).charValue();
1065 } else if (cst instanceof Short) {
1066 int val = ((Short) cst).intValue();
1068 } else if (cst instanceof Boolean) {
1069 int val = ((Boolean) cst).booleanValue() ? 1 : 0;
1071 } else if (cst instanceof Float) {
1072 float val = ((Float) cst).floatValue();
1074 } else if (cst instanceof Long) {
1075 long val = ((Long) cst).longValue();
1077 } else if (cst instanceof Double) {
1078 double val = ((Double) cst).doubleValue();
1080 } else if (cst instanceof String) {
1081 return newString((String) cst);
1082 } else if (cst instanceof Type) {
1083 Type t = (Type) cst;
1092 } else if (cst instanceof Handle) {
1093 Handle h = (Handle) cst;
1096 throw new IllegalArgumentException("value " + cst);
1106 * @param cst
1113 public int newConst(final Object cst) {
1114 return newConstItem(cst).index;