public final class DependencyFile extends java.lang.Object implements SourceFile
Modifier and Type | Field and Description |
---|---|
private SourceFile |
delegate
A source file to delegate functionality too.
|
private java.util.Map<java.lang.String,DependencyInfo> |
dependencies
Map of name spaces to their dependency info.
|
private static java.util.logging.Logger |
logger
Logger for DependencyResolver.
|
Constructor and Description |
---|
DependencyFile(SourceFile delegate)
Creates a new dependency file.
|
Modifier and Type | Method and Description |
---|---|
void |
ensureUpToDate()
Ensures that the dependency graph is up to date and reloads the graph if
necessary.
|
java.lang.String |
getContent() |
DependencyInfo |
getDependencyInfo(java.lang.String symbol)
Gets the dependency info for the provided symbol, if contained in this
dependency file.
|
java.lang.String |
getName() |
private void |
loadGraph()
Loads the dependency graph.
|
boolean |
wasModified() |
private final java.util.Map<java.lang.String,DependencyInfo> dependencies
private final SourceFile delegate
private static java.util.logging.Logger logger
public DependencyFile(SourceFile delegate)
public java.lang.String getName() throws ServiceException
getName
in interface SourceFile
ServiceException
public java.lang.String getContent() throws ServiceException
getContent
in interface SourceFile
ServiceException
public boolean wasModified() throws ServiceException
wasModified
in interface SourceFile
ServiceException
public void ensureUpToDate() throws ServiceException
ServiceException
public DependencyInfo getDependencyInfo(java.lang.String symbol)
private void loadGraph() throws ServiceException
ServiceException