Package com.scriptbasic.sourceproviders
Class AbstractSourceProvider
java.lang.Object
com.scriptbasic.sourceproviders.AbstractSourceProvider
- All Implemented Interfaces:
SourceProvider
- Direct Known Subclasses:
AbstractSingleIncludeSourceProvider,AbstractSourcePathSourceProvider
An abstract source provider to be extended by the source provider
implementations.
- Author:
- Peter Verhas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SourceReaderGet a reader to a source when there is no referencing source.abstract SourceReaderGet a reader to a source specifying the source that references this source.
-
Constructor Details
-
AbstractSourceProvider
public AbstractSourceProvider()
-
-
Method Details
-
get
Description copied from interface:SourceProviderGet a reader to a source when there is no referencing source. This is the main source.- Specified by:
getin interfaceSourceProvider- Parameters:
sourceName- the name of the source- Returns:
- reader reading the source file.
- Throws:
IOException- in case of exception
-
get
Description copied from interface:SourceProviderGet a reader to a source specifying the source that references this source.- Specified by:
getin interfaceSourceProvider- 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:
IOException- in case of exception
-