public class LibraryGroup extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LibraryGroup.CollidingCompilationUnitException
An exception that indicates that a single Compilation Unit is being provided by more than one
library.
|
static class |
LibraryGroup.DuplicateLibraryNameException
An exception that indicates that more than one library has the same name, thus making name
based references ambiguous.
|
static class |
LibraryGroup.UnresolvedLibraryException
An exception that indicates that some library was referenced as a dependency but was not
provided to the compiler.
|
Modifier | Constructor and Description |
---|---|
protected |
LibraryGroup() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all read streams.
|
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 String |
formatDuplicateCompilationUnitMessage(String compilationUnitTypeSourceName,
String oldLibraryName,
String newLibraryName) |
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.
|
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.
|
CompilationErrorsIndex |
getCompilationErrorsIndex() |
CompilationUnit |
getCompilationUnitByTypeBinaryName(String typeBinaryName)
Returns the compilation unit for the given compilation unit type name if present or null.
|
CompilationUnit |
getCompilationUnitByTypeSourceName(String typeSourceName)
Returns the compilation unit for the given compilation unit type name if present or null.
|
Set<String> |
getCompilationUnitTypeSourceNames()
Returns the set of all compilation unit type source names (both regular and super sourced).
|
ArtifactSet |
getGeneratedArtifacts() |
List<PersistenceBackedObject<PermutationResult>> |
getPermutationResultHandlesInLinkOrder()
Returns the list of all permutation result handles (one per library) in library link order.
|
Set<String> |
getProcessedReboundTypeSourceNames(String generatorName)
Returns a list of source names of types which have already been rebound by the given generator.
|
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> |
getReboundTypeSourceNames()
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> |
getSuperSourceCompilationUnitTypeSourceNames()
Returns the set of compilation unit type source names for all contained super source
compilation units.
|
void |
verify(TreeLogger logger) |
public static String formatDuplicateCompilationUnitMessage(String compilationUnitTypeSourceName, String oldLibraryName, String newLibraryName)
public static LibraryGroup fromLibraries(List<? extends Library> libraries, boolean verifyLibraryReferences)
public static LibraryGroup fromZipPaths(List<String> zipLibraryPaths) throws Libraries.IncompatibleLibraryVersionException
public void close()
public boolean containsBuildResource(String buildResourcePath)
public LibraryGroup createSubgroup(List<String> libraryNames)
public Resource getBuildResourceByPath(String buildResourcePath)
public Set<String> getBuildResourcePaths()
public InputStream getClassFileStream(String classFilePath)
public CompilationErrorsIndex getCompilationErrorsIndex()
public CompilationUnit getCompilationUnitByTypeBinaryName(String typeBinaryName)
public CompilationUnit getCompilationUnitByTypeSourceName(String typeSourceName)
public Set<String> getCompilationUnitTypeSourceNames()
public ArtifactSet getGeneratedArtifacts()
public List<PersistenceBackedObject<PermutationResult>> getPermutationResultHandlesInLinkOrder()
public Set<String> getProcessedReboundTypeSourceNames(String generatorName)
public Resource getPublicResourceByPath(String path)
public Set<String> getPublicResourcePaths()
public Set<String> getReboundTypeSourceNames()
public Set<String> getSuperSourceCompilationUnitTypeSourceNames()
public void verify(TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.