class jdk.internal.module.ModuleHashesBuilder$TopoSorter<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.internal.module.ModuleHashesBuilder$TopoSorter
  super_class: java.lang.Object
{
  final java.util.Deque<T> result;
    descriptor: Ljava/util/Deque;
    flags: (0x0010) ACC_FINAL
    Signature: Ljava/util/Deque<TT;>;

  final jdk.internal.module.ModuleHashesBuilder$Graph<T> graph;
    descriptor: Ljdk/internal/module/ModuleHashesBuilder$Graph;
    flags: (0x0010) ACC_FINAL
    Signature: Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;

  void <init>(jdk.internal.module.ModuleHashesBuilder$Graph<T>);
    descriptor: (Ljdk/internal/module/ModuleHashesBuilder$Graph;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 1 // jdk.internal.module.ModuleHashesBuilder$Graph graph
         0: .line 262
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 259
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            invokespecial java.util.ArrayDeque.<init>:()V
            putfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.result:Ljava/util/Deque;
         2: .line 263
            aload 0 /* this */
            aload 1 /* graph */
            putfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.graph:Ljdk/internal/module/ModuleHashesBuilder$Graph;
         3: .line 264
            aload 0 /* this */
            invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.sort:()V
         4: .line 265
            return
        end local 1 // jdk.internal.module.ModuleHashesBuilder$Graph graph
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    5     0   this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    5     1  graph  Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;
    Signature: (Ljdk/internal/module/ModuleHashesBuilder$Graph<TT;>;)V
    MethodParameters:
       Name  Flags
      graph  

  public void ordered(java.util.function.Consumer<T>);
    descriptor: (Ljava/util/function/Consumer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 1 // java.util.function.Consumer action
         0: .line 268
            aload 0 /* this */
            getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.result:Ljava/util/Deque;
            aload 1 /* action */
            invokeinterface java.util.Deque.forEach:(Ljava/util/function/Consumer;)V
         1: .line 269
            return
        end local 1 // java.util.function.Consumer action
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    2     1  action  Ljava/util/function/Consumer<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=2, locals=2, args_size=2
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 1 // java.util.function.Consumer action
         0: .line 272
            aload 0 /* this */
            getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.result:Ljava/util/Deque;
            invokeinterface java.util.Deque.descendingIterator:()Ljava/util/Iterator;
            aload 1 /* action */
            invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
         1: .line 273
            return
        end local 1 // java.util.function.Consumer action
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    2     1  action  Ljava/util/function/Consumer<TT;>;
    Signature: (Ljava/util/function/Consumer<TT;>;)V
    MethodParameters:
        Name  Flags
      action  

  private void sort();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
         0: .line 276
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            astore 1 /* visited */
        start local 1 // java.util.Set visited
         1: .line 277
            new java.util.ArrayDeque
            dup
            invokespecial java.util.ArrayDeque.<init>:()V
            astore 2 /* stack */
        start local 2 // java.util.Deque stack
         2: .line 278
            aload 0 /* this */
            getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.graph:Ljdk/internal/module/ModuleHashesBuilder$Graph;
            getfield jdk.internal.module.ModuleHashesBuilder$Graph.nodes:Ljava/util/Set;
            aload 0 /* this */
            aload 1 /* visited */
            aload 2 /* stack */
            invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$TopoSorter;Ljava/util/Set;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
                  jdk/internal/module/ModuleHashesBuilder$TopoSorter.lambda$0(Ljava/util/Set;Ljava/util/Deque;Ljava/lang/Object;)V (7)
                  (Ljava/lang/Object;)V
            invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
         3: .line 279
            return
        end local 2 // java.util.Deque stack
        end local 1 // java.util.Set visited
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            1    4     1  visited  Ljava/util/Set<TT;>;
            2    4     2    stack  Ljava/util/Deque<TT;>;

  private java.util.Set<T> children(T);
    descriptor: (Ljava/lang/Object;)Ljava/util/Set;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 1 // java.lang.Object node
         0: .line 282
            aload 0 /* this */
            getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.graph:Ljdk/internal/module/ModuleHashesBuilder$Graph;
            invokevirtual jdk.internal.module.ModuleHashesBuilder$Graph.edges:()Ljava/util/Map;
            aload 1 /* node */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.Set
            areturn
        end local 1 // java.lang.Object node
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    1     1  node  TT;
    Signature: (TT;)Ljava/util/Set<TT;>;
    MethodParameters:
      Name  Flags
      node  

  private void visit(T, java.util.Set<T>, java.util.Deque<T>);
    descriptor: (Ljava/lang/Object;Ljava/util/Set;Ljava/util/Deque;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 1 // java.lang.Object node
        start local 2 // java.util.Set visited
        start local 3 // java.util.Deque stack
         0: .line 286
            aload 2 /* visited */
            aload 1 /* node */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            ifeq 6
         1: .line 287
            aload 3 /* stack */
            aload 1 /* node */
            invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
         2: .line 288
            aload 0 /* this */
            aload 1 /* node */
            invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.children:(Ljava/lang/Object;)Ljava/util/Set;
            aload 0 /* this */
            aload 2 /* visited */
            aload 3 /* stack */
            invokedynamic accept(Ljdk/internal/module/ModuleHashesBuilder$TopoSorter;Ljava/util/Set;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
                  jdk/internal/module/ModuleHashesBuilder$TopoSorter.lambda$1(Ljava/util/Set;Ljava/util/Deque;Ljava/lang/Object;)V (7)
                  (Ljava/lang/Object;)V
            invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
         3: .line 289
            aload 3 /* stack */
            invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
            pop
         4: .line 290
            aload 0 /* this */
            getfield jdk.internal.module.ModuleHashesBuilder$TopoSorter.result:Ljava/util/Deque;
            aload 1 /* node */
            invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
         5: .line 291
            goto 10
         6: .line 292
      StackMap locals:
      StackMap stack:
            aload 3 /* stack */
            aload 1 /* node */
            invokeinterface java.util.Deque.contains:(Ljava/lang/Object;)Z
            ifeq 10
         7: .line 293
            new java.lang.IllegalArgumentException
            dup
         8: .line 294
            new java.lang.StringBuilder
            dup
            ldc "Cycle detected: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* node */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " -> "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            aload 1 /* node */
            invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.children:(Ljava/lang/Object;)Ljava/util/Set;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         9: .line 293
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        10: .line 296
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.util.Deque stack
        end local 2 // java.util.Set visited
        end local 1 // java.lang.Object node
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   11     0     this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0   11     1     node  TT;
            0   11     2  visited  Ljava/util/Set<TT;>;
            0   11     3    stack  Ljava/util/Deque<TT;>;
    Signature: (TT;Ljava/util/Set<TT;>;Ljava/util/Deque<TT;>;)V
    MethodParameters:
         Name  Flags
      node     
      visited  
      stack    

  private void lambda$0(java.util.Set, java.util.Deque, java.lang.Object);
    descriptor: (Ljava/util/Set;Ljava/util/Deque;Ljava/lang/Object;)V
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 3 // java.lang.Object node
         0: .line 278
            aload 0 /* this */
            aload 3 /* node */
            aload 1
            aload 2
            invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.visit:(Ljava/lang/Object;Ljava/util/Set;Ljava/util/Deque;)V
            return
        end local 3 // java.lang.Object node
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    1     3  node  TT;

  private void lambda$1(java.util.Set, java.util.Deque, java.lang.Object);
    descriptor: (Ljava/util/Set;Ljava/util/Deque;Ljava/lang/Object;)V
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
        start local 3 // java.lang.Object child
         0: .line 288
            aload 0 /* this */
            aload 3 /* child */
            aload 1
            aload 2
            invokevirtual jdk.internal.module.ModuleHashesBuilder$TopoSorter.visit:(Ljava/lang/Object;Ljava/util/Set;Ljava/util/Deque;)V
            return
        end local 3 // java.lang.Object child
        end local 0 // jdk.internal.module.ModuleHashesBuilder$TopoSorter this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    1     0   this  Ljdk/internal/module/ModuleHashesBuilder$TopoSorter<TT;>;
            0    1     3  child  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
  private TopoSorter = jdk.internal.module.ModuleHashesBuilder$TopoSorter of jdk.internal.module.ModuleHashesBuilder