public class org.glassfish.jersey.internal.l10n.Localizer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.jersey.internal.l10n.Localizer
super_class: java.lang.Object
{
private final java.util.Locale _locale;
descriptor: Ljava/util/Locale;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.HashMap<java.lang.String, java.util.ResourceBundle> _resourceBundles;
descriptor: Ljava/util/HashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/util/ResourceBundle;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokespecial org.glassfish.jersey.internal.l10n.Localizer.<init>:(Ljava/util/Locale;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/jersey/internal/l10n/Localizer;
public void <init>(java.util.Locale);
descriptor: (Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 org.glassfish.jersey.internal.l10n.Localizer._locale:Ljava/util/Locale;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.glassfish.jersey.internal.l10n.Localizer._resourceBundles:Ljava/util/HashMap;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/jersey/internal/l10n/Localizer;
0 4 1 l Ljava/util/Locale;
MethodParameters:
Name Flags
l
public java.util.Locale getLocale();
descriptor: ()Ljava/util/Locale;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._locale:Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/jersey/internal/l10n/Localizer;
public java.lang.String localize(org.glassfish.jersey.internal.l10n.Localizable);
descriptor: (Lorg/glassfish/jersey/internal/l10n/Localizable;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getKey:()Ljava/lang/String;
astore 2
start local 2 1: ldc "\u0000"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getArguments:()[Ljava/lang/Object;
iconst_0
aaload
checkcast java.lang.String
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getResourceBundleName:()Ljava/lang/String;
astore 3
start local 3 4: aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._resourceBundles:Ljava/util/HashMap;
aload 3
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ResourceBundle
astore 4
start local 4 5: aload 4
ifnonnull 38
6: aload 3
aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._locale:Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
astore 4
7: goto 34
StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.String java.util.ResourceBundle
StackMap stack: java.util.MissingResourceException
8: pop
9: aload 3
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 5
start local 5 10: iload 5
iconst_m1
if_icmpeq 34
11: aload 3
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
12: astore 6
start local 6 13: aload 6
14: aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._locale:Ljava/util/Locale;
15: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
16: astore 4
17: goto 34
StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.String java.util.ResourceBundle int java.lang.String
StackMap stack: java.util.MissingResourceException
18: pop
19: aload 3
aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._locale:Ljava/util/Locale;
20: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
21: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;
astore 4
22: goto 34
StackMap locals:
StackMap stack: java.util.MissingResourceException
23: pop
24: invokestatic org.glassfish.jersey.internal.util.ReflectionHelper.getOsgiRegistryInstance:()Lorg/glassfish/jersey/internal/OsgiRegistry;
astore 7
start local 7 25: aload 7
ifnull 28
26: aload 7
aload 3
invokevirtual org.glassfish.jersey.internal.OsgiRegistry.getResourceBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
astore 4
27: goto 34
28: StackMap locals: org.glassfish.jersey.internal.OsgiRegistry
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 29: aload 8
invokestatic org.glassfish.hk2.osgiresourcelocator.ResourceFinder.findEntry:(Ljava/lang/String;)Ljava/net/URL;
astore 9
start local 9 30: aload 9
ifnull 34
31: new java.util.PropertyResourceBundle
dup
aload 9
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokespecial java.util.PropertyResourceBundle.<init>:(Ljava/io/InputStream;)V
astore 4
32: goto 34
StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.String java.util.ResourceBundle int java.lang.String org.glassfish.jersey.internal.OsgiRegistry java.lang.String java.net.URL
StackMap stack: java.io.IOException
33: pop
end local 9 end local 8 end local 7 end local 6 end local 5 34: StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.String java.util.ResourceBundle
StackMap stack:
aload 4
ifnonnull 37
35: aload 0
aload 1
invokevirtual org.glassfish.jersey.internal.l10n.Localizer.getDefaultMessage:(Lorg/glassfish/jersey/internal/l10n/Localizable;)Ljava/lang/String;
36: areturn
37: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.jersey.internal.l10n.Localizer._resourceBundles:Ljava/util/HashMap;
aload 3
aload 4
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
38: StackMap locals:
StackMap stack:
aload 2
ifnonnull 40
39: ldc "undefined"
astore 2
40: StackMap locals:
StackMap stack:
aload 4
aload 2
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 41: goto 44
end local 5 StackMap locals:
StackMap stack: java.util.MissingResourceException
42: pop
43: aload 4
ldc "undefined"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 44: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getArguments:()[Ljava/lang/Object;
astore 6
start local 6 45: iconst_0
istore 7
start local 7 46: goto 50
47: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 6
iload 7
aaload
instanceof org.glassfish.jersey.internal.l10n.Localizable
ifeq 49
48: aload 6
iload 7
aload 0
aload 6
iload 7
aaload
checkcast org.glassfish.jersey.internal.l10n.Localizable
invokevirtual org.glassfish.jersey.internal.l10n.Localizer.localize:(Lorg/glassfish/jersey/internal/l10n/Localizable;)Ljava/lang/String;
aastore
49: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
50: iload 7
aload 6
arraylength
if_icmplt 47
end local 7 51: aload 5
aload 6
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 7
start local 7 52: aload 7
53: areturn
end local 7 end local 6 end local 5 end local 4 54: StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.String
StackMap stack: java.util.MissingResourceException
pop
55: aload 0
aload 1
invokevirtual org.glassfish.jersey.internal.l10n.Localizer.getDefaultMessage:(Lorg/glassfish/jersey/internal/l10n/Localizable;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lorg/glassfish/jersey/internal/l10n/Localizer;
0 56 1 l Lorg/glassfish/jersey/internal/l10n/Localizable;
1 56 2 key Ljava/lang/String;
4 56 3 bundlename Ljava/lang/String;
5 54 4 bundle Ljava/util/ResourceBundle;
10 34 5 i I
13 34 6 alternateBundleName Ljava/lang/String;
25 34 7 osgiRegistry Lorg/glassfish/jersey/internal/OsgiRegistry;
29 34 8 path Ljava/lang/String;
30 34 9 bundleUrl Ljava/net/URL;
41 42 5 msg Ljava/lang/String;
44 54 5 msg Ljava/lang/String;
45 54 6 args [Ljava/lang/Object;
46 51 7 i I
52 54 7 message Ljava/lang/String;
Exception table:
from to target type
6 7 8 Class java.util.MissingResourceException
13 17 18 Class java.util.MissingResourceException
19 22 23 Class java.util.MissingResourceException
31 32 33 Class java.io.IOException
40 41 42 Class java.util.MissingResourceException
4 36 54 Class java.util.MissingResourceException
37 53 54 Class java.util.MissingResourceException
MethodParameters:
Name Flags
l
private java.lang.String getDefaultMessage(org.glassfish.jersey.internal.l10n.Localizable);
descriptor: (Lorg/glassfish/jersey/internal/l10n/Localizable;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getKey:()Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokeinterface org.glassfish.jersey.internal.l10n.Localizable.getArguments:()[Ljava/lang/Object;
astore 3
start local 3 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 3: aload 4
ldc "[failed to localize] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 4
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 3
ifnull 15
6: aload 4
bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: iconst_0
istore 5
start local 5 8: goto 13
9: StackMap locals: org.glassfish.jersey.internal.l10n.Localizer org.glassfish.jersey.internal.l10n.Localizable java.lang.String java.lang.Object[] java.lang.StringBuilder int
StackMap stack:
iload 5
ifeq 11
10: aload 4
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: StackMap locals:
StackMap stack:
aload 4
aload 3
iload 5
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
aload 3
arraylength
if_icmplt 9
end local 5 14: aload 4
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
15: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/jersey/internal/l10n/Localizer;
0 16 1 l Lorg/glassfish/jersey/internal/l10n/Localizable;
1 16 2 key Ljava/lang/String;
2 16 3 args [Ljava/lang/Object;
3 16 4 sb Ljava/lang/StringBuilder;
8 14 5 i I
MethodParameters:
Name Flags
l
}
SourceFile: "Localizer.java"