Class Classpath

  • All Implemented Interfaces:
    java.lang.Iterable<java.io.File>

    public class Classpath
    extends java.lang.Object
    implements java.lang.Iterable<java.io.File>
    Class to handle CLASSPATH construction
    • Constructor Summary

      Constructors 
      Constructor Description
      Classpath()  
      Classpath​(java.lang.String initial)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addClasspath​(java.lang.String s)  
      boolean addComponent​(java.io.File path)  
      boolean addComponent​(java.lang.String component)  
      int count()  
      void dump​(java.io.PrintStream out)  
      java.lang.ClassLoader getClassLoader()  
      java.util.List<java.io.File> getElements()  
      boolean isEmpty()  
      java.util.Iterator<java.io.File> iterator()  
      void overlay​(Classpath other)
      Overlay another classpath, copying its elements into place on this Classpath, while eliminating duplicate entries on the classpath.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Classpath

        public Classpath()
      • Classpath

        public Classpath​(java.lang.String initial)
    • Method Detail

      • addClasspath

        public boolean addClasspath​(java.lang.String s)
      • addComponent

        public boolean addComponent​(java.io.File path)
      • addComponent

        public boolean addComponent​(java.lang.String component)
      • count

        public int count()
      • dump

        public void dump​(java.io.PrintStream out)
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
      • getElements

        public java.util.List<java.io.File> getElements()
      • isEmpty

        public boolean isEmpty()
      • iterator

        public java.util.Iterator<java.io.File> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.io.File>
      • overlay

        public void overlay​(Classpath other)
        Overlay another classpath, copying its elements into place on this Classpath, while eliminating duplicate entries on the classpath.
        Parameters:
        other - the other classpath to overlay
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object