public class jdk.nashorn.internal.runtime.options.KeyValueOption extends jdk.nashorn.internal.runtime.options.Option<java.lang.String>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.options.KeyValueOption
super_class: jdk.nashorn.internal.runtime.options.Option
{
protected java.util.Map<java.lang.String, java.lang.String> map;
descriptor: Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
void <init>(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
aload 1
invokespecial jdk.nashorn.internal.runtime.options.Option.<init>:(Ljava/lang/Object;)V
1: aload 0
invokevirtual jdk.nashorn.internal.runtime.options.KeyValueOption.initialize:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/options/KeyValueOption;
0 3 1 value Ljava/lang/String;
MethodParameters:
Name Flags
value final
java.util.Map<java.lang.String, java.lang.String> getValues();
descriptor: ()Ljava/util/Map;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/options/KeyValueOption;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public boolean hasValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
ifnull 1
aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/options/KeyValueOption;
0 2 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key final
java.lang.String getValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: ldc ""
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
aconst_null
goto 5
StackMap locals: java.lang.String
StackMap stack:
4: aload 2
StackMap locals:
StackMap stack: java.lang.String
5: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/options/KeyValueOption;
0 6 1 key Ljava/lang/String;
3 6 2 val Ljava/lang/String;
MethodParameters:
Name Flags
key final
private void initialize();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.options.KeyValueOption.getValue:()Ljava/lang/Object;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
3: new java.util.StringTokenizer
dup
aload 0
invokevirtual jdk.nashorn.internal.runtime.options.KeyValueOption.getValue:()Ljava/lang/Object;
checkcast java.lang.String
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1
start local 1 4: goto 14
5: StackMap locals: java.util.StringTokenizer
StackMap stack:
aload 1
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 2
start local 2 6: aload 2
ldc ":"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 7: aload 3
arraylength
iconst_1
if_icmpne 10
8: aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
aload 3
iconst_0
aaload
ldc ""
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 14
StackMap locals: java.lang.String java.lang.String[]
StackMap stack:
10: aload 3
arraylength
iconst_2
if_icmpne 13
11: aload 0
getfield jdk.nashorn.internal.runtime.options.KeyValueOption.map:Ljava/util/Map;
aload 3
iconst_0
aaload
aload 3
iconst_1
aaload
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: goto 14
13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 14: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.StringTokenizer.hasMoreElements:()Z
ifne 5
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/internal/runtime/options/KeyValueOption;
4 16 1 st Ljava/util/StringTokenizer;
6 14 2 token Ljava/lang/String;
7 14 3 keyValue [Ljava/lang/String;
}
Signature: Ljdk/nashorn/internal/runtime/options/Option<Ljava/lang/String;>;
SourceFile: "KeyValueOption.java"