final class jdk.nashorn.tools.jjs.PropertiesHelper
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.tools.jjs.PropertiesHelper
super_class: java.lang.Object
{
private jdk.nashorn.tools.jjs.PackagesHelper pkgsHelper;
descriptor: Ljdk/nashorn/tools/jjs/PackagesHelper;
flags: (0x0002) ACC_PRIVATE
private final java.util.WeakHashMap<java.lang.Object, java.util.List<java.lang.String>> propsCache;
descriptor: Ljava/util/WeakHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/WeakHashMap<Ljava/lang/Object;Ljava/util/List<Ljava/lang/String;>;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/nashorn/tools/jjs/PropertiesHelper;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.nashorn.tools.jjs.PropertiesHelper.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/runtime/Context;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
2: aload 0
aload 1
invokestatic jdk.nashorn.tools.jjs.PackagesHelper.create:(Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/tools/jjs/PackagesHelper;
putfield jdk.nashorn.tools.jjs.PropertiesHelper.pkgsHelper:Ljdk/nashorn/tools/jjs/PackagesHelper;
3: goto 8
StackMap locals: jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.Context
StackMap stack: java.io.IOException
4: astore 2
start local 2 5: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 7
6: aload 2
invokevirtual java.io.IOException.printStackTrace:()V
7: StackMap locals: java.io.IOException
StackMap stack:
aload 0
aconst_null
putfield jdk.nashorn.tools.jjs.PropertiesHelper.pkgsHelper:Ljdk/nashorn/tools/jjs/PackagesHelper;
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/tools/jjs/PropertiesHelper;
0 9 1 context Ljdk/nashorn/internal/runtime/Context;
5 8 2 exp Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
context final
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.clear:()V
1: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.pkgsHelper:Ljdk/nashorn/tools/jjs/PackagesHelper;
invokevirtual jdk.nashorn.tools.jjs.PackagesHelper.close:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/tools/jjs/PropertiesHelper;
Exceptions:
throws java.lang.Exception
java.util.List<java.lang.String> getProperties();
descriptor: (Ljava/lang/Object;)Ljava/util/List;
flags: (0x0000)
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: getstatic jdk.nashorn.tools.jjs.PropertiesHelper.$assertionsDisabled:Z
ifne 2
aload 1
ifnull 1
aload 1
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.toScriptObject:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.getProperties:(Ljava/lang/Object;)Ljava/util/List;
areturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.nashorn.internal.runtime.NativeJavaPackage
ifeq 8
5: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.pkgsHelper:Ljdk/nashorn/tools/jjs/PackagesHelper;
ifnull 7
6: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.pkgsHelper:Ljdk/nashorn/tools/jjs/PackagesHelper;
aload 1
checkcast jdk.nashorn.internal.runtime.NativeJavaPackage
invokevirtual jdk.nashorn.internal.runtime.NativeJavaPackage.getName:()Ljava/lang/String;
invokevirtual jdk.nashorn.tools.jjs.PackagesHelper.getPackageProperties:(Ljava/lang/String;)Ljava/util/List;
areturn
7: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
8: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 22
9: aload 1
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 2
start local 2 10: aload 2
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getMap:()Ljdk/nashorn/internal/runtime/PropertyMap;
astore 3
start local 3 11: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 3
invokevirtual java.util.WeakHashMap.containsKey:(Ljava/lang/Object;)Z
ifeq 13
12: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 3
invokevirtual java.util.WeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
areturn
13: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject jdk.nashorn.internal.runtime.PropertyMap
StackMap stack:
aload 2
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getAllKeys:()[Ljava/lang/String;
astore 4
start local 4 14: aload 4
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 5
start local 5 15: aload 5
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
16: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/nashorn/tools/jjs/PropertiesHelper.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
17: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
18: astore 5
19: aload 5
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
20: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 3
aload 5
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 22: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
aload 1
invokestatic jdk.nashorn.internal.objects.NativeJava.isType:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 29
23: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 1
invokevirtual java.util.WeakHashMap.containsKey:(Ljava/lang/Object;)Z
ifeq 25
24: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 1
invokevirtual java.util.WeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
areturn
25: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.objects.NativeJava.getProperties:(Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 26: aload 2
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
27: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 1
aload 2
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
28: aload 2
areturn
end local 2 29: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
start local 2 30: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 2
invokevirtual java.util.WeakHashMap.containsKey:(Ljava/lang/Object;)Z
ifeq 32
31: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 2
invokevirtual java.util.WeakHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
areturn
32: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.objects.NativeJava.getProperties:(Ljava/lang/Object;)Ljava/util/List;
astore 3
start local 3 33: aload 3
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
34: aload 0
getfield jdk.nashorn.tools.jjs.PropertiesHelper.propsCache:Ljava/util/WeakHashMap;
aload 2
aload 3
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
35: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/nashorn/tools/jjs/PropertiesHelper;
0 36 1 obj Ljava/lang/Object;
10 22 2 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
11 22 3 pmap Ljdk/nashorn/internal/runtime/PropertyMap;
14 22 4 keys [Ljava/lang/String;
15 22 5 props Ljava/util/List<Ljava/lang/String;>;
26 29 2 props Ljava/util/List<Ljava/lang/String;>;
30 36 2 clazz Ljava/lang/Class<*>;
33 36 3 props Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/lang/Object;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
obj final
private static java.util.regex.Pattern makeCamelCasePattern(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/regex/Pattern;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: getstatic jdk.nashorn.tools.jjs.PropertiesHelper.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 1
start local 1 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 2
aload 1
iconst_0
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: iconst_1
istore 4
start local 4 6: goto 13
7: StackMap locals: java.lang.String char[] java.lang.StringBuilder int int
StackMap stack:
aload 1
iload 4
caload
istore 5
start local 5 8: iload 5
bipush 65
if_icmplt 11
iload 5
bipush 90
if_icmpgt 11
9: iconst_1
istore 3
10: aload 2
ldc "[^A-Z]*"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: StackMap locals: int
StackMap stack:
aload 2
iload 5
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 5 12: iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
aload 1
arraylength
if_icmplt 7
end local 4 14: iload 3
ifeq 19
15: aload 2
ldc ".*"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
17: areturn
18: StackMap locals: java.lang.String char[] java.lang.StringBuilder int
StackMap stack: java.lang.Exception
pop
19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 str Ljava/lang/String;
2 20 1 chars [C
3 20 2 buf Ljava/lang/StringBuilder;
4 20 3 seenUpperCase Z
6 14 4 idx I
8 12 5 ch C
Exception table:
from to target type
16 17 18 Class java.lang.Exception
MethodParameters:
Name Flags
str final
java.util.List<java.lang.String> getProperties(, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
flags: (0x0000)
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.nashorn.tools.jjs.PropertiesHelper.$assertionsDisabled:Z
ifne 2
aload 2
ifnull 1
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.getProperties:(Ljava/lang/Object;)Ljava/util/List;
astore 3
start local 3 3: aload 3
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
4: aload 2
invokedynamic test(Ljava/lang/String;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/nashorn/tools/jjs/PropertiesHelper.lambda$1(Ljava/lang/String;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
6: astore 4
start local 4 7: aload 4
invokeinterface java.util.List.isEmpty:()Z
ifeq 14
8: aload 2
invokestatic jdk.nashorn.tools.jjs.PropertiesHelper.makeCamelCasePattern:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 5
start local 5 9: aload 5
ifnull 14
10: aload 3
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
11: aload 5
invokedynamic test(Ljava/util/regex/Pattern;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/nashorn/tools/jjs/PropertiesHelper.lambda$2(Ljava/util/regex/Pattern;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
12: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
13: areturn
end local 5 14: StackMap locals: java.util.List java.util.List
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/nashorn/tools/jjs/PropertiesHelper;
0 15 1 obj Ljava/lang/Object;
0 15 2 prefix Ljava/lang/String;
3 15 3 allProps Ljava/util/List<Ljava/lang/String;>;
7 15 4 props Ljava/util/List<Ljava/lang/String;>;
9 14 5 pat Ljava/util/regex/Pattern;
Signature: (Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
obj final
prefix final
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isJavaIdentifierStart:(C)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
private static boolean lambda$1(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
private static boolean lambda$2(java.util.regex.Pattern, java.lang.String);
descriptor: (Ljava/util/regex/Pattern;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
}
SourceFile: "PropertiesHelper.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles