public class LinkageChecker extends Object
| Modifier and Type | Method and Description |
|---|---|
static LinkageChecker |
create(Bom bom) |
static LinkageChecker |
create(Bom bom,
Path exclusionFile) |
static LinkageChecker |
create(List<ClassPathEntry> classPath) |
static LinkageChecker |
create(List<ClassPathEntry> classPath,
Iterable<ClassPathEntry> entryPoints,
Path exclusionFile)
Returns Linkage Checker for
classPath. |
com.google.common.collect.ImmutableSet<LinkageProblem> |
findLinkageProblems()
Searches the classpath for linkage errors.
|
ClassReferenceGraph |
getClassReferenceGraph() |
public ClassReferenceGraph getClassReferenceGraph()
public static LinkageChecker create(List<ClassPathEntry> classPath) throws IOException
IOExceptionpublic static LinkageChecker create(List<ClassPathEntry> classPath, Iterable<ClassPathEntry> entryPoints, @Nullable Path exclusionFile) throws IOException
classPath.classPath - JAR files to find linkage errors inentryPoints - JAR files to specify entry point classes in reachabilityexclusionFile - exclusion file to suppress linkage errorsIOExceptionpublic static LinkageChecker create(Bom bom) throws IOException
IOExceptionpublic static LinkageChecker create(Bom bom, Path exclusionFile) throws IOException
IOExceptionpublic com.google.common.collect.ImmutableSet<LinkageProblem> findLinkageProblems() throws IOException
LinkageProblems found in the class path and referencing classesIOException - I/O error reading files in the classpathCopyright © 2018–2021 Google LLC.. All rights reserved.