class jdk.internal.jshell.tool.JShellTool$EditorSetting
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.JShellTool$EditorSetting
super_class: java.lang.Object
{
static java.lang.String BUILT_IN_REP;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static char WAIT_PREFIX;
descriptor: C
flags: (0x0008) ACC_STATIC
static char NORMAL_PREFIX;
descriptor: C
flags: (0x0008) ACC_STATIC
final java.lang.String[] cmd;
descriptor: [Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final boolean wait;
descriptor: Z
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "-default"
putstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.BUILT_IN_REP:Ljava/lang/String;
1: bipush 45
putstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.WAIT_PREFIX:C
2: bipush 42
putstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.NORMAL_PREFIX:C
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String[], boolean);
descriptor: ([Ljava/lang/String;Z)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 2
putfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
2: aload 0
aload 1
putfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
0 4 1 cmd [Ljava/lang/String;
0 4 2 wait Z
MethodParameters:
Name Flags
cmd
wait
static jdk.internal.jshell.tool.JShellTool$EditorSetting fromPrefs(jdk.internal.jshell.tool.PersistentStorage);
descriptor: (Ljdk/internal/jshell/tool/PersistentStorage;)Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
ldc "EDITOR"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 1
getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.BUILT_IN_REP:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: getstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
areturn
5: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 6: aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 7: iload 3
getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.WAIT_PREFIX:C
if_icmpeq 8
iload 3
getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.NORMAL_PREFIX:C
if_icmpne 12
8: StackMap locals: int int
StackMap stack:
iload 3
getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.WAIT_PREFIX:C
if_icmpne 9
iconst_1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 2
11: aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
12: StackMap locals:
StackMap stack:
aload 1
ldc "\u241E"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 13: new jdk.internal.jshell.tool.JShellTool$EditorSetting
dup
aload 4
iload 2
invokespecial jdk.internal.jshell.tool.JShellTool$EditorSetting.<init>:([Ljava/lang/String;Z)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 prefs Ljdk/internal/jshell/tool/PersistentStorage;
1 14 1 editorString Ljava/lang/String;
6 14 2 wait Z
7 14 3 waitMarker C
13 14 4 cmd [Ljava/lang/String;
MethodParameters:
Name Flags
prefs
static void removePrefs(jdk.internal.jshell.tool.PersistentStorage);
descriptor: (Ljdk/internal/jshell/tool/PersistentStorage;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "EDITOR"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.remove:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 prefs Ljdk/internal/jshell/tool/PersistentStorage;
MethodParameters:
Name Flags
prefs
void toPrefs(jdk.internal.jshell.tool.PersistentStorage);
descriptor: (Ljdk/internal/jshell/tool/PersistentStorage;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "EDITOR"
aload 0
getstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
if_acmpne 2
1: getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.BUILT_IN_REP:Ljava/lang/String;
goto 5
2: StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting jdk.internal.jshell.tool.PersistentStorage
StackMap stack: jdk.internal.jshell.tool.PersistentStorage java.lang.String
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
ifeq 3
getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.WAIT_PREFIX:C
goto 4
StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting jdk.internal.jshell.tool.PersistentStorage
StackMap stack: jdk.internal.jshell.tool.PersistentStorage java.lang.String new 2 new 2
3: getstatic jdk.internal.jshell.tool.JShellTool$EditorSetting.NORMAL_PREFIX:C
StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting jdk.internal.jshell.tool.PersistentStorage
StackMap stack: jdk.internal.jshell.tool.PersistentStorage java.lang.String new 2 new 2 int
4: invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\u241E"
aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting jdk.internal.jshell.tool.PersistentStorage
StackMap stack: jdk.internal.jshell.tool.PersistentStorage java.lang.String java.lang.String
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
0 7 1 prefs Ljdk/internal/jshell/tool/PersistentStorage;
MethodParameters:
Name Flags
prefs
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.internal.jshell.tool.JShellTool$EditorSetting
ifeq 4
1: aload 1
checkcast jdk.internal.jshell.tool.JShellTool$EditorSetting
astore 2
start local 2 2: aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
aload 2
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
invokestatic java.util.Arrays.equals:([Ljava/lang/Object;[Ljava/lang/Object;)Z
ifeq 3
aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
aload 2
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
if_icmpne 3
iconst_1
ireturn
StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting
StackMap stack:
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
0 5 1 o Ljava/lang/Object;
2 4 2 ed Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: bipush 7
istore 1
start local 1 1: bipush 71
iload 1
imul
aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
invokestatic java.util.Arrays.deepHashCode:([Ljava/lang/Object;)I
iadd
istore 1
2: bipush 71
iload 1
imul
aload 0
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
ifeq 3
iconst_1
goto 4
StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting int
StackMap stack: int
3: iconst_0
StackMap locals: jdk.internal.jshell.tool.JShellTool$EditorSetting int
StackMap stack: int int
4: iadd
istore 1
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
1 6 1 hash I
}
SourceFile: "JShellTool.java"
NestHost: jdk.internal.jshell.tool.JShellTool
InnerClasses:
EditorSetting = jdk.internal.jshell.tool.JShellTool$EditorSetting of jdk.internal.jshell.tool.JShellTool