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.
|
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.
|
TypeOracle |
getTypeOracle() |
boolean |
hasErrors()
Whether any errors were encountered while building this compilation state.
|
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 Map<String,CompiledClass> getClassFileMap()
public Map<String,CompiledClass> getClassFileMapBySource()
public Map<String,CompilationUnit> getCompilationUnitMap()
public Collection<CompilationUnit> getCompilationUnits()
public TypeOracle getTypeOracle()
public boolean hasErrors()
Copyright © 2018. All rights reserved.