Class JavacParser
java.lang.Object
com.google.j2cl.transpiler.frontend.javac.JavacParser
A delegator of Javac ASTParser that provides a more convenient interface for parsing source files
into compilation unit.
-
Constructor Summary
ConstructorsConstructorDescriptionJavacParser(List<String> classpathEntries, com.google.j2cl.common.Problems problems) Create and initialize a JavacParser based on passed parameters. -
Method Summary
Modifier and TypeMethodDescriptionList<com.google.j2cl.transpiler.ast.CompilationUnit>parseFiles(List<com.google.j2cl.common.SourceUtils.FileInfo> filePaths, boolean useTargetPath, com.google.common.collect.ImmutableList<String> forbiddenAnnotations) Returns a map from file paths to compilation units after Javac parsing.
-
Constructor Details
-
JavacParser
Create and initialize a JavacParser based on passed parameters.
-
-
Method Details
-
parseFiles
@Nullable public List<com.google.j2cl.transpiler.ast.CompilationUnit> parseFiles(List<com.google.j2cl.common.SourceUtils.FileInfo> filePaths, boolean useTargetPath, com.google.common.collect.ImmutableList<String> forbiddenAnnotations) Returns a map from file paths to compilation units after Javac parsing.
-