Package org.eclipse.jetty.start
Class Classpath
- java.lang.Object
-
- org.eclipse.jetty.start.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddClasspath(java.lang.String s)booleanaddComponent(java.io.File path)booleanaddComponent(java.lang.String component)intcount()voiddump(java.io.PrintStream out)java.lang.ClassLoadergetClassLoader()java.util.List<java.io.File>getElements()booleanisEmpty()java.util.Iterator<java.io.File>iterator()voidoverlay(Classpath other)Overlay another classpath, copying its elements into place on this Classpath, while eliminating duplicate entries on the classpath.java.lang.StringtoString()
-
-
-
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:
iteratorin interfacejava.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:
toStringin classjava.lang.Object
-
-