Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DependencyFile

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

      • getName

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

        public java.lang.String getContent()
        Specified by:
        getContent 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​(java.lang.String symbol)
        Gets the dependency info for the provided symbol, if contained in this dependency file.