
public class ZipLibraryWriter extends Object implements LibraryWriter
| Constructor and Description |
|---|
ZipLibraryWriter(String fileName) |
| 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 libraryName)
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).
|
ZipEntryBackedObject<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.
|
public ZipLibraryWriter(String fileName)
public void addBuildResource(Resource buildResource)
LibraryWriteraddBuildResource in interface LibraryWriterpublic void addCompilationUnit(CompilationUnit compilationUnit)
LibraryWriteraddCompilationUnit in interface LibraryWriterpublic void addDependencyLibraryName(String libraryName)
LibraryWriteraddDependencyLibraryName in interface LibraryWriterpublic void addDependencyLibraryNames(Set<String> dependencyLibraryNames)
LibraryWriteraddDependencyLibraryNames in interface LibraryWriterpublic void addGeneratedArtifacts(ArtifactSet generatedArtifacts)
LibraryWriteraddGeneratedArtifacts in interface LibraryWriterpublic void addPublicResource(Resource publicResource)
LibraryWriteraddPublicResource in interface LibraryWriterpublic ZipEntryBackedObject<PermutationResult> getPermutationResultHandle()
LibraryWritergetPermutationResultHandle in interface LibraryWriterpublic Set<String> getProcessedReboundTypeSourceNames(String generatorName)
LibraryWritergetProcessedReboundTypeSourceNames in interface LibraryWriterpublic Set<String> getReboundTypeSourceNames()
LibraryWritergetReboundTypeSourceNames in interface LibraryWriterpublic void markReboundTypeProcessed(String processedReboundTypeSourceName, String generatorName)
LibraryWritermarkReboundTypeProcessed in interface LibraryWriterpublic void markReboundTypesProcessed(Set<String> reboundTypeSourceNames)
LibraryWritermarkReboundTypesProcessed in interface LibraryWriterpublic void setCompilationErrorsIndex(CompilationErrorsIndex compilationErrorsIndex)
LibraryWritersetCompilationErrorsIndex in interface LibraryWriterpublic void setLibraryName(String libraryName)
LibraryWritersetLibraryName in interface LibraryWriterpublic void write()
LibraryWriterwrite in interface LibraryWriterCopyright © 2018. All rights reserved.