Class DependencyFile

java.lang.Object
com.google.javascript.jscomp.deps.DependencyFile
All Implemented Interfaces:
SourceFile

public final class DependencyFile extends Object implements SourceFile
SourceFile containing dependency information. Delegates file handling to another SourceFile such that a VirtualFile, LocalFile or RemoteFile can be used.
  • Constructor Details

    • DependencyFile

      public DependencyFile(SourceFile delegate)
      Creates a new dependency file.
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface SourceFile
    • getContent

      public String getContent()
      Specified by:
      getContent in interface SourceFile
    • wasModified

      public boolean wasModified()
      Specified by:
      wasModified in interface SourceFile
    • 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(String symbol)
      Gets the dependency info for the provided symbol, if contained in this dependency file.