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 voidensureUpToDate()Ensures that the dependency graph is up to date and reloads the graph if necessary.java.lang.StringgetContent()DependencyInfogetDependencyInfo(java.lang.String symbol)Gets the dependency info for the provided symbol, if contained in this dependency file.java.lang.StringgetName()booleanwasModified()
-
-
-
Constructor Detail
-
DependencyFile
public DependencyFile(SourceFile delegate)
Creates a new dependency file.
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceSourceFile
-
getContent
public java.lang.String getContent()
- Specified by:
getContentin interfaceSourceFile
-
wasModified
public boolean wasModified()
- Specified by:
wasModifiedin interfaceSourceFile
-
ensureUpToDate
public void ensureUpToDate() throws ServiceExceptionEnsures 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.
-
-