class com.sun.tools.jdeps.Graph$TopoSorter<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.sun.tools.jdeps.Graph$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 com.sun.tools.jdeps.Graph<T> graph;
    descriptor: Lcom/sun/tools/jdeps/Graph;
    flags: (0x0010) ACC_FINAL
    Signature: Lcom/sun/tools/jdeps/Graph<TT;>;

  void <init>(com.sun.tools.jdeps.Graph<T>);
    descriptor: (Lcom/sun/tools/jdeps/Graph;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
        start local 1 // com.sun.tools.jdeps.Graph graph
         0: .line 293
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 291
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            invokespecial java.util.ArrayDeque.<init>:()V
            putfield com.sun.tools.jdeps.Graph$TopoSorter.result:Ljava/util/Deque;
         2: .line 294
            aload 0 /* this */
            aload 1 /* graph */
            putfield com.sun.tools.jdeps.Graph$TopoSorter.graph:Lcom/sun/tools/jdeps/Graph;
         3: .line 295
            aload 0 /* this */
            invokevirtual com.sun.tools.jdeps.Graph$TopoSorter.sort:()V
         4: .line 296
            return
        end local 1 // com.sun.tools.jdeps.Graph graph
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    5     0   this  Lcom/sun/tools/jdeps/Graph$TopoSorter<TT;>;
            0    5     1  graph  Lcom/sun/tools/jdeps/Graph<TT;>;
    Signature: (Lcom/sun/tools/jdeps/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 // com.sun.tools.jdeps.Graph$TopoSorter this
        start local 1 // java.util.function.Consumer action
         0: .line 299
            aload 0 /* this */
            getfield com.sun.tools.jdeps.Graph$TopoSorter.result:Ljava/util/Deque;
            invokeinterface java.util.Deque.iterator:()Ljava/util/Iterator;
            aload 1 /* action */
            invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
         1: .line 300
            return
        end local 1 // java.util.function.Consumer action
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lcom/sun/tools/jdeps/Graph$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 // com.sun.tools.jdeps.Graph$TopoSorter this
        start local 1 // java.util.function.Consumer action
         0: .line 303
            aload 0 /* this */
            getfield com.sun.tools.jdeps.Graph$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 304
            return
        end local 1 // java.util.function.Consumer action
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lcom/sun/tools/jdeps/Graph$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=5, args_size=1
        start local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
         0: .line 307
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            astore 1 /* visited */
        start local 1 // java.util.Set visited
         1: .line 308
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            astore 2 /* done */
        start local 2 // java.util.Set done
         2: .line 309
            aload 0 /* this */
            getfield com.sun.tools.jdeps.Graph$TopoSorter.graph:Lcom/sun/tools/jdeps/Graph;
            invokevirtual com.sun.tools.jdeps.Graph.nodes:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 4
            goto 6
      StackMap locals: com.sun.tools.jdeps.Graph$TopoSorter java.util.Set java.util.Set top java.util.Iterator
      StackMap stack:
         3: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.Object
            astore 3 /* node */
        start local 3 // java.lang.Object node
         4: .line 310
            aload 1 /* visited */
            aload 3 /* node */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ifne 6
         5: .line 311
            aload 0 /* this */
            aload 3 /* node */
            aload 1 /* visited */
            aload 2 /* done */
            invokevirtual com.sun.tools.jdeps.Graph$TopoSorter.visit:(Ljava/lang/Object;Ljava/util/Set;Ljava/util/Set;)V
        end local 3 // java.lang.Object node
         6: .line 309
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         7: .line 314
            return
        end local 2 // java.util.Set done
        end local 1 // java.util.Set visited
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    8     0     this  Lcom/sun/tools/jdeps/Graph$TopoSorter<TT;>;
            1    8     1  visited  Ljava/util/Set<TT;>;
            2    8     2     done  Ljava/util/Set<TT;>;
            4    6     3     node  TT;

  private void visit(T, java.util.Set<T>, java.util.Set<T>);
    descriptor: (Ljava/lang/Object;Ljava/util/Set;Ljava/util/Set;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
        start local 1 // java.lang.Object node
        start local 2 // java.util.Set visited
        start local 3 // java.util.Set done
         0: .line 317
            aload 2 /* visited */
            aload 1 /* node */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ifeq 6
         1: .line 318
            aload 3 /* done */
            aload 1 /* node */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ifne 5
         2: .line 319
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Cyclic detected: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         3: .line 320
            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 */
            getfield com.sun.tools.jdeps.Graph$TopoSorter.graph:Lcom/sun/tools/jdeps/Graph;
            invokevirtual com.sun.tools.jdeps.Graph.edges:()Ljava/util/Map;
            aload 1 /* node */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         4: .line 319
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 322
      StackMap locals:
      StackMap stack:
            return
         6: .line 324
      StackMap locals:
      StackMap stack:
            aload 2 /* visited */
            aload 1 /* node */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
         7: .line 325
            aload 0 /* this */
            getfield com.sun.tools.jdeps.Graph$TopoSorter.graph:Lcom/sun/tools/jdeps/Graph;
            invokevirtual com.sun.tools.jdeps.Graph.edges:()Ljava/util/Map;
            aload 1 /* node */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.Set
            invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
         8: .line 326
            aload 0 /* this */
            aload 2 /* visited */
            aload 3 /* done */
            invokedynamic accept(Lcom/sun/tools/jdeps/Graph$TopoSorter;Ljava/util/Set;Ljava/util/Set;)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
                  com/sun/tools/jdeps/Graph$TopoSorter.lambda$0(Ljava/util/Set;Ljava/util/Set;Ljava/lang/Object;)V (7)
                  (Ljava/lang/Object;)V
            invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
         9: .line 327
            aload 3 /* done */
            aload 1 /* node */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
        10: .line 328
            aload 0 /* this */
            getfield com.sun.tools.jdeps.Graph$TopoSorter.result:Ljava/util/Deque;
            aload 1 /* node */
            invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
        11: .line 329
            return
        end local 3 // java.util.Set done
        end local 2 // java.util.Set visited
        end local 1 // java.lang.Object node
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   12     0     this  Lcom/sun/tools/jdeps/Graph$TopoSorter<TT;>;
            0   12     1     node  TT;
            0   12     2  visited  Ljava/util/Set<TT;>;
            0   12     3     done  Ljava/util/Set<TT;>;
    Signature: (TT;Ljava/util/Set<TT;>;Ljava/util/Set<TT;>;)V
    MethodParameters:
         Name  Flags
      node     
      visited  
      done     

  private void lambda$0(java.util.Set, java.util.Set, java.lang.Object);
    descriptor: (Ljava/util/Set;Ljava/util/Set;Ljava/lang/Object;)V
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
        start local 3 // java.lang.Object x
         0: .line 326
            aload 0 /* this */
            aload 3 /* x */
            aload 1
            aload 2
            invokevirtual com.sun.tools.jdeps.Graph$TopoSorter.visit:(Ljava/lang/Object;Ljava/util/Set;Ljava/util/Set;)V
            return
        end local 3 // java.lang.Object x
        end local 0 // com.sun.tools.jdeps.Graph$TopoSorter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/tools/jdeps/Graph$TopoSorter<TT;>;
            0    1     3     x  TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Graph.java"
NestHost: com.sun.tools.jdeps.Graph
InnerClasses:
  TopoSorter = com.sun.tools.jdeps.Graph$TopoSorter of com.sun.tools.jdeps.Graph
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles