Class JavacParser

java.lang.Object
com.google.j2cl.transpiler.frontend.javac.JavacParser

public class JavacParser extends Object
A delegator of Javac ASTParser that provides a more convenient interface for parsing source files into compilation unit.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JavacParser(com.google.j2cl.common.Problems problems)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.j2cl.transpiler.ast.Library
    parseFiles(com.google.j2cl.transpiler.frontend.common.FrontendOptions options)
    Returns a map from file paths to compilation units after Javac parsing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavacParser

      public JavacParser(com.google.j2cl.common.Problems problems)
  • Method Details

    • parseFiles

      @Nullable public com.google.j2cl.transpiler.ast.Library parseFiles(com.google.j2cl.transpiler.frontend.common.FrontendOptions options)
      Returns a map from file paths to compilation units after Javac parsing.