Package com.scriptbasic.sourceproviders
Class BasicSourcePath
java.lang.Object
com.scriptbasic.sourceproviders.BasicSourcePath
- All Implemented Interfaces:
SourcePath,java.lang.Iterable<java.lang.String>
public class BasicSourcePath extends java.lang.Object implements SourcePath
A simple SourcePath implementation. Maintains the path elements in a linked list.
- Author:
- Peter Verhas
-
Constructor Summary
Constructors Constructor Description BasicSourcePath() -
Method Summary
-
Constructor Details
-
BasicSourcePath
public BasicSourcePath()
-
-
Method Details
-
add
public void add(java.lang.String path)Description copied from interface:SourcePathAdd an element to the source path, to the end of the list.- Specified by:
addin interfaceSourcePath- Parameters:
path- parameter
-
iterator
public java.util.Iterator<java.lang.String> iterator()- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>
-