Package erjang

Examples of erjang.EString$SubSequence


  @BIF 
  static public EString float_to_list(EObject obj) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EString(value.format(ERT.NIL));
    }
    throw ERT.badarg(obj);
  }
View Full Code Here


  @BIF
  static public EString float_to_list(EObject obj, EObject options) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EString(value.format(options));
    }
    throw ERT.badarg(obj, options);
  }
View Full Code Here

  @BIF
  public static EString atom_to_list(EObject atom) {
    EAtom am = atom.testAtom();
    if (am == null)
      throw ERT.badarg(atom);
    return new EString(am.getName());
  }
View Full Code Here

  }
 
  @BIF
  public static EObject load_nif(EObject path, EObject info)
  {
    EString str = path.testString();
    if (str == null) { throw ERT.badarg(path, info); }
   
    NIF nif = NIF.load(str.stringValue() + ".so", info);
    if (nif == null) {
      return new ETuple2(ERT.am_error,
            new ETuple2(am_load_failed, ERT.am_undefined)
          );
    } else {
View Full Code Here

    atts = atts.cons(ETuple2.make(att, value));
  }

  @Override
  public void visitCompile(EAtom att, EObject value) {
    EString string;
    if (att == am_source && (string = value.testString()) != null) {
      source = string.stringValue();
    }
    compile_info = compile_info.cons(ETuple2.make(att, value));
  }
View Full Code Here

    ETuple2 name;
    ETuple3 name3;
    if ((name = ETuple2.cast(t)) != null) {

      EAtom am = name.elem2.testAtom();
      EString command = (am == null)
          ? (EString)EString.make(name.elem2)
          : EString.fromString(am.getName());

      if (name.elem1 == am_spawn) {
        EDriver drv = ERT.find_driver(command);
View Full Code Here

TOP

Related Classes of erjang.EString$SubSequence

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.