Class AbstractSourceProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract SourceReader get​(java.lang.String sourceName)
      Get a reader to a source when there is no referencing source.
      abstract SourceReader get​(java.lang.String sourceName, java.lang.String referencingSource)
      Get a reader to a source specifying the source that references this source.
      • Methods inherited from class java.lang.Object

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

      • AbstractSourceProvider

        public AbstractSourceProvider()
    • Method Detail

      • get

        public abstract SourceReader get​(java.lang.String sourceName)
                                  throws java.io.IOException
        Description copied from interface: SourceProvider
        Get a reader to a source when there is no referencing source. This is the main source.
        Specified by:
        get in interface SourceProvider
        Parameters:
        sourceName - the name of the source
        Returns:
        reader reading the source file.
        Throws:
        java.io.IOException - in case of exception
      • get

        public abstract SourceReader get​(java.lang.String sourceName,
                                         java.lang.String referencingSource)
                                  throws java.io.IOException
        Description copied from interface: SourceProvider
        Get a reader to a source specifying the source that references this source.
        Specified by:
        get in interface SourceProvider
        Parameters:
        sourceName - the name of the source to get the reader to.
        referencingSource - the name of the source that is referencing the source to read.
        Returns:
        return value
        Throws:
        java.io.IOException - in case of exception