Package lombok.javac

Examples of lombok.javac.CommentCatcher


  protected Node parseWithTargetCompiler(Source source) {
    Context context = new Context();
   
    Options.instance(context).put(OptionName.ENCODING, "UTF-8");
   
    CommentCatcher catcher = CommentCatcher.create(context);
    JavaCompiler compiler = catcher.getCompiler();
   
    JCCompilationUnit cu = compiler.parse(new ContentBasedJavaFileObject(source.getName(), source.getRawInput()));
    JcTreeConverter converter = new JcTreeConverter();
    converter.visit(cu);
    return converter.getResultWithJavadoc(catcher.getComments(cu));
  }
View Full Code Here

TOP

Related Classes of lombok.javac.CommentCatcher

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.