Class DependencyFile
- java.lang.Object
-
- com.google.javascript.jscomp.deps.DependencyFile
-
- All Implemented Interfaces:
SourceFile
public final class DependencyFile extends java.lang.Object implements SourceFile
SourceFile containing dependency information. Delegates file handling to another SourceFile such that a VirtualFile, LocalFile or RemoteFile can be used.
-
-
Constructor Summary
Constructors Constructor Description DependencyFile(SourceFile delegate)
Creates a new dependency file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
boolean
wasModified()
-
-
-
Constructor Detail
-
DependencyFile
public DependencyFile(SourceFile delegate)
Creates a new dependency file.
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceSourceFile
-
getContent
public java.lang.String getContent()
- Specified by:
getContent
in interfaceSourceFile
-
wasModified
public boolean wasModified()
- Specified by:
wasModified
in interfaceSourceFile
-
ensureUpToDate
public void ensureUpToDate() throws ServiceException
Ensures that the dependency graph is up to date and reloads the graph if necessary.- Throws:
ServiceException
-
getDependencyInfo
public DependencyInfo getDependencyInfo(java.lang.String symbol)
Gets the dependency info for the provided symbol, if contained in this dependency file.
-
-