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

    Modifier and Type Method Description
    void add​(java.lang.String path)
    Add an element to the source path, to the end of the list.
    java.util.Iterator<java.lang.String> iterator()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

  • Method Details

    • add

      public void add​(java.lang.String path)
      Description copied from interface: SourcePath
      Add an element to the source path, to the end of the list.
      Specified by:
      add in interface SourcePath
      Parameters:
      path - parameter
    • iterator

      public java.util.Iterator<java.lang.String> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<java.lang.String>