public class BuildState extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Constructor and Description |
---|
BuildState() |
Modifier and Type | Method and Description |
---|---|
Map<String,File> |
artifacts() |
void |
calculateDependents()
Calculate the package dependents (ie the reverse of the dependencies).
|
void |
checkInternalState(String msg,
boolean linkedOnly,
Map<String,Source> srcs)
Verify that the setModules method above did the right thing when
running through the module->package->source structure.
|
void |
copyPackagesExcept(BuildState prev,
Set<String> recompiled,
Set<String> removed)
During an incremental compile we need to copy the old javac state
information about packages that were not recompiled.
|
Map<String,Set<String>> |
dependents() |
void |
flattenArtifacts(Map<String,Module> m)
Store references to all artifacts found in the module tree into the maps
stored in the build state.
|
void |
flattenPackagesSourcesAndArtifacts(Map<String,Module> m)
Store references to all packages, sources and artifacts for all modules
into the build state.
|
Module |
loadModule(String l)
Load a module from the javac state file.
|
Package |
loadPackage(Module lastModule,
String l)
Load a package from the javac state file.
|
Source |
loadSource(Package lastPackage,
String l,
boolean is_generated)
Load a source from the javac state file.
|
Module |
lookupModule(String mod)
Lookup a module from a name.
|
Map<String,Module> |
modules() |
Map<String,Package> |
packages() |
Map<String,Source> |
sources() |
public Module lookupModule(String mod)
public void flattenPackagesSourcesAndArtifacts(Map<String,Module> m)
m
- The set of modules.public void flattenArtifacts(Map<String,Module> m)
m
- The set of modules.public void calculateDependents()
public void checkInternalState(String msg, boolean linkedOnly, Map<String,Source> srcs)
public Package loadPackage(Module lastModule, String l)
public Source loadSource(Package lastPackage, String l, boolean is_generated)
public void copyPackagesExcept(BuildState prev, Set<String> recompiled, Set<String> removed)
Copyright © 2017 earcam. All rights reserved.