public interface LibraryWriter
Modifier and Type | Method and Description |
---|---|
void |
addBuildResource(Resource buildResource)
Adds a build resource.
|
void |
addCompilationUnit(CompilationUnit compilationUnit)
Adds a previously compiled (but not yet unified) compilation unit.
Provided compilation units are assumed to have already been validated. |
void |
addDependencyLibraryName(String dependencyLibraryName)
Registers a dependency on some other library.
|
void |
addDependencyLibraryNames(Set<String> dependencyLibraryNames)
Registers dependency on a set of other libraries.
|
void |
addGeneratedArtifacts(ArtifactSet generatedArtifacts)
Adds a generated artifact.
|
void |
addPublicResource(Resource publicResource)
Adds a public resource (such as a html, css, or png file).
|
PersistenceBackedObject<PermutationResult> |
getPermutationResultHandle()
Returns a handle to the permutation result object that was constructed as part of the
compilation for this library.
|
Set<String> |
getProcessedReboundTypeSourceNames(String generatorName)
Returns the set of source names of rebound types that have been processed by the given
Generator.
|
Set<String> |
getReboundTypeSourceNames()
Returns the set of source names of types which are the subject of GWT.create() calls in source
code for this library.
|
void |
markReboundTypeProcessed(String processedReboundTypeSourceName,
String generatorName)
Registers the type (by it's source name) as having been processed by the given generator.
|
void |
markReboundTypesProcessed(Set<String> reboundTypeSourceNames)
Records the set of names of types which are the subject of GWT.create() calls in source code
for this library.
|
void |
setCompilationErrorsIndex(CompilationErrorsIndex compilationErrorsIndex)
Records a source of compilation error information to support detailed logging.
|
void |
setLibraryName(String libraryName)
Records the library name.
Library names are the way that libraries reference one another as dependencies and should be unique within the build tree. |
void |
write()
Finishes writing all library contents and closes the library.
|
void addBuildResource(Resource buildResource)
void addCompilationUnit(CompilationUnit compilationUnit)
void addDependencyLibraryName(String dependencyLibraryName)
void addDependencyLibraryNames(Set<String> dependencyLibraryNames)
void addGeneratedArtifacts(ArtifactSet generatedArtifacts)
void addPublicResource(Resource publicResource)
PersistenceBackedObject<PermutationResult> getPermutationResultHandle()
Set<String> getProcessedReboundTypeSourceNames(String generatorName)
Set<String> getReboundTypeSourceNames()
void markReboundTypeProcessed(String processedReboundTypeSourceName, String generatorName)
void markReboundTypesProcessed(Set<String> reboundTypeSourceNames)
void setCompilationErrorsIndex(CompilationErrorsIndex compilationErrorsIndex)
void setLibraryName(String libraryName)
void write()
Copyright © 2018. All rights reserved.