public class ClasspathOrder extends Object
Modifier and Type | Method | Description |
---|---|---|
boolean |
addClasspathElement(String pathElement,
ClassLoader[] classLoaders,
LogNode log) |
Add a classpath element relative to a base file.
|
boolean |
addClasspathElement(String pathElement,
ClassLoader classLoader,
LogNode log) |
Add a classpath element relative to a base file.
|
boolean |
addClasspathElementObject(Object pathObject,
ClassLoader classLoader,
LogNode log) |
Add classpath elements from an object obtained from reflection.
|
boolean |
addClasspathElements(String pathStr,
ClassLoader[] classLoaders,
LogNode log) |
Add classpath elements, separated by the system path separator character.
|
boolean |
addClasspathElements(String pathStr,
ClassLoader classLoader,
LogNode log) |
Add classpath elements, separated by the system path separator character.
|
AdditionOrderedSet<io.github.lukehutch.fastclasspathscanner.scanner.RelativePath> |
get() |
Get the order of classpath elements.
|
public AdditionOrderedSet<io.github.lukehutch.fastclasspathscanner.scanner.RelativePath> get()
public boolean addClasspathElement(String pathElement, ClassLoader[] classLoaders, LogNode log)
pathElement
- the URL or path of the classpath element.classLoaders
- the ClassLoader(s) that this classpath element was obtained from.log
- the LogNode instance to use if logging in verbose mode.public boolean addClasspathElements(String pathStr, ClassLoader[] classLoaders, LogNode log)
pathStr
- the delimited string of URLs or paths of the classpath.classLoaders
- the ClassLoader(s) that this classpath was obtained from.log
- the LogNode instance to use if logging in verbose mode.public boolean addClasspathElement(String pathElement, ClassLoader classLoader, LogNode log)
pathElement
- the URL or path of the classpath element.classLoader
- the ClassLoader that this classpath element was obtained from.log
- the LogNode instance to use if logging in verbose mode.public boolean addClasspathElementObject(Object pathObject, ClassLoader classLoader, LogNode log)
toString()
method
returns a path or URL string (including the URL
and Path
types).pathObject
- the object containing a classpath string or strings.classLoader
- the ClassLoader that this classpath was obtained from.log
- the LogNode instance to use if logging in verbose mode.public boolean addClasspathElements(String pathStr, ClassLoader classLoader, LogNode log)
pathStr
- the delimited string of URLs or paths of the classpath.classLoader
- the ClassLoader that this classpath was obtained from.log
- the LogNode instance to use if logging in verbose mode.Copyright © 2018. All rights reserved.