13031304130513061307130813091310
return singleton; } @Override public void dump(OtpErlangObject arg, StringBuffer resultHolder) { OtpErlangChar charValue = (OtpErlangChar) arg; resultHolder.append(charValue.longValue()); }
34353637383940
if (attributes.arity() != 0) throw new IllegalArgumentException("CharSignature does not accept attributes"); } @Override public OtpErlangObject instantiate() { return new OtpErlangChar('w'); }
45464748495051
return term instanceof OtpErlangChar; } @Override public List<OtpErlangObject> instantiateAllAlts() { return Collections.singletonList((OtpErlangObject)new OtpErlangChar('w')); }
27282930313233
* @version $Rev$ $Date$ */ public class CharTypeHelper implements TypeHelper { public OtpErlangObject toErlang(Object object) { return new OtpErlangChar((Character) object); }
338339340341342343344345346347348
if (obj instanceof String) { return cvtString(obj, type); } if (obj instanceof Character) { if (type.kind == 'i') { return new OtpErlangChar((Character) obj); } failConversion(obj, type); } if (obj instanceof Number) { return cvtNumber(obj, type);
518519520521522523524525526527528
private static OtpErlangObject java2erlang(final Object obj) { if (obj instanceof String) { return new OtpErlangString((String) obj); } if (obj instanceof Character) { return new OtpErlangChar((Character) obj); } if (obj instanceof Byte) { return new OtpErlangByte((Byte) obj); } if (obj instanceof Short) {