public interface SourceProvider
When source files reference each other the source provider may alter its behavior finding the source based on which source is referencing the other source.
For example you want to get a reader to the source named myProg.sb
This program may include using the include
statement inc/incProg.sb
.
The second file is in the directory inc
. If that file includes
myProg.sb
then source provider may provide a reader to the file
inc/myProg.sb
.
Source providers may provide readers reading the source from files, database, svn and other locations.
Reader get(String sourceName) throws IOException
sourceName
- the name of the sourceIOException
Reader get(String sourceName, String referencingSource) throws IOException
sourceName
- the name of the source to get the reader to.referencingSource
- the name of the source that is referencing the source to read.IOException
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.