public class CompilationState extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,CompiledClass> |
classFileMap
Classes mapped by internal name.
|
protected Map<String,CompiledClass> |
classFileMapBySource
Classes mapped by source name.
|
protected Map<String,CompilationUnit> |
unitMap
All my compilation units.
|
Modifier and Type | Method and Description |
---|---|
void |
addGeneratedCompilationUnits(TreeLogger logger,
Collection<GeneratedUnit> generatedUnits)
Compiles the given source files (unless cached) and adds them to the
CompilationState.
|
int |
getCachedGeneratedSourceCount() |
int |
getCachedStaticSourceCount() |
Map<String,CompiledClass> |
getClassFileMap()
Returns a map of all compiled classes by internal name.
|
Map<String,CompiledClass> |
getClassFileMapBySource()
Returns a map of all compiled classes by source name.
|
Map<String,CompilationUnit> |
getCompilationUnitMap()
Returns an unmodifiable view of the set of compilation units, mapped by the
main type's qualified source name.
|
Collection<CompilationUnit> |
getCompilationUnits()
Returns an unmodifiable view of the set of compilation units.
|
CompilerContext |
getCompilerContext() |
int |
getGeneratedSourceCount() |
Iterable<String> |
getQualifiedJsInteropRootTypesNames() |
int |
getStaticSourceCount() |
TypeOracle |
getTypeOracle() |
Map<String,CompiledClass> |
getValidClasses() |
boolean |
hasErrors()
Whether any errors were encountered while building this compilation state.
|
void |
incrementCachedGeneratedSourceCount(int extraCachedGeneratedSourceCount) |
void |
incrementCachedStaticSourceCount(int extraCachedStaticSourceCount) |
void |
incrementGeneratedSourceCount(int extraGeneratedSourceCount) |
void |
incrementStaticSourceCount(int extraStaticSourceCount) |
protected final Map<String,CompiledClass> classFileMap
protected final Map<String,CompiledClass> classFileMapBySource
protected final Map<String,CompilationUnit> unitMap
public void addGeneratedCompilationUnits(TreeLogger logger, Collection<GeneratedUnit> generatedUnits) throws UnableToCompleteException
UnableToCompleteException
public int getCachedGeneratedSourceCount()
public int getCachedStaticSourceCount()
public Map<String,CompiledClass> getClassFileMap()
public Map<String,CompiledClass> getClassFileMapBySource()
public Map<String,CompilationUnit> getCompilationUnitMap()
public Collection<CompilationUnit> getCompilationUnits()
public CompilerContext getCompilerContext()
public int getGeneratedSourceCount()
public int getStaticSourceCount()
public TypeOracle getTypeOracle()
public Map<String,CompiledClass> getValidClasses()
public boolean hasErrors()
public void incrementCachedGeneratedSourceCount(int extraCachedGeneratedSourceCount)
public void incrementCachedStaticSourceCount(int extraCachedStaticSourceCount)
public void incrementGeneratedSourceCount(int extraGeneratedSourceCount)
public void incrementStaticSourceCount(int extraStaticSourceCount)
Copyright © 2018. All rights reserved.