public class LibraryGroup extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LibraryGroup.UnresolvedLibraryException
An exception that indicates that some library was referenced as a dependency but was not
provided to the compiler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsBuildResource(String buildResourcePath)
Returns whether a build resource is is available at the given path.
|
LibraryGroup |
createSubgroup(List<String> libraryNames)
Create and return a library group of just the given libraries referenced by name.
|
static LibraryGroup |
fromLibraries(List<? extends Library> libraries,
boolean verifyLibraryReferences)
Factory function that constructs and returns a library group from a list of libraries.
|
static LibraryGroup |
fromZipPaths(List<String> zipLibraryPaths)
Factory function that constructs and returns a library group from a list of zip library paths.
|
com.google.gwt.thirdparty.guava.common.collect.Multimap<String,String> |
gatherNewBindingPropertyValuesForGenerator(String generatorName)
Walks the parts of the library dependency graph that have not run the given generator
referenced by name and accumulates and returns a map from binding property name to newly legal
values that were declared in those libraries.
|
com.google.gwt.thirdparty.guava.common.collect.Multimap<String,String> |
gatherNewConfigurationPropertyValuesForGenerator(String generatorName)
Walks the parts of the library dependency graph that have not run the given generator
referenced by name and accumulates and returns a map from configuration property name to newly
set values that were declared in those libraries.
|
Set<String> |
gatherNewReboundTypeNamesForGenerator(String generatorName)
Walks the parts of the library dependency graph that have not run the given generator
referenced by name and accumulates and returns a set of newly rebound type names.
|
Set<String> |
gatherOldReboundTypeNamesForGenerator(String generatorName)
Walks the parts of the library dependency graph that have already run the given generator
referenced by name and accumulates and returns the set of old rebound type names.
|
Resource |
getBuildResourceByPath(String buildResourcePath)
Returns the resource referenced by name if present or null;
|
Set<String> |
getBuildResourcePaths()
Returns the set of all build resource paths.
|
InputStream |
getClassFileStream(String classFilePath)
Opens and returns an input stream for the given class file path if present or null.
|
CompilationUnit |
getCompilationUnitByTypeName(String typeName)
Returns the compilation unit for the given compilation unit type name if present or null.
|
Set<String> |
getCompilationUnitTypeNames()
Returns the set of all compilation unit type names.
|
List<PersistenceBackedObject<PermutationResult>> |
getPermutationResultHandlesInLinkOrder()
Returns the list of all permutation result handles (one per library) in library link order.
|
Resource |
getPublicResourceByPath(String path)
Returns the resource referenced by name if present or null;
|
Set<String> |
getPublicResourcePaths()
Returns the set of all public resource paths.
|
Set<String> |
getReboundTypeNames()
Returns the set of names of types which are the subject of GWT.create() calls in source code in
any of the contained libraries.
|
Set<String> |
getSuperSourceCompilationUnitTypeNames()
Returns the set of compilation unit type names for all contained super source compilation
units.
|
public static LibraryGroup fromLibraries(List<? extends Library> libraries, boolean verifyLibraryReferences)
public static LibraryGroup fromZipPaths(List<String> zipLibraryPaths) throws com.google.gwt.dev.cfg.Libraries.IncompatibleLibraryVersionException
com.google.gwt.dev.cfg.Libraries.IncompatibleLibraryVersionException
public boolean containsBuildResource(String buildResourcePath)
public LibraryGroup createSubgroup(List<String> libraryNames)
public com.google.gwt.thirdparty.guava.common.collect.Multimap<String,String> gatherNewBindingPropertyValuesForGenerator(String generatorName)
public com.google.gwt.thirdparty.guava.common.collect.Multimap<String,String> gatherNewConfigurationPropertyValuesForGenerator(String generatorName)
public Set<String> gatherNewReboundTypeNamesForGenerator(String generatorName)
public Set<String> gatherOldReboundTypeNamesForGenerator(String generatorName)
public Resource getBuildResourceByPath(String buildResourcePath)
public Set<String> getBuildResourcePaths()
public InputStream getClassFileStream(String classFilePath)
public CompilationUnit getCompilationUnitByTypeName(String typeName)
public Set<String> getCompilationUnitTypeNames()
public List<PersistenceBackedObject<PermutationResult>> getPermutationResultHandlesInLinkOrder()
public Resource getPublicResourceByPath(String path)
public Set<String> getPublicResourcePaths()
public Set<String> getReboundTypeNames()
Copyright © 2018. All rights reserved.