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 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
2: aload 0
new jdk.internal.org.jline.reader.impl.UndoTree$Node
dup
aload 0
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: aload 0
getfield jdk.internal.org.jline.reader.impl.UndoTree.parent:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
aload 0
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: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.clear:()V
5: return
end local 1 end local 0 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 0: aload 0
aload 0
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: return
end local 0 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 start local 1 0: new jdk.internal.org.jline.reader.impl.UndoTree$Node
dup
aload 0
aload 1
invokespecial jdk.internal.org.jline.reader.impl.UndoTree$Node.<init>:(Ljdk/internal/org/jline/reader/impl/UndoTree;Ljava/lang/Object;)V
astore 2
start local 2 1: aload 0
getfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
aload 2
putfield jdk.internal.org.jline.reader.impl.UndoTree$Node.right:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
2: aload 2
aload 0
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: aload 0
aload 2
putfield jdk.internal.org.jline.reader.impl.UndoTree.current:Ljdk/internal/org/jline/reader/impl/UndoTree$Node;
4: return
end local 2 end local 1 end local 0 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 0: aload 0
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
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 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 0: aload 0
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 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 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.canUndo:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Cannot undo."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
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: aload 0
getfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
aload 0
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: return
end local 0 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 0: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.UndoTree.canRedo:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Cannot redo."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
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: aload 0
getfield jdk.internal.org.jline.reader.impl.UndoTree.state:Ljava/util/function/Consumer;
aload 0
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: return
end local 0 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