public class NullLibraryWriter extends Object implements LibraryWriter
Constructor and Description |
---|
NullLibraryWriter() |
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).
|
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.
|
public void addBuildResource(Resource buildResource)
LibraryWriter
addBuildResource
in interface LibraryWriter
public void addCompilationUnit(CompilationUnit compilationUnit)
LibraryWriter
addCompilationUnit
in interface LibraryWriter
public void addDependencyLibraryName(String libraryName)
LibraryWriter
addDependencyLibraryName
in interface LibraryWriter
public void addDependencyLibraryNames(Set<String> dependencyLibraryNames)
LibraryWriter
addDependencyLibraryNames
in interface LibraryWriter
public void addGeneratedArtifacts(ArtifactSet generatedArtifacts)
LibraryWriter
addGeneratedArtifacts
in interface LibraryWriter
public void addPublicResource(Resource publicResource)
LibraryWriter
addPublicResource
in interface LibraryWriter
public PersistenceBackedObject<PermutationResult> getPermutationResultHandle()
LibraryWriter
getPermutationResultHandle
in interface LibraryWriter
public Set<String> getProcessedReboundTypeSourceNames(String generatorName)
LibraryWriter
getProcessedReboundTypeSourceNames
in interface LibraryWriter
public Set<String> getReboundTypeSourceNames()
LibraryWriter
getReboundTypeSourceNames
in interface LibraryWriter
public void markReboundTypeProcessed(String processedReboundTypeSourceName, String generatorName)
LibraryWriter
markReboundTypeProcessed
in interface LibraryWriter
public void markReboundTypesProcessed(Set<String> reboundTypeSourceNames)
LibraryWriter
markReboundTypesProcessed
in interface LibraryWriter
public void setCompilationErrorsIndex(CompilationErrorsIndex compilationErrorsIndex)
LibraryWriter
setCompilationErrorsIndex
in interface LibraryWriter
public void setLibraryName(String libraryName)
LibraryWriter
setLibraryName
in interface LibraryWriter
public void write()
LibraryWriter
write
in interface LibraryWriter
Copyright © 2018. All rights reserved.