public class org.apache.tomcat.util.res.StringManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.res.StringManager
super_class: java.lang.Object
{
private static int LOCALE_CACHE_SIZE;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.util.ResourceBundle bundle;
descriptor: Ljava/util/ResourceBundle;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Locale locale;
descriptor: Ljava/util/Locale;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.Map<java.lang.String, java.util.Map<java.util.Locale, org.apache.tomcat.util.res.StringManager>> managers;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/util/Locale;Lorg/apache/tomcat/util/res/StringManager;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: bipush 10
putstatic org.apache.tomcat.util.res.StringManager.LOCALE_CACHE_SIZE:I
1: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
2: putstatic org.apache.tomcat.util.res.StringManager.managers:Ljava/util/Map;
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/util/Locale;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".LocalStrings"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 2
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: getstatic java.util.Locale.ROOT:Ljava/util/Locale;
astore 2
5: StackMap locals: org.apache.tomcat.util.res.StringManager java.lang.String java.util.Locale java.lang.String java.util.ResourceBundle
StackMap stack:
aload 3
aload 2
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
astore 4
6: goto 13
StackMap locals:
StackMap stack: java.util.MissingResourceException
7: pop
8: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 5
start local 5 9: aload 5
ifnull 13
10: aload 3
aload 2
aload 5
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;
astore 4
11: goto 13
StackMap locals: org.apache.tomcat.util.res.StringManager java.lang.String java.util.Locale java.lang.String java.util.ResourceBundle java.lang.ClassLoader
StackMap stack: java.util.MissingResourceException
12: pop
end local 5 13: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield org.apache.tomcat.util.res.StringManager.bundle:Ljava/util/ResourceBundle;
14: aload 0
getfield org.apache.tomcat.util.res.StringManager.bundle:Ljava/util/ResourceBundle;
ifnull 21
15: aload 0
getfield org.apache.tomcat.util.res.StringManager.bundle:Ljava/util/ResourceBundle;
invokevirtual java.util.ResourceBundle.getLocale:()Ljava/util/Locale;
astore 5
start local 5 16: aload 5
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifeq 19
17: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
putfield org.apache.tomcat.util.res.StringManager.locale:Ljava/util/Locale;
18: goto 22
19: StackMap locals: java.util.Locale
StackMap stack:
aload 0
aload 5
putfield org.apache.tomcat.util.res.StringManager.locale:Ljava/util/Locale;
end local 5 20: goto 22
21: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.tomcat.util.res.StringManager.locale:Ljava/util/Locale;
22: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/tomcat/util/res/StringManager;
0 23 1 packageName Ljava/lang/String;
0 23 2 locale Ljava/util/Locale;
2 23 3 bundleName Ljava/lang/String;
3 23 4 bnd Ljava/util/ResourceBundle;
9 13 5 cl Ljava/lang/ClassLoader;
16 20 5 bundleLocale Ljava/util/Locale;
Exception table:
from to target type
3 6 7 Class java.util.MissingResourceException
10 11 12 Class java.util.MissingResourceException
MethodParameters:
Name Flags
packageName
locale
public java.lang.String getString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: ldc "key may not have a null value"
astore 2
start local 2 2: new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 0
getfield org.apache.tomcat.util.res.StringManager.bundle:Ljava/util/ResourceBundle;
ifnull 9
5: aload 0
getfield org.apache.tomcat.util.res.StringManager.bundle:Ljava/util/ResourceBundle;
aload 1
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
6: goto 9
StackMap locals: org.apache.tomcat.util.res.StringManager java.lang.String java.lang.String
StackMap stack: java.util.MissingResourceException
7: pop
8: aconst_null
astore 2
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/tomcat/util/res/StringManager;
0 10 1 key Ljava/lang/String;
2 3 2 msg Ljava/lang/String;
4 10 2 str Ljava/lang/String;
Exception table:
from to target type
4 6 7 Class java.util.MissingResourceException
MethodParameters:
Name Flags
key
public java.lang.String getString(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aload 1
astore 3
3: StackMap locals: java.lang.String
StackMap stack:
new java.text.MessageFormat
dup
aload 3
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 4
start local 4 4: aload 4
aload 0
getfield org.apache.tomcat.util.res.StringManager.locale:Ljava/util/Locale;
invokevirtual java.text.MessageFormat.setLocale:(Ljava/util/Locale;)V
5: aload 4
aload 2
new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
aconst_null
invokevirtual java.text.MessageFormat.format:([Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;
invokevirtual java.lang.StringBuffer.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 6 0 this Lorg/apache/tomcat/util/res/StringManager;
0 6 1 key Ljava/lang/String;
0 6 2 args [Ljava/lang/Object;
1 6 3 value Ljava/lang/String;
4 6 4 mf Ljava/text/MessageFormat;
MethodParameters:
Name Flags
key final
args final
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.apache.tomcat.util.res.StringManager.locale:Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/res/StringManager;
public static final org.apache.tomcat.util.res.StringManager getManager(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getPackage:()Ljava/lang/Package;
invokevirtual java.lang.Package.getName:()Ljava/lang/String;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Lorg/apache/tomcat/util/res/StringManager;
MethodParameters:
Name Flags
clazz
public static final org.apache.tomcat.util.res.StringManager getManager(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;Ljava/util/Locale;)Lorg/apache/tomcat/util/res/StringManager;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 packageName Ljava/lang/String;
MethodParameters:
Name Flags
packageName
public static final synchronized org.apache.tomcat.util.res.StringManager getManager(java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/util/Locale;)Lorg/apache/tomcat/util/res/StringManager;
flags: (0x0039) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.tomcat.util.res.StringManager.managers:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new org.apache.tomcat.util.res.StringManager$1
dup
getstatic org.apache.tomcat.util.res.StringManager.LOCALE_CACHE_SIZE:I
fconst_1
iconst_1
invokespecial org.apache.tomcat.util.res.StringManager$1.<init>:(IFZ)V
astore 2
3: getstatic org.apache.tomcat.util.res.StringManager.managers:Ljava/util/Map;
aload 0
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.util.Map
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.tomcat.util.res.StringManager
astore 3
start local 3 5: aload 3
ifnonnull 8
6: new org.apache.tomcat.util.res.StringManager
dup
aload 0
aload 1
invokespecial org.apache.tomcat.util.res.StringManager.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 3
7: aload 2
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals: org.apache.tomcat.util.res.StringManager
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 packageName Ljava/lang/String;
0 9 1 locale Ljava/util/Locale;
1 9 2 map Ljava/util/Map<Ljava/util/Locale;Lorg/apache/tomcat/util/res/StringManager;>;
5 9 3 mgr Lorg/apache/tomcat/util/res/StringManager;
MethodParameters:
Name Flags
packageName
locale
public static org.apache.tomcat.util.res.StringManager getManager(java.lang.String, java.util.Enumeration<java.util.Locale>);
descriptor: (Ljava/lang/String;Ljava/util/Enumeration;)Lorg/apache/tomcat/util/res/StringManager;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: goto 5
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.util.Locale
astore 2
start local 2 2: aload 0
aload 2
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;Ljava/util/Locale;)Lorg/apache/tomcat/util/res/StringManager;
astore 3
start local 3 3: aload 3
invokevirtual org.apache.tomcat.util.res.StringManager.getLocale:()Ljava/util/Locale;
aload 2
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 3
areturn
end local 3 end local 2 5: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 1
6: aload 0
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 packageName Ljava/lang/String;
0 7 1 requestedLocales Ljava/util/Enumeration<Ljava/util/Locale;>;
2 5 2 locale Ljava/util/Locale;
3 5 3 result Lorg/apache/tomcat/util/res/StringManager;
Signature: (Ljava/lang/String;Ljava/util/Enumeration<Ljava/util/Locale;>;)Lorg/apache/tomcat/util/res/StringManager;
MethodParameters:
Name Flags
packageName
requestedLocales
}
SourceFile: "StringManager.java"
NestMembers:
org.apache.tomcat.util.res.StringManager$1
InnerClasses:
org.apache.tomcat.util.res.StringManager$1