public class ClassFileInputs
extends java.lang.Object
ClassFileInput instances.| Modifier and Type | Method and Description |
|---|---|
static ClassFileInput |
fromPath(java.nio.file.Path rootPath,
java.util.function.Predicate<java.nio.file.Path> filterPaths)
Creates a
ClassFileInput by analyzing the specified root
path. |
@NonNull public static ClassFileInput fromPath(@NonNull java.nio.file.Path rootPath, @NonNull java.util.function.Predicate<java.nio.file.Path> filterPaths)
ClassFileInput by analyzing the specified root
path. It supports discovery of .class files in directories and jar files, while omitting the
ones that do not satisfy the specified predicate.
In case the path ends with .jar, all .class files in in will be kept and added to the
ClassFileInput object that is created.
Otherwise, the root path will be processed as a directory, and all .class files in it will be processed.
rootPath - root path to analyze, jar or a directoryfilterPaths - filter specify which files should be part of the class inputClassFileInput that provides a list of .class files to process