Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangChar


      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }
View Full Code Here


      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }
View Full Code Here

    if (attributes.arity() != 0) throw new IllegalArgumentException("CharSignature does not accept attributes");
  }

  @Override
  public OtpErlangObject instantiate() {
        return new OtpErlangChar('w');
    }
View Full Code Here

    return term instanceof OtpErlangChar;
  }

  @Override
  public List<OtpErlangObject> instantiateAllAlts() {
    return Collections.singletonList((OtpErlangObject)new OtpErlangChar('w'));
  }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangChar charValue = (OtpErlangChar) arg;
      resultHolder.append(charValue.longValue());
    }
View Full Code Here

* @version $Rev$ $Date$
*/
public class CharTypeHelper implements TypeHelper {

  public OtpErlangObject toErlang(Object object) {
    return new OtpErlangChar((Character) object);
  }
View Full Code Here

        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);
View Full Code Here

    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) {
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangChar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.