public class CompilationStateBuilder extends Object
Modifier and Type | Class and Description |
---|---|
class |
CompilationStateBuilder.CompileMoreLater
An opaque class that lets you compile more units later.
|
Constructor and Description |
---|
CompilationStateBuilder() |
Modifier and Type | Method and Description |
---|---|
static void |
addArchive(CompilationUnitArchive module)
Use previously compiled
CompilationUnit s to pre-populate the unit
cache. |
static CompilationState |
buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources)
Compiles the given source files and adds them to the CompilationState.
|
static CompilationState |
buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate delegate)
Compiles the given source files and adds them to the CompilationState.
|
CompilationState |
doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources) |
CompilationState |
doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate compilerDelegate)
Build a new compilation state from a source oracle.
|
static CompilationStateBuilder |
get() |
static void |
init(TreeLogger logger,
File cacheDirectory)
Called to setup the directory where the persistent
CompilationUnit
cache should be stored. |
public static void addArchive(CompilationUnitArchive module)
CompilationUnit
s to pre-populate the unit
cache.public static CompilationState buildFrom(TreeLogger logger, CompilerContext compilerContext, Set<Resource> resources) throws UnableToCompleteException
CompilationStateBuilder.CompileMoreLater.compile(com.google.gwt.core.ext.TreeLogger, com.google.gwt.dev.CompilerContext, java.util.Collection<com.google.gwt.dev.javac.CompilationUnitBuilder>, java.util.Map<com.google.gwt.dev.javac.CompilationUnitBuilder, com.google.gwt.dev.javac.CompilationUnit>, com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger.EventType)
for details.UnableToCompleteException
- if the compiler aborts (not a normal compile error).public static CompilationState buildFrom(TreeLogger logger, CompilerContext compilerContext, Set<Resource> resources, JdtCompiler.AdditionalTypeProviderDelegate delegate) throws UnableToCompleteException
CompilationStateBuilder.CompileMoreLater.compile(com.google.gwt.core.ext.TreeLogger, com.google.gwt.dev.CompilerContext, java.util.Collection<com.google.gwt.dev.javac.CompilationUnitBuilder>, java.util.Map<com.google.gwt.dev.javac.CompilationUnitBuilder, com.google.gwt.dev.javac.CompilationUnit>, com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger.EventType)
for details.UnableToCompleteException
- if the compiler aborts (not a normal compile error).public static CompilationStateBuilder get()
public static void init(TreeLogger logger, File cacheDirectory)
CompilationUnit
cache should be stored. Only the first call to init() will have an effect.public CompilationState doBuildFrom(TreeLogger logger, CompilerContext compilerContext, Set<Resource> resources, JdtCompiler.AdditionalTypeProviderDelegate compilerDelegate) throws UnableToCompleteException
UnableToCompleteException
public CompilationState doBuildFrom(TreeLogger logger, CompilerContext compilerContext, Set<Resource> resources) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.