class jdk.internal.jshell.tool.JShellTool$ReplayableHistory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.JShellTool$ReplayableHistory
super_class: java.lang.Object
{
private java.util.List<java.lang.String> hist;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
private int lastSaved;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void <init>(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, 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.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
2: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.lastSaved:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
0 4 1 hist Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
hist
static jdk.internal.jshell.tool.JShellTool$ReplayableHistory emptyHistory();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new jdk.internal.jshell.tool.JShellTool$ReplayableHistory
dup
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
invokespecial jdk.internal.jshell.tool.JShellTool$ReplayableHistory.<init>:(Ljava/util/List;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
static jdk.internal.jshell.tool.JShellTool$ReplayableHistory fromPrevious(jdk.internal.jshell.tool.PersistentStorage);
descriptor: (Ljdk/internal/jshell/tool/PersistentStorage;)Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "REPLAY_RESTORE"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.String
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$ReplayableHistory
dup
aload 1
ldc "\u241E"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial jdk.internal.jshell.tool.JShellTool$ReplayableHistory.<init>:(Ljava/util/List;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 prefs Ljdk/internal/jshell/tool/PersistentStorage;
1 4 1 prevReplay Ljava/lang/String;
MethodParameters:
Name Flags
prefs
void storeHistory(jdk.internal.jshell.tool.PersistentStorage);
descriptor: (Ljdk/internal/jshell/tool/PersistentStorage;)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.lastSaved:I
if_icmple 12
1: ldc "\u241E"
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 4
start local 4 4: goto 6
5: StackMap locals: int int int
StackMap stack:
iload 3
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.String.length:()I
iload 2
iadd
iadd
istore 3
6: StackMap locals:
StackMap stack:
iload 3
sipush 8192
if_icmpge 7
iinc 4 -1
iload 4
ifge 5
7: StackMap locals:
StackMap stack:
iload 4
iflt 9
8: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
iload 4
iconst_1
iadd
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
putfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
9: StackMap locals:
StackMap stack:
ldc "\u241E"
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
astore 5
start local 5 10: aload 1
ldc "REPLAY_RESTORE"
aload 5
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
11: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.markSaved:()V
end local 5 end local 4 end local 3 end local 2 12: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.internal.jshell.tool.PersistentStorage.flush:()V
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
0 14 1 prefs Ljdk/internal/jshell/tool/PersistentStorage;
2 12 2 sepLen I
3 12 3 length I
4 12 4 first I
10 12 5 shist Ljava/lang/String;
MethodParameters:
Name Flags
prefs
void add(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
0 2 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
java.lang.Iterable<java.lang.String> iterable();
descriptor: ()Ljava/lang/Iterable;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
Signature: ()Ljava/lang/Iterable<Ljava/lang/String;>;
void markSaved();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.hist:Ljava/util/List;
invokeinterface java.util.List.size:()I
putfield jdk.internal.jshell.tool.JShellTool$ReplayableHistory.lastSaved:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
}
SourceFile: "JShellTool.java"
NestHost: jdk.internal.jshell.tool.JShellTool
InnerClasses:
private ReplayableHistory = jdk.internal.jshell.tool.JShellTool$ReplayableHistory of jdk.internal.jshell.tool.JShellTool