Package de.foconis.lsext

Examples of de.foconis.lsext.Java2LSExt


    List<Object> ret = new ArrayList<Object>(2);
    ret.add(res);
    ret.add(retDocMap);
    if (iProtLevel > 1)
      protocol("getSolveRetStr:", null, ret);
    return (new Java2LSExt(ret)).toLSExt();
  }
View Full Code Here


  private String nothing() {

    List<Object> ret = new ArrayList<Object>(2);
    ret.add(null);
    ret.add(null);
    Java2LSExt j2ls = new Java2LSExt(ret);
    if (iProtLevel > 0)
      protocol("Returning nothing()");
    return j2ls.toLSExt();
  }
View Full Code Here

      al = new ArrayList<String>();
    else
      al = new ArrayList<String>(iASTNode.getReadFields());
    if (iProtLevel > 0)
      protocol("getInputFields:", null, al);
    return (new Java2LSExt(al)).toLSExt();
  }
View Full Code Here

    buff = null;
    LSExt2Java ls2j = new LSExt2Java(lsStr);
    Object o = ls2j.toJavaObj();
    System.out.println("Erster toJavaObj:");
    ls2j.dumpObject(System.out, o);
    Java2LSExt j2ls = new Java2LSExt(o);
    String newLSStr = j2ls.toLSExt();
    System.out.println("Erster toLSExt:");
    System.out.println(newLSStr);
    ls2j = new LSExt2Java(newLSStr);
    Object o2 = ls2j.toJavaObj();
    System.out.println("Zweiter toJavaObj:");
    ls2j.dumpObject(System.out, o2);
    j2ls = new Java2LSExt(o2);
    String newLSStr2 = j2ls.toLSExt();
    System.out.println("Zweiter toLSExt:");
    System.out.println(newLSStr2);
    System.out.println("newLSStr2 eq newLSStr=" + newLSStr2.equals(newLSStr));
    if (!(o2 instanceof List))
      throw new IllegalStateException("o2 isn't a List???");
    @SuppressWarnings("unchecked")
    List<Object> l2 = (List<Object>) o2;
    l2.add(0, new Long(33123456789L));
    j2ls = new Java2LSExt(o2);
    String newLSStr3 = j2ls.toLSExt();
    System.out.println("Dritter toLSExt:");
    System.out.println(newLSStr3);
    l2.add(0, new Integer(7));
    l2.add(0, new Short((short) 13));
    l2.add(0, new Byte((byte) 27));
    l2.add(0, new Boolean(true));
    l2.add(0, new Boolean(false));
    j2ls = new Java2LSExt(o2);
    String newLSStr4 = j2ls.toLSExt();
    System.out.println("Vierter toLSExt:");
    System.out.println(newLSStr4);
    loopTest(o2);
  }
View Full Code Here

  private void loopTest(Object o) {
    long start = System.currentTimeMillis();
    System.out.println("Looptest start: " + start);
    for (int i = 0; i < 100000; i++) {
      Java2LSExt j2ls = new Java2LSExt(o);
      String s = j2ls.toLSExt();
      LSExt2Java ls2j = new LSExt2Java(s);
      o = ls2j.toJavaObj();
    }
    long ready = System.currentTimeMillis();
    System.err.println("Looptest ready: " + ready + " [" + (ready - start) + "]");
View Full Code Here

TOP

Related Classes of de.foconis.lsext.Java2LSExt

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.