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
NonRelativesource providers fall back to the functionality of the single parameter methodget()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 Constructor Description SingleIncludeSourcePathNonRelativeSourceProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetKeyName(java.lang.String sourceName)protected java.lang.StringgetKeyName(java.lang.String sourceName, java.lang.String referencingSource)protected abstract SourceReadergetSource(java.lang.String sourceName)protected SourceReadergetSource(java.lang.String sourceName, java.lang.String referencingSource)-
Methods inherited from class com.scriptbasic.sourceproviders.AbstractSingleIncludeSourcePathSourceProvider
get, get, getSingleInclude, setSingleInclude
-
Methods inherited from class com.scriptbasic.sourceproviders.AbstractSourcePathSourceProvider
getSourcePath, setSourcePath
-
-
-
-
Method Detail
-
getSource
protected abstract SourceReader getSource(java.lang.String sourceName) throws java.io.IOException
- Specified by:
getSourcein classAbstractSingleIncludeSourcePathSourceProvider- Throws:
java.io.IOException
-
getSource
protected SourceReader getSource(java.lang.String sourceName, java.lang.String referencingSource) throws java.io.IOException
- Specified by:
getSourcein classAbstractSingleIncludeSourcePathSourceProvider- Throws:
java.io.IOException
-
getKeyName
protected java.lang.String getKeyName(java.lang.String sourceName)
- Specified by:
getKeyNamein classAbstractSingleIncludeSourcePathSourceProvider
-
getKeyName
protected java.lang.String getKeyName(java.lang.String sourceName, java.lang.String referencingSource)- Specified by:
getKeyNamein classAbstractSingleIncludeSourcePathSourceProvider
-
-