public class org.apache.naming.StringManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.naming.StringManager
super_class: java.lang.Object
{
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.Hashtable<java.lang.String, org.apache.naming.StringManager> managers;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/String;Lorg/apache/naming/StringManager;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
1: putstatic org.apache.naming.StringManager.managers:Ljava/util/Hashtable;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 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 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 2
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
astore 3
4: goto 12
StackMap locals: org.apache.naming.StringManager java.lang.String java.lang.String java.util.ResourceBundle
StackMap stack: java.util.MissingResourceException
5: pop
6: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 4
start local 4 7: aload 4
ifnull 12
8: aload 2
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
aload 4
9: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;
astore 3
10: goto 12
StackMap locals: org.apache.naming.StringManager java.lang.String java.lang.String java.util.ResourceBundle java.lang.ClassLoader
StackMap stack: java.util.MissingResourceException
11: pop
end local 4 12: StackMap locals:
StackMap stack:
aload 3
ifnull 15
13: aload 0
aload 3
invokevirtual java.util.ResourceBundle.getLocale:()Ljava/util/Locale;
putfield org.apache.naming.StringManager.locale:Ljava/util/Locale;
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.naming.StringManager.locale:Ljava/util/Locale;
16: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.apache.naming.StringManager.bundle:Ljava/util/ResourceBundle;
17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/naming/StringManager;
0 18 1 packageName Ljava/lang/String;
2 18 2 bundleName Ljava/lang/String;
3 18 3 tempBundle Ljava/util/ResourceBundle;
7 12 4 cl Ljava/lang/ClassLoader;
Exception table:
from to target type
3 4 5 Class java.util.MissingResourceException
8 10 11 Class java.util.MissingResourceException
MethodParameters:
Name Flags
packageName
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.naming.StringManager.bundle:Ljava/util/ResourceBundle;
ifnull 9
5: aload 0
getfield org.apache.naming.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.naming.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/naming/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.naming.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.naming.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/naming/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 static final synchronized org.apache.naming.StringManager getManager(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/naming/StringManager;
flags: (0x0039) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.apache.naming.StringManager.managers:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.naming.StringManager
astore 1
start local 1 1: aload 1
ifnonnull 4
2: new org.apache.naming.StringManager
dup
aload 0
invokespecial org.apache.naming.StringManager.<init>:(Ljava/lang/String;)V
astore 1
3: getstatic org.apache.naming.StringManager.managers:Ljava/util/Hashtable;
aload 0
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: org.apache.naming.StringManager
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 packageName Ljava/lang/String;
1 5 1 mgr Lorg/apache/naming/StringManager;
MethodParameters:
Name Flags
packageName
public static final org.apache.naming.StringManager getManager(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/apache/naming/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.naming.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/naming/StringManager;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Lorg/apache/naming/StringManager;
MethodParameters:
Name Flags
clazz
}
SourceFile: "StringManager.java"