public class DependencyUtilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
dependOnDesktop(JarDependencies depend)
Return the dependencies between a jar file and the packages defined in the java.desktop module.
|
static boolean |
dependOnJavaFX(JarDependencies depend)
Return true if the jar file denoted by the JarDependencies depend on the JavaFX framework.
|
static boolean |
dependOnSwing(JarDependencies depend)
Return the dependencies between a jar file denoted by the JarDependencies and the Swing framework.
|
static ClassDependencies |
getDependencies(JarDependencies dependencies,
java.lang.String packageFrom,
java.lang.String packageTo)
Return the internal dependencies between two packages in a JarDependencies.
|
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getJavaFXDependencies(JarDependencies depend)
Return the dependencies between a jar file denoted by the JarDependencies and the JavaFX framework.
|
static java.lang.String |
getPackage(java.lang.String path)
Return the package name for a class path.
|
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getSwingDependencies(JarDependencies depend)
Return true if the jar file denoted by the JarDependencies depend on the Swing framework.
|
static boolean |
hasDependencies(JarDependencies dependencies,
java.lang.String packageFrom,
java.lang.String packageTo)
Return true if there are internal dependencies between two packages in a JarDependencies.
|
public static java.lang.String getPackage(java.lang.String path)
path
- the class pathpublic static boolean dependOnJavaFX(JarDependencies depend)
depend
- the JarDependenciespublic static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getJavaFXDependencies(JarDependencies depend)
depend
- the JarDependenciespublic static boolean dependOnDesktop(JarDependencies depend)
depend
- the JarDependenciespublic static boolean dependOnSwing(JarDependencies depend)
depend
- the JarDependenciespublic static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getSwingDependencies(JarDependencies depend)
depend
- the JarDependenciespublic static boolean hasDependencies(JarDependencies dependencies, java.lang.String packageFrom, java.lang.String packageTo)
packageTo
to null.dependencies
- the jar file or class files directory which we seek to lookpackageFrom
- the package from which we look for the dependencies. If null, the method will look for
dependencies for all packages against the packageTo package (excluding packageTo itself)packageTo
- the package in which we lok for the dependenciespublic static ClassDependencies getDependencies(JarDependencies dependencies, java.lang.String packageFrom, java.lang.String packageTo)
packageTo
to null.dependencies
- the jar file or class files directory which we seek to lookpackageFrom
- the package from which we look for the dependencies. If null, the method will look for
dependencies for all packages against the packageTo package (excluding packageTo itself)packageTo
- the package in which we look for the dependenciesCopyright © 2016-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence