Package org.jruby.parser

Examples of org.jruby.parser.Parser


    if (original.equals("")) return original;
       
        StringWriter outputWriter = new StringWriter();
        ReWriteVisitor visitor = new ReWriteVisitor(outputWriter, original);
        ParserConfiguration configuration = new ParserConfiguration(0, true, false);
        new Parser(null).parseRewriter("", new ByteArrayInputStream(original.getBytes()), configuration).accept(visitor);
    visitor.flushStream();
    return outputWriter.getBuffer().toString();
  }
View Full Code Here

TOP

Related Classes of org.jruby.parser.Parser

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.