Class CompilationUnitBuilder
java.lang.Object
com.google.j2cl.transpiler.frontend.common.AbstractCompilationUnitBuilder
com.google.j2cl.transpiler.frontend.javac.CompilationUnitBuilder
public class CompilationUnitBuilder
extends com.google.j2cl.transpiler.frontend.common.AbstractCompilationUnitBuilder
Creates a J2CL Java AST from the AST provided by JavaC.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.CompilationUnit>build(List<CompilationUnitTree> compilationUnits, JavaEnvironment javaEnvironment) Methods inherited from class com.google.j2cl.transpiler.frontend.common.AbstractCompilationUnitBuilder
getCurrentCompilationUnit, getCurrentSourceFile, getCurrentType, internalCompilerError, internalCompilerError, internalCompilerErrorMessage, processEnclosedBy, setCurrentCompilationUnit, setCurrentSourceFile, toResource
-
Method Details
-
build
public static com.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.CompilationUnit> build(List<CompilationUnitTree> compilationUnits, JavaEnvironment javaEnvironment)
-