Package | Description |
---|---|
com.google.gwt.dev | |
com.google.gwt.dev.cfg | |
com.google.gwt.dev.javac |
Modifier and Type | Method and Description |
---|---|
void |
MinimalRebuildCache.recordNestedTypeNamesPerType(CompilationUnit compilationUnit) |
void |
NullRebuildCache.recordNestedTypeNamesPerType(CompilationUnit compilationUnit) |
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
ZipLibrary.getCompilationUnitByTypeBinaryName(String typeBinaryName) |
CompilationUnit |
LibraryGroup.getCompilationUnitByTypeBinaryName(String typeBinaryName)
Returns the compilation unit for the given compilation unit type name if present or null.
|
CompilationUnit |
Library.getCompilationUnitByTypeBinaryName(String typeBinaryName)
Returns the compilation unit containing the type with the given binary name.
|
CompilationUnit |
ZipLibrary.getCompilationUnitByTypeSourceName(String typeSourceName) |
CompilationUnit |
LibraryGroup.getCompilationUnitByTypeSourceName(String typeSourceName)
Returns the compilation unit for the given compilation unit type name if present or null.
|
CompilationUnit |
Library.getCompilationUnitByTypeSourceName(String typeSourceName)
Returns the compilation unit containing the type with the given source name.
|
Modifier and Type | Method and Description |
---|---|
void |
ZipLibraryWriter.addCompilationUnit(CompilationUnit compilationUnit) |
void |
LibraryWriter.addCompilationUnit(CompilationUnit compilationUnit)
Adds a previously compiled (but not yet unified) compilation unit.
Provided compilation units are assumed to have already been validated. |
void |
NullLibraryWriter.addCompilationUnit(CompilationUnit compilationUnit) |
Modifier and Type | Class and Description |
---|---|
class |
CachedCompilationUnit
A convenient way to serialize a .
|
Modifier and Type | Field and Description |
---|---|
static Comparator<CompilationUnit> |
CompilationUnit.COMPARATOR |
protected Map<String,CompilationUnit> |
CompilationState.unitMap
All my compilation units.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
CompilationUnitBuilder.build() |
CompilationUnit |
UnitCache.find(com.google.gwt.dev.javac.ContentId contentId)
Lookup a
CompilationUnit by ContentId . |
CompilationUnit |
MemoryUnitCache.find(com.google.gwt.dev.javac.ContentId contentId) |
CompilationUnit |
LibraryGroupUnitCache.find(com.google.gwt.dev.javac.ContentId contentId)
Finds and returns the compilation unit for the type name referenced in the provided ContentId.
|
CompilationUnit |
UnitCache.find(String resourcePath)
Lookup a
CompilationUnit by resource path. |
CompilationUnit |
MemoryUnitCache.find(String resourcePath) |
CompilationUnit |
LibraryGroupUnitCache.find(String resourcePath) |
CompilationUnit |
CompiledClass.getUnit() |
CompilationUnit |
MemoryUnitCache.UnitCacheEntry.getUnit() |
protected abstract CompilationUnit |
CompilationUnitBuilder.makeUnit(List<CompiledClass> compiledClasses,
List<JDeclaredType> types,
com.google.gwt.dev.javac.Dependencies dependencies,
Collection<? extends JsniMethod> jsniMethods,
MethodArgNamesLookup methodArgs,
org.eclipse.jdt.core.compiler.CategorizedProblem[] errors) |
Modifier and Type | Method and Description |
---|---|
Collection<CompilationUnit> |
CompilationStateBuilder.CompileMoreLater.addGeneratedTypes(TreeLogger logger,
Collection<GeneratedUnit> generatedUnits,
CompilationState compilationState)
Compiles generated source files (unless cached) and adds them to the
CompilationState.
|
static List<CompilationUnit> |
JdtCompiler.compile(TreeLogger logger,
CompilerContext compilerContext,
Collection<CompilationUnitBuilder> builders)
Compiles the given set of units.
|
Map<String,CompilationUnit> |
CompilationState.getCompilationUnitMap()
Returns an unmodifiable view of the set of compilation units, mapped by the
main type's qualified source name.
|
Collection<CompilationUnit> |
CompilationState.getCompilationUnits()
Returns an unmodifiable view of the set of compilation units.
|
List<CompilationUnit> |
JdtCompiler.DefaultUnitProcessor.getResults() |
Modifier and Type | Method and Description |
---|---|
void |
UnitCache.add(CompilationUnit newUnit)
Adds a
CompilationUnit to the cache. |
void |
MemoryUnitCache.add(CompilationUnit newUnit)
Adds a new entry into the cache.
|
void |
LibraryGroupUnitCache.add(CompilationUnit compilationUnit)
Adds a
CompilationUnit to the cache.Though this class is intended primarily to expose and cache compilation units from previously compiled library files it must also be prepared to accept brand new compilation units resulting from live compilation as this is an absolute requirement for the current compiler design. |
void |
UnitCache.addArchivedUnit(CompilationUnit newUnit)
Adds a new entry into the cache, but marks it as already coming from a
persistent archive.
|
void |
MemoryUnitCache.addArchivedUnit(CompilationUnit newUnit)
Adds a new entry into the cache, but marks it as already coming from a
persistent archive.
|
void |
LibraryGroupUnitCache.addArchivedUnit(CompilationUnit compilationUnit) |
void |
JdtCompiler.addCompiledUnit(CompilationUnit unit) |
void |
CompilationUnitArchive.addUnit(CompilationUnit unit)
Add a compilation unit to the archive.
|
void |
UnitCache.remove(CompilationUnit unit)
Remove a
CompilationUnit from the cache. |
void |
MemoryUnitCache.remove(CompilationUnit unit) |
void |
LibraryGroupUnitCache.remove(CompilationUnit unit) |
static boolean |
CompilationProblemReporter.reportErrors(TreeLogger logger,
CompilationUnit unit,
boolean suppressErrors)
Logs errors to the console.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CompilationUnitTypeOracleUpdater.addNewTypesDontIndex(TreeLogger logger,
Collection<CompilationUnit> compilationUnits) |
void |
CompilationUnitTypeOracleUpdater.addNewUnits(TreeLogger logger,
Collection<CompilationUnit> compilationUnits)
Adds new units to an existing TypeOracle and indexes their type hierarchy.
|
void |
CompilationState.addReferencedCompilationUnits(TreeLogger logger,
List<CompilationUnit> referencedUnits)
Indexes referenced external compilation units but does not save them in a library.
|
static void |
CompilationProblemReporter.indexErrors(CompilationErrorsIndex compilationErrorsIndex,
List<CompilationUnit> units)
Traverses a set of compilation units to record enough information to enable accurate and
detailed compilation error cause traces.
|
static int |
CompilationProblemReporter.logErrorTrace(TreeLogger logger,
TreeLogger.Type logLevel,
CompilerContext compilerContext,
List<CompilationUnit> units,
boolean hint)
Provides meaningful error messages and hints for types that failed to compile or are otherwise
missing.
|
static int |
CompilationProblemReporter.logWarnings(TreeLogger logger,
TreeLogger.Type logLevelForWarnings,
List<CompilationUnit> units) |
static void |
CompilationUnitInvalidator.retainValidUnits(TreeLogger logger,
Collection<CompilationUnit> units,
Map<String,CompiledClass> validClasses,
CompilationErrorsIndex compilationErrorsIndex)
Mutates
units by retaining only valid units. |
Constructor and Description |
---|
UnitCacheEntry(CompilationUnit unit,
MemoryUnitCache.UnitOrigin source) |
Copyright © 2018. All rights reserved.