Package com.scriptbasic.sourceproviders
Class SingleIncludeNonRelativeSourceProvider
java.lang.Object
com.scriptbasic.sourceproviders.AbstractSourceProvider
com.scriptbasic.sourceproviders.AbstractSingleIncludeSourceProvider
com.scriptbasic.sourceproviders.SingleIncludeNonRelativeSourceProvider
- All Implemented Interfaces:
SourceProvider
- Direct Known Subclasses:
StringSourceProvider
public abstract class SingleIncludeNonRelativeSourceProvider
extends AbstractSingleIncludeSourceProvider
Abstract class to be extended by source path implementations that include a
file only once and which include file only using full path.
The NonRelative source providers fall back to the functionality of
the single parameter method get() from the version that also
specifies the name of the file where the include statement is. In other words
for such source provider it is indifferent which file includes the included
file. Still in other words it is not possible to include a source using
relative source (file) name.
- Author:
- Peter Verhas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetKeyName(String sourceName) protected StringgetKeyName(String sourceName, String referencingSource) protected abstract SourceReaderprotected SourceReaderMethods inherited from class com.scriptbasic.sourceproviders.AbstractSingleIncludeSourceProvider
get, get, getSingleInclude, setSingleInclude
-
Constructor Details
-
SingleIncludeNonRelativeSourceProvider
public SingleIncludeNonRelativeSourceProvider()
-
-
Method Details
-
getSource
- Specified by:
getSourcein classAbstractSingleIncludeSourceProvider- Throws:
IOException
-
getSource
- Specified by:
getSourcein classAbstractSingleIncludeSourceProvider- Throws:
IOException
-
getKeyName
- Specified by:
getKeyNamein classAbstractSingleIncludeSourceProvider
-
getKeyName
- Specified by:
getKeyNamein classAbstractSingleIncludeSourceProvider
-