public class DependencyChecker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
errors
The map of errors.
|
protected boolean |
isStrictCheck
True if the check is strict.
|
| Constructor and Description |
|---|
DependencyChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(java.io.File[] files,
java.util.Set<java.lang.String> packages)
Return true if there are no dependencies between an array of class files directories or jar files, and a Set of
packages paths.
|
boolean |
check(java.io.File[] files,
java.util.Set<java.lang.String> packages,
boolean strict)
Return true if there are no dependencies between an array of class files directories or jar files, and a Set of
packages paths.
|
boolean |
check(java.io.File file,
java.util.Set<java.lang.String> packages)
Return true if there are no dependencies between a class files directory or jar file, and a Set of
packages paths.
|
boolean |
check(java.io.File file,
java.util.Set<java.lang.String> packages,
boolean strict)
Return true if there are no dependencies between a class files directory or jar file, and a Set of
packages paths.
|
boolean |
check(JarDependencies depend,
java.util.Set<java.lang.String> packages)
Return true if there are no dependencies between a JarDependency, and a Set of packages paths.
|
boolean |
check(JarDependencies depend,
java.util.Set<java.lang.String> packages,
boolean strict)
Return true if there are no dependencies between a JarDependency, and a Set of packages paths.
|
boolean |
check(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages)
Return true if there are no dependencies between a List of class files directories or jar files, and a Set of
packages paths.
|
boolean |
check(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages,
boolean strict)
Return true if there are no dependencies between a List of class files directories or jar files, and a Set of
packages paths.
|
boolean |
checkPackages(java.io.File[] files,
java.util.Set<PackagePath> packages)
Return true if there are no dependencies between an array of class files directories or jar files, and a Set of
packages paths.
|
boolean |
checkPackages(java.io.File[] files,
java.util.Set<PackagePath> packages,
boolean strict)
Return true if there are no dependencies between an array of class files directories or jar files, and a Set of
packages paths.
|
boolean |
checkPackages(JarDependencies depend,
java.util.Set<PackagePath> packages)
Return true if there are no dependencies between a JarDependency, and a Set of packages paths.
|
boolean |
checkPackages(JarDependencies depend,
java.util.Set<PackagePath> packages,
boolean strict)
Return true if there are no dependencies between a JarDependency, and a Set of packages paths.
|
boolean |
checkPackages(java.util.List<java.io.File> files,
java.util.Set<PackagePath> packages,
boolean strict)
Return true if there are no dependencies between a List of class files directories or jar files, and a Set of
packages paths.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getDependencies()
Return the Map of dependencies found during the checking.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getDependencies(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages)
Return the dependencies between a List of class files directories or jar files, and a Set of packages paths.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getDependencies(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages,
boolean strict)
Return the dependencies between a List of class files directories or jar files, and a Set of packages paths.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getJarDependencies(JarDependencies depend,
java.util.Set<java.lang.String> packages)
Return the dependencies between a JarDependency, and a Set of packages paths.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getJarDependencies(JarDependencies depend,
java.util.Set<java.lang.String> packages,
boolean strict)
Return the dependencies between a JarDependency, and a Set of packages paths.
|
protected boolean |
performCheck()
Perform the check.
|
protected final java.util.Map<java.lang.String,java.util.Set<java.lang.String>> errors
protected boolean isStrictCheck
protected boolean performCheck()
throws java.io.IOException
java.io.IOExceptionpublic boolean check(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages)
throws java.io.IOException
files - the List of class files directories or jar filespackages - the Set of packages pathjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean check(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages,
boolean strict)
throws java.io.IOException
files - the List of class files directories or jar filespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean checkPackages(java.util.List<java.io.File> files,
java.util.Set<PackagePath> packages,
boolean strict)
throws java.io.IOException
files - the List of class files directories or jar filespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDependencies(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages)
throws java.io.IOException
files - the List of class files directories or jar filespackages - the Set of packages pathjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDependencies(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> packages,
boolean strict)
throws java.io.IOException
files - the List of class files directories or jar filespackages - the Set of packagestrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean checkPackages(JarDependencies depend, java.util.Set<PackagePath> packages) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic boolean check(JarDependencies depend, java.util.Set<java.lang.String> packages) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic boolean check(JarDependencies depend, java.util.Set<java.lang.String> packages, boolean strict) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic boolean checkPackages(JarDependencies depend, java.util.Set<PackagePath> packages, boolean strict) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getJarDependencies(JarDependencies depend, java.util.Set<java.lang.String> packages) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getJarDependencies(JarDependencies depend, java.util.Set<java.lang.String> packages, boolean strict) throws java.io.IOException
depend - the JarDependenciespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if the Jar file does not exist or is unreadable, or is not a Jar filepublic boolean check(java.io.File file,
java.util.Set<java.lang.String> packages)
throws java.io.IOException
file - the class files directory or jar filespackages - the Set of packages pathjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean check(java.io.File file,
java.util.Set<java.lang.String> packages,
boolean strict)
throws java.io.IOException
file - the class files directory or jar filespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean check(java.io.File[] files,
java.util.Set<java.lang.String> packages)
throws java.io.IOException
files - the array of class files directories or jar filespackages - the Set of packages pathjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean checkPackages(java.io.File[] files,
java.util.Set<PackagePath> packages)
throws java.io.IOException
files - the array of class files directories or jar filespackages - the Set of packages pathjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean check(java.io.File[] files,
java.util.Set<java.lang.String> packages,
boolean strict)
throws java.io.IOException
files - the array of class files directories or jar filespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic boolean checkPackages(java.io.File[] files,
java.util.Set<PackagePath> packages,
boolean strict)
throws java.io.IOException
files - the array of class files directories or jar filespackages - the Set of packages pathstrict - if the check is strictjava.io.IOException - if one of the Jar files does not exist or is unreadable, or is not a Jar filepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDependencies()
Copyright © 2016-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence