class jdk.internal.module.ModuleHashesBuilder$Graph<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModuleHashesBuilder$Graph
super_class: java.lang.Object
{
private final java.util.Set<T> nodes;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<TT;>;
private final java.util.Map<T, java.util.Set<T>> edges;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<TT;Ljava/util/Set<TT;>;>;
public void <init>(java.util.Set<T>, java.util.Map<T, java.util.Set<T>>);
descriptor: (Ljava/util/Set;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
2: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putfield jdk.internal.module.ModuleHashesBuilder$Graph.edges:Ljava/util/Map;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 4 1 nodes Ljava/util/Set<TT;>;
0 4 2 edges Ljava/util/Map<TT;Ljava/util/Set<TT;>;>;
Signature: (Ljava/util/Set<TT;>;Ljava/util/Map<TT;Ljava/util/Set<TT;>;>;)V
MethodParameters:
Name Flags
nodes
edges
public java.util.Set<T> nodes();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
Signature: ()Ljava/util/Set<TT;>;
public java.util.Map<T, java.util.Set<T>> edges();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.edges:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
Signature: ()Ljava/util/Map<TT;Ljava/util/Set<TT;>;>;
public java.util.Set<T> adjacentNodes(T);
descriptor: (Ljava/lang/Object;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.edges:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 1 1 u TT;
Signature: (TT;)Ljava/util/Set<TT;>;
MethodParameters:
Name Flags
u
public boolean contains();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 1 1 u TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
u
public java.util.stream.Stream<T> orderedNodes();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.internal.module.ModuleHashesBuilder$TopoSorter
dup
aload 0
invokespecial jdk.internal.module.ModuleHashesBuilder$TopoSorter.<init>:(Ljdk/internal/module/ModuleHashesBuilder$Graph;)V
astore 1
start local 1 1: aload 1
getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.result:Ljava/util/Deque;
invokeinterface java.util.Deque.stream:()Ljava/util/stream/Stream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
1 2 1 sorter Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
Signature: ()Ljava/util/stream/Stream<TT;>;
public void ordered(java.util.function.Consumer<T>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new jdk.internal.module.ModuleHashesBuilder$TopoSorter
dup
aload 0
invokespecial jdk.internal.module.ModuleHashesBuilder$TopoSorter.<init>:(Ljdk/internal/module/ModuleHashesBuilder$Graph;)V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.ordered:(Ljava/util/function/Consumer;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 3 1 action Ljava/util/function/Consumer<TT;>;
1 3 2 sorter Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
Signature: (Ljava/util/function/Consumer<TT;>;)V
MethodParameters:
Name Flags
action
public void reverse(java.util.function.Consumer<T>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new jdk.internal.module.ModuleHashesBuilder$TopoSorter
dup
aload 0
invokespecial jdk.internal.module.ModuleHashesBuilder$TopoSorter.<init>:(Ljdk/internal/module/ModuleHashesBuilder$Graph;)V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.reverse:(Ljava/util/function/Consumer;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 3 1 action Ljava/util/function/Consumer<TT;>;
1 3 2 sorter Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
Signature: (Ljava/util/function/Consumer<TT;>;)V
MethodParameters:
Name Flags
action
public jdk.internal.module.ModuleHashesBuilder$Graph<T> transpose();
descriptor: ()Ljdk/internal/module/ModuleHashesBuilder$Graph;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.internal.module.ModuleHashesBuilder$Graph$Builder
dup
invokespecial jdk.internal.module.ModuleHashesBuilder$Graph$Builder.<init>:()V
astore 1
start local 1 1: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/internal/module/ModuleHashesBuilder$Graph$Builder.addNode(Ljava/lang/Object;)V (5)
(Ljava/lang/Object;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.edges:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aload 0
aload 1
invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$Graph;Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/internal/module/ModuleHashesBuilder$Graph.lambda$1(Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;Ljava/lang/Object;)V (7)
(Ljava/lang/Object;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
3: aload 1
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph$Builder.build:()Ljdk/internal/module/ModuleHashesBuilder$Graph;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
1 4 1 builder Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder<TT;>;
Signature: ()Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
public java.util.Set<T> dfs(T);
descriptor: (Ljava/lang/Object;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Set.of:(Ljava/lang/Object;)Ljava/util/Set;
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph.dfs:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 1 1 root TT;
Signature: (TT;)Ljava/util/Set<TT;>;
MethodParameters:
Name Flags
root
public java.util.Set<T> dfs(java.util.Set<T>);
descriptor: (Ljava/util/Set;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.LinkedList
dup
aload 1
invokespecial java.util.LinkedList.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 2: goto 10
3: StackMap locals: java.util.Deque java.util.Set
StackMap stack:
aload 2
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
astore 4
start local 4 4: aload 3
aload 4
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 10
5: aload 3
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: aload 0
aload 4
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph.contains:(Ljava/lang/Object;)Z
ifeq 10
7: aload 0
aload 4
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph.adjacentNodes:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
8: aload 3
invokedynamic test(Ljava/util/Set;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/internal/module/ModuleHashesBuilder$Graph.lambda$3(Ljava/util/Set;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
9: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Deque;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/Deque.push(Ljava/lang/Object;)V (9 itf)
(Ljava/lang/Object;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
end local 4 10: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 3
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 12 1 roots Ljava/util/Set<TT;>;
1 12 2 deque Ljava/util/Deque<TT;>;
2 12 3 visited Ljava/util/Set<TT;>;
4 10 4 u TT;
Signature: (Ljava/util/Set<TT;>;)Ljava/util/Set<TT;>;
MethodParameters:
Name Flags
roots
public void printGraph(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new java.lang.StringBuilder
dup
ldc "graph for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
2: aload 0
aload 1
invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$Graph;Ljava/io/PrintStream;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/internal/module/ModuleHashesBuilder$Graph.lambda$5(Ljava/io/PrintStream;Ljava/lang/Object;)V (7)
(Ljava/lang/Object;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 4 1 out Ljava/io/PrintStream;
MethodParameters:
Name Flags
out
private void lambda$1(jdk.internal.module.ModuleHashesBuilder$Graph$Builder, java.lang.Object);
descriptor: (Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;Ljava/lang/Object;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield jdk.internal.module.ModuleHashesBuilder$Graph.edges:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
1: aload 1
aload 2
invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;Ljava/lang/Object;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/internal/module/ModuleHashesBuilder$Graph.lambda$2(Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;Ljava/lang/Object;Ljava/lang/Object;)V (6)
(Ljava/lang/Object;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 3 2 u TT;
private static boolean lambda$3(java.util.Set, java.lang.Object);
descriptor: (Ljava/util/Set;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 v TT;
private void lambda$5(java.io.PrintStream, java.lang.Object);
descriptor: (Ljava/io/PrintStream;Ljava/lang/Object;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 2
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph.adjacentNodes:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
1: aload 1
aload 2
invokedynamic accept(Ljava/io/PrintStream;Ljava/lang/Object;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/internal/module/ModuleHashesBuilder$Graph.lambda$6(Ljava/io/PrintStream;Ljava/lang/Object;Ljava/lang/Object;)V (6)
(Ljava/lang/Object;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
0 2 2 u TT;
private static void lambda$2(jdk.internal.module.ModuleHashesBuilder$Graph$Builder, java.lang.Object, java.lang.Object);
descriptor: (Ljdk/internal/module/ModuleHashesBuilder$Graph$Builder;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 0
aload 2
aload 1
invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph$Builder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)V
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 v TT;
private static void lambda$6(java.io.PrintStream, java.lang.Object, java.lang.Object);
descriptor: (Ljava/io/PrintStream;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=3
start local 2 0: aload 0
ldc " %s -> %s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 v TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ModuleHashesBuilder.java"
NestHost: jdk.internal.module.ModuleHashesBuilder
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
Graph = jdk.internal.module.ModuleHashesBuilder$Graph of jdk.internal.module.ModuleHashesBuilder
Builder = jdk.internal.module.ModuleHashesBuilder$Graph$Builder of jdk.internal.module.ModuleHashesBuilder$Graph
private TopoSorter = jdk.internal.module.ModuleHashesBuilder$TopoSorter of jdk.internal.module.ModuleHashesBuilder