public class META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils extends java.lang.Object
{
private static final org.junit.platform.commons.logging.Logger logger;
public void <init>()
{
META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils v;
v := @this: META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static java.util.Set findAllNonSystemBootModuleNames()
{
java.util.function.Predicate v;
java.util.Set v;
java.util.function.Function v, v;
java.util.function.Supplier v;
java.util.stream.Stream v, v, v, v;
java.lang.module.ModuleFinder v;
java.lang.Object v, v;
java.util.stream.Collector v, v;
v = staticinvoke <java.lang.module.ModuleFinder: java.lang.module.ModuleFinder ofSystem()>();
v = interfaceinvoke v.<java.lang.module.ModuleFinder: java.util.Set findAll()>();
v = interfaceinvoke v.<java.util.Set: java.util.stream.Stream stream()>();
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_findAllNonSystemBootModuleNames_0__7: java.util.function.Function bootstrap$()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <java.util.stream.Collectors: java.util.stream.Collector toSet()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_findAllNonSystemBootModuleNames_1__8: java.util.function.Predicate bootstrap$(java.util.Set)>(v);
v = staticinvoke <org.junit.platform.commons.util.ModuleUtils: java.util.stream.Stream streamResolvedModules(java.util.function.Predicate)>(v);
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$name__9: java.util.function.Function bootstrap$()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$init__10: java.util.function.Supplier bootstrap$()>();
v = staticinvoke <java.util.stream.Collectors: java.util.stream.Collector toCollection(java.util.function.Supplier)>(v);
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
return v;
}
public static boolean isJavaPlatformModuleSystemAvailable()
{
return 1;
}
public static java.util.Optional getModuleName(java.lang.Class)
{
java.lang.Module v;
java.util.Optional v;
java.lang.Class v;
java.lang.String v;
v := @parameter: java.lang.Class;
staticinvoke <org.junit.platform.commons.util.Preconditions: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Class type must not be null");
v = virtualinvoke v.<java.lang.Class: java.lang.Module getModule()>();
v = virtualinvoke v.<java.lang.Module: java.lang.String getName()>();
v = staticinvoke <java.util.Optional: java.util.Optional ofNullable(java.lang.Object)>(v);
return v;
}
public static java.util.Optional getModuleVersion(java.lang.Class)
{
java.lang.Module v;
java.lang.module.ModuleDescriptor v;
java.util.Optional v;
java.lang.Class v;
boolean v;
v := @parameter: java.lang.Class;
staticinvoke <org.junit.platform.commons.util.Preconditions: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Class type must not be null");
v = virtualinvoke v.<java.lang.Class: java.lang.Module getModule()>();
v = virtualinvoke v.<java.lang.Module: boolean isNamed()>();
if v == 0 goto label;
v = virtualinvoke v.<java.lang.Module: java.lang.module.ModuleDescriptor getDescriptor()>();
v = virtualinvoke v.<java.lang.module.ModuleDescriptor: java.util.Optional rawVersion()>();
goto label;
label:
v = staticinvoke <java.util.Optional: java.util.Optional empty()>();
label:
return v;
}
public static java.util.List findAllClassesInModule(java.lang.String, org.junit.platform.commons.util.ClassFilter)
{
org.junit.platform.commons.util.ClassFilter v;
java.util.function.Predicate v;
org.junit.platform.commons.logging.Logger v;
java.util.function.Function v;
java.util.function.Supplier v;
java.util.List v;
java.util.stream.Stream v, v;
java.lang.Class v;
java.lang.Object v;
java.lang.ClassLoader v;
java.lang.String v;
java.util.stream.Collector v;
v := @parameter: java.lang.String;
v := @parameter: org.junit.platform.commons.util.ClassFilter;
staticinvoke <org.junit.platform.commons.util.Preconditions: java.lang.String notBlank(java.lang.String,java.lang.String)>(v, "Module name must not be null or empty");
staticinvoke <org.junit.platform.commons.util.Preconditions: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Class filter must not be null");
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_findAllClassesInModule_2__11: java.util.function.Supplier bootstrap$(java.lang.String)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void debug(java.util.function.Supplier)>(v);
v = staticinvoke <java.util.function.Predicate: java.util.function.Predicate isEqual(java.lang.Object)>(v);
v = staticinvoke <org.junit.platform.commons.util.ModuleUtils: java.util.stream.Stream streamResolvedModules(java.util.function.Predicate)>(v);
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$reference__12: java.util.function.Function bootstrap$()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <java.util.stream.Collectors: java.util.stream.Collector toSet()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
v = class "Lorg/junit/platform/commons/util/ModuleUtils;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <org.junit.platform.commons.util.ModuleUtils: java.util.List scan(java.util.Set,org.junit.platform.commons.util.ClassFilter,java.lang.ClassLoader)>(v, v, v);
return v;
}
private static java.util.stream.Stream streamResolvedModules(java.util.function.Predicate)
{
java.util.stream.Stream v;
java.lang.Module v;
java.util.function.Predicate v;
org.junit.platform.commons.logging.Logger v;
java.lang.ModuleLayer v;
java.lang.Class v;
java.util.function.Supplier v;
v := @parameter: java.util.function.Predicate;
v = class "Lorg/junit/platform/commons/util/ModuleUtils;";
v = virtualinvoke v.<java.lang.Class: java.lang.Module getModule()>();
v = virtualinvoke v.<java.lang.Module: java.lang.ModuleLayer getLayer()>();
if v != null goto label;
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_streamResolvedModules_3__13: java.util.function.Supplier bootstrap$(java.lang.Module)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void config(java.util.function.Supplier)>(v);
v = staticinvoke <java.lang.ModuleLayer: java.lang.ModuleLayer boot()>();
label:
v = staticinvoke <org.junit.platform.commons.util.ModuleUtils: java.util.stream.Stream streamResolvedModules(java.util.function.Predicate,java.lang.ModuleLayer)>(v, v);
return v;
}
private static java.util.stream.Stream streamResolvedModules(java.util.function.Predicate, java.lang.ModuleLayer)
{
java.util.function.Predicate v, v;
org.junit.platform.commons.logging.Logger v, v;
java.lang.ModuleLayer v;
java.util.Set v;
java.lang.module.Configuration v;
java.util.function.Supplier v, v;
java.util.stream.Stream v, v;
v := @parameter: java.util.function.Predicate;
v := @parameter: java.lang.ModuleLayer;
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_streamResolvedModules_4__14: java.util.function.Supplier bootstrap$(java.lang.ModuleLayer)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void debug(java.util.function.Supplier)>(v);
v = virtualinvoke v.<java.lang.ModuleLayer: java.lang.module.Configuration configuration()>();
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_streamResolvedModules_5__15: java.util.function.Supplier bootstrap$(java.lang.module.Configuration)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void debug(java.util.function.Supplier)>(v);
v = virtualinvoke v.<java.lang.module.Configuration: java.util.Set modules()>();
v = interfaceinvoke v.<java.util.Set: java.util.stream.Stream stream()>();
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_streamResolvedModules_6__16: java.util.function.Predicate bootstrap$(java.util.function.Predicate)>(v);
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream filter(java.util.function.Predicate)>(v);
return v;
}
private static java.util.List scan(java.util.Set, org.junit.platform.commons.util.ClassFilter, java.lang.ClassLoader)
{
org.junit.platform.commons.util.ClassFilter v;
java.util.Iterator v;
org.junit.platform.commons.logging.Logger v, v;
java.util.Set v;
java.util.function.Supplier v, v;
java.util.ArrayList v;
java.util.List v, v;
org.junit.platform.commons.util.ModuleUtils$ModuleReferenceScanner v;
java.lang.Object v;
java.lang.ClassLoader v;
boolean v;
v := @parameter: java.util.Set;
v := @parameter: org.junit.platform.commons.util.ClassFilter;
v := @parameter: java.lang.ClassLoader;
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_scan_7__17: java.util.function.Supplier bootstrap$(java.util.Set)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void debug(java.util.function.Supplier)>(v);
v = new org.junit.platform.commons.util.ModuleUtils$ModuleReferenceScanner;
specialinvoke v.<org.junit.platform.commons.util.ModuleUtils$ModuleReferenceScanner: void <init>(org.junit.platform.commons.util.ClassFilter,java.lang.ClassLoader)>(v, v);
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<org.junit.platform.commons.util.ModuleUtils$ModuleReferenceScanner: java.util.List scan(java.lang.module.ModuleReference)>(v);
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
goto label;
label:
v = <org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger>;
v = staticinvoke <META-INF.versions.9.org.junit.platform.commons.util.ModuleUtils$lambda_scan_8__18: java.util.function.Supplier bootstrap$(java.util.List)>(v);
interfaceinvoke v.<org.junit.platform.commons.logging.Logger: void debug(java.util.function.Supplier)>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
return v;
}
static void <clinit>()
{
org.junit.platform.commons.logging.Logger v;
v = staticinvoke <org.junit.platform.commons.logging.LoggerFactory: org.junit.platform.commons.logging.Logger getLogger(java.lang.Class)>(class "Lorg/junit/platform/commons/util/ModuleUtils;");
<org.junit.platform.commons.util.ModuleUtils: org.junit.platform.commons.logging.Logger logger> = v;
return;
}
}