public class ClasspathOrder extends Object
Modifier and Type | Method and 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 |
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.classpathElementOrderOut
- the AdditionOrderedSet to add classpath elements to.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 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.