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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String path)Add an element to the source path, to the end of the list.java.util.Iterator<java.lang.String>iterator()
-
-
-
Method Detail
-
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>
-
-