class jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage implements jdk.internal.jshell.tool.PersistentStorage
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage
super_class: java.lang.Object
{
final java.util.prefs.Preferences p;
descriptor: Ljava/util/prefs/Preferences;
flags: (0x0010) ACC_FINAL
void <init>(java.util.prefs.Preferences);
descriptor: (Ljava/util/prefs/Preferences;)V
flags: (0x0000)
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.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
0 3 1 p Ljava/util/prefs/Preferences;
MethodParameters:
Name Flags
p
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
invokevirtual java.util.prefs.Preferences.clear:()V
1: goto 4
StackMap locals:
StackMap stack: java.util.prefs.BackingStoreException
2: astore 1
start local 1 3: new java.lang.IllegalStateException
dup
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
3 4 1 ex Ljava/util/prefs/BackingStoreException;
Exception table:
from to target type
0 1 2 Class java.util.prefs.BackingStoreException
public java.lang.String[] keys();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
invokevirtual java.util.prefs.Preferences.keys:()[Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.util.prefs.BackingStoreException
astore 1
start local 1 3: new java.lang.IllegalStateException
dup
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
3 4 1 ex Ljava/util/prefs/BackingStoreException;
Exception table:
from to target type
0 1 2 Class java.util.prefs.BackingStoreException
public java.lang.String get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
aload 1
aconst_null
invokevirtual java.util.prefs.Preferences.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
0 1 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public void put(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
aload 1
aload 2
invokevirtual java.util.prefs.Preferences.put:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
0 2 1 key Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
key
value
public void remove(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
aload 1
invokevirtual java.util.prefs.Preferences.remove:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
0 2 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage.p:Ljava/util/prefs/Preferences;
invokevirtual java.util.prefs.Preferences.flush:()V
1: goto 4
StackMap locals:
StackMap stack: java.util.prefs.BackingStoreException
2: astore 1
start local 1 3: new java.lang.IllegalStateException
dup
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellToolBuilder$PreferencesStorage;
3 4 1 ex Ljava/util/prefs/BackingStoreException;
Exception table:
from to target type
0 1 2 Class java.util.prefs.BackingStoreException
}
SourceFile: "JShellToolBuilder.java"
NestHost: jdk.internal.jshell.tool.JShellToolBuilder
InnerClasses:
private PreferencesStorage = jdk.internal.jshell.tool.JShellToolBuilder$PreferencesStorage of jdk.internal.jshell.tool.JShellToolBuilder