Skip to content

Package io.github.qishr.cascara.common.util

Class ClassPath

java.lang.Object
        io.github.qishr.cascara.common.util.AbstractLibraryScanner
                io.github.qishr.cascara.common.util.ClassPath


public class ClassPath
extends AbstractLibraryScanner

Constructor Summary

Constructor Description
ClassPath()
ClassPath(String classPath)
ClassPath(String classPath, Path virtualReferencePath)
ClassPath(Set<String> classPaths, Path virtualReferencePath)
ClassPath(Set<String> classPaths, Set<String> excluded)
ClassPath(Set<String> classPaths, Set<String> excluded, Path virtualReferencePath)

Method Summary

Modifier and Type Method Description
protected void addModuleDescriptor(String moduleName, ModuleDescriptor descriptor)
protected void addModuleLocation(String moduleName, Path path)
protected void addClassToModule(String className, String moduleName)
protected String scanDirectoryUrl(Path directory, URL[] urls, String moduleName)

Methods inherited from AbstractLibraryScanner

getClasses, scanDirectory, pathSet, scanJar, error, scanClassFile, addClass, isExcluded

Method Details

addModuleDescriptor

protected void addModuleDescriptor(String moduleName, ModuleDescriptor descriptor)

Overrides:

AbstractLibraryScanner


addModuleLocation

protected void addModuleLocation(String moduleName, Path path)

Overrides:

AbstractLibraryScanner


addClassToModule

protected void addClassToModule(String className, String moduleName)

Overrides:

AbstractLibraryScanner


scanDirectoryUrl

protected String scanDirectoryUrl(Path directory, URL[] urls, String moduleName)