Package com.scriptbasic.sourceproviders
Class StringSourceProvider
java.lang.Object
com.scriptbasic.sourceproviders.AbstractSourceProvider
com.scriptbasic.sourceproviders.AbstractSingleIncludeSourceProvider
com.scriptbasic.sourceproviders.SingleIncludeNonRelativeSourceProvider
com.scriptbasic.sourceproviders.StringSourceProvider
- All Implemented Interfaces:
SourceProvider
This implementation provides the source from strings.
- Author:
- Peter Verhas
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.scriptbasic.sourceproviders.SingleIncludeNonRelativeSourceProvider
getKeyName, getKeyName, getSourceMethods inherited from class com.scriptbasic.sourceproviders.AbstractSingleIncludeSourceProvider
get, get, getSingleInclude, setSingleInclude
-
Constructor Details
-
StringSourceProvider
public StringSourceProvider()
-
-
Method Details
-
addSource
Add a new source to the set of available sources.- Parameters:
fileName- the name of the source. This name can be used in include statements in other BASIC sources and also this can be used to get the reader from the provider.sourceCode- The actual code of the source program.
-
getSource
This implementation returns a
GenericSourceReader.- Specified by:
getSourcein classSingleIncludeNonRelativeSourceProvider- Throws:
IOException
-