public class jdk.internal.org.jline.reader.impl.UndoTree<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: jdk.internal.org.jline.reader.impl.UndoTree
  super_class: java.lang.Object
{
  private final java.util.function.Consumer<T> state;
    descriptor: Ljava/util/function/Consumer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/function/Consumer<TT;>;

  private final jdk.internal.org.jline.reader.impl.UndoTree<T>.Node parent;
    descriptor: Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>.Node;

  private jdk.internal.org.jline.reader.impl.UndoTree<T>.Node current;
    descriptor: Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>.Node;

  public void <init>(java.util.function.Consumer<T>);
    descriptor: (Ljava/util/function/Consumer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
        start local 1 // java.util.function.Consumer s
         0: .line 23
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 24
            aload 0 /* this */
            aload 1 /* s */
            putfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
         2: .line 25
            aload 0 /* this */
            new jdk.internal.org.jline.reader.impl.UndoTree$Node
            dup
            aload 0 /* this */
            aconst_null
            invokespecial jdk.internal.org.jline.reader.impl.UndoTree$Node.<init>:(Ljdk/internal/org/jline/reader/impl/UndoTree;Ljava/lang/Object;)V
            putfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         3: .line 26
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            putfield jdk.internal.org.jline.reader.impl.UndoTree$Node.left:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         4: .line 27
            aload 0 /* this */
            invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.clear:()V
         5: .line 28
            return
        end local 1 // java.util.function.Consumer s
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;
            0    6     1     s  Ljava/util/function/Consumer<TT;>;
    Signature: (Ljava/util/function/Consumer<TT;>;)V
    MethodParameters:
      Name  Flags
      s     

  public void clear();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
         0: .line 31
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            putfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         1: .line 32
            return
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;

  public void newState();
    descriptor: (Ljava/lang/Object;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
        start local 1 // java.lang.Object state
         0: .line 35
            new jdk.internal.org.jline.reader.impl.UndoTree$Node
            dup
            aload 0 /* this */
            aload 1 /* state */
            invokespecial jdk.internal.org.jline.reader.impl.UndoTree$Node.<init>:(Ljdk/internal/org/jline/reader/impl/UndoTree;Ljava/lang/Object;)V
            astore 2 /* node */
        start local 2 // jdk.internal.org.jline.reader.impl.UndoTree$Node node
         1: .line 36
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            aload 2 /* node */
            putfield jdk.internal.org.jline.reader.impl.UndoTree$Node.right:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         2: .line 37
            aload 2 /* node */
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            putfield jdk.internal.org.jline.reader.impl.UndoTree$Node.left:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         3: .line 38
            aload 0 /* this */
            aload 2 /* node */
            putfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         4: .line 39
            return
        end local 2 // jdk.internal.org.jline.reader.impl.UndoTree$Node node
        end local 1 // java.lang.Object state
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    5     0   this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;
            0    5     1  state  TT;
            1    5     2   node  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>.Node;
    Signature: (TT;)V
    MethodParameters:
       Name  Flags
      state  

  public boolean canUndo();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
         0: .line 42
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.left:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            if_acmpeq 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;

  public boolean canRedo();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
         0: .line 46
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.right:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            ifnull 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;

  public void undo();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
         0: .line 50
            aload 0 /* this */
            invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.canUndo:()Z
            ifne 2
         1: .line 51
            new java.lang.IllegalStateException
            dup
            ldc "Cannot undo."
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 53
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.left:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            putfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         3: .line 54
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.state:Ljava/lang/Object;
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
         4: .line 55
            return
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;

  public void redo();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
         0: .line 58
            aload 0 /* this */
            invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.canRedo:()Z
            ifne 2
         1: .line 59
            new java.lang.IllegalStateException
            dup
            ldc "Cannot redo."
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 61
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.right:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            putfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
         3: .line 62
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
            aload 0 /* this */
            getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
            getfield jdk.internal.org.jline.reader.impl.UndoTree$Node.state:Ljava/lang/Object;
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
         4: .line 63
            return
        end local 0 // jdk.internal.org.jline.reader.impl.UndoTree this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/internal/org/jline/reader/impl/UndoTree<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "UndoTree.java"
NestMembers:
  jdk.internal.org.jline.reader.impl.UndoTree$Node
InnerClasses:
  private Node = jdk.internal.org.jline.reader.impl.UndoTree$Node of jdk.internal.org.jline.reader.impl.UndoTree