Package com.scriptbasic.sourceproviders
Class SingleIncludeSourcePathNonRelativeSourceProvider
java.lang.Object
com.scriptbasic.sourceproviders.AbstractSourceProvider
com.scriptbasic.sourceproviders.AbstractSourcePathSourceProvider
com.scriptbasic.sourceproviders.AbstractSingleIncludeSourcePathSourceProvider
com.scriptbasic.sourceproviders.SingleIncludeSourcePathNonRelativeSourceProvider
- All Implemented Interfaces:
SourcePathProvider,SourceProvider
- Direct Known Subclasses:
FileSourceProvider
public abstract class SingleIncludeSourcePathNonRelativeSourceProvider
extends AbstractSingleIncludeSourcePathSourceProvider
Abstract class to be extended by source path implementations that include a
file only once and which include file only using full path and use source
path to find the file.
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.AbstractSingleIncludeSourcePathSourceProvider
get, get, getSingleInclude, setSingleIncludeMethods inherited from class com.scriptbasic.sourceproviders.AbstractSourcePathSourceProvider
getSourcePath, setSourcePath
-
Constructor Details
-
SingleIncludeSourcePathNonRelativeSourceProvider
public SingleIncludeSourcePathNonRelativeSourceProvider()
-
-
Method Details
-
getSource
- Specified by:
getSourcein classAbstractSingleIncludeSourcePathSourceProvider- Throws:
IOException
-
getSource
- Specified by:
getSourcein classAbstractSingleIncludeSourcePathSourceProvider- Throws:
IOException
-
getKeyName
- Specified by:
getKeyNamein classAbstractSingleIncludeSourcePathSourceProvider
-
getKeyName
- Specified by:
getKeyNamein classAbstractSingleIncludeSourcePathSourceProvider
-