Package org.lilystudio.javascript

Examples of org.lilystudio.javascript.JSCompressor


    Assert.assertEquals("字符串合并", "a+\"a\"+\"b\"", getResult("a+'a'+'b'"));
  }

  private String getResult(String data) throws Exception {
    Writer writer = new StringWriter();
    new JSCompressor().compress(new StringReader(data), writer, false,
        JSCompressor.SEMANTICS);
    return writer.toString();
  }
View Full Code Here

TOP

Related Classes of org.lilystudio.javascript.JSCompressor

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.