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 Type
    Method
    Description
    static com.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.CompilationUnit>
    build(List<CompilationUnitTree> compilationUnits, com.google.j2cl.transpiler.frontend.javac.JavaEnvironment javaEnvironment)
     

    Methods inherited from class com.google.j2cl.transpiler.frontend.common.AbstractCompilationUnitBuilder

    getCurrentCompilationUnit, getCurrentSourceFile, getCurrentType, internalCompilerError, internalCompilerError, internalCompilerErrorMessage, processEnclosedBy, setCurrentCompilationUnit, setCurrentSourceFile, toResource

    Methods inherited from class java.lang.Object

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

    • build

      public static com.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.CompilationUnit> build(List<CompilationUnitTree> compilationUnits, com.google.j2cl.transpiler.frontend.javac.JavaEnvironment javaEnvironment)