Examples of testSmall()


Examples of erjang.EInteger.testSmall()

  @Override
  public ESmall testSmall() {
    EInteger iv;
    if ((iv = testInteger()) != null) {
      return iv.testSmall();
    }

    return null;
  }
 
View Full Code Here

Examples of erjang.EInteger.testSmall()

      throw ERT.badarg(arg, radix);

    String out;
    EBig big;
    ESmall small;
    if ((small=i.testSmall()) != null) {
      out = Integer.toString(small.value, r.value);
    } else if ((big=i.testBig()) != null) {
      out = big.value.toString(r.value);
    } else {
      throw ERT.badarg(arg, radix);
View Full Code Here

Examples of erjang.EObject.testSmall()

      } else if ((spec=capture_spec.testSeq()) != null) {
       
        // if it is a sequence, make sure elements are integers
        while (!spec.isNil()) {
          EObject val = spec.head();
          if (val.testSmall() == null && val.testString() == null && val.testAtom() == null)
            return false;
          spec = spec.tail();
        }
       
        // ok
View Full Code Here

Examples of erjang.EObject.testSmall()

          while (!list.isNil()) {
            EObject group = list.head();
            ESmall num;
            EAtom nam;
            EString nam2;
            if ((num=group.testSmall()) != null)
            {
              l = l.cons( capture (subject, mr, num.value, o2 ));
            } else if ((nam=group.testAtom()) != null) {
              Integer groupNo = o2.named_groups.get(nam.getName());
              if (groupNo != null) {
View Full Code Here

Examples of erjang.EObject.testSmall()

         
          ESeq out = ERT.NIL;
         
           for (; !il.isNil(); il = il.tail()) {
             EObject what = il.head();
            ESmall idx = what.testSmall();
             EAtom nam;
            if (idx != null && mr.start(idx.value) != -1) {
               EObject val = capture (subject, mr, idx.value, o2);
               out = out.cons(val);
             } else if ((nam=what.testAtom())!=null) {
View Full Code Here

Examples of erjang.EObject.testSmall()

      EObject hd = cons.head();

      ESmall sm;
      EBinary bi;
      ECons co;
      if ((sm = hd.testSmall()) != null) {
        if (sm.value < 0 || sm.value > 255)
          throw ERT.badarg(list);
        barr.write(sm.value);
      } else if ((bi = hd.testBinary()) != null) {
        bi.writeTo(barr);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.