return CstByte.make((Byte) value); } else if (value instanceof Character) { return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value));
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
/** * Makes an instance for the given {@code int} value. This * may (but does not necessarily) return an already-allocated * instance. * * @param value the value, which must be in range for a {@code char} * @return {@code non-null;} the appropriate instance */ public static CstChar make(int value) { char cast = (char) value; if (cast != value) { throw new IllegalArgumentException("bogus char value: " + value); } return make(cast); }
return CstByte.make((Byte) value); } else if (value instanceof Character) { return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value));
return CstByte.make((Byte) value); } else if (value instanceof Character) { return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value));
return CstByte.make((Byte) value); } else if (value instanceof Character) { return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value));
return CstChar.make(((CstInteger) constant).getValue());
return CstChar.make(((CstInteger) constant).getValue());
return CstChar.make(((CstInteger) constant).getValue());
return CstChar.make(((CstInteger) constant).getValue());
return CstChar.make(((CstInteger) constant).getValue());
return CstChar.make(((CstInteger) constant).getValue());
CstInteger value = (CstInteger) parseConstant(); int intValue = value.getValue(); return CstChar.make(value.getValue());
return CstChar.make(value.getValue());