public class org.apache.xml.res.XMLMessages
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.xml.res.XMLMessages
super_class: java.lang.Object
{
protected java.util.Locale fLocale;
descriptor: Ljava/util/Locale;
flags: (0x0004) ACC_PROTECTED
private static java.util.ListResourceBundle XMLBundle;
descriptor: Ljava/util/ListResourceBundle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String XML_ERROR_RESOURCES;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.apache.xml.res.XMLErrorResources"
protected static final java.lang.String BAD_CODE;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "BAD_CODE"
protected static final java.lang.String FORMAT_FAILED;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "FORMAT_FAILED"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic org.apache.xml.res.XMLMessages.XMLBundle:Ljava/util/ListResourceBundle;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
putfield org.apache.xml.res.XMLMessages.fLocale:Ljava/util/Locale;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/xml/res/XMLMessages;
public void setLocale(java.util.Locale);
descriptor: (Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.xml.res.XMLMessages.fLocale:Ljava/util/Locale;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/xml/res/XMLMessages;
0 2 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
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.xml.res.XMLMessages.fLocale:Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/xml/res/XMLMessages;
public static final java.lang.String createXMLMessage(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.xml.res.XMLMessages.XMLBundle:Ljava/util/ListResourceBundle;
ifnonnull 2
1: ldc "org.apache.xml.res.XMLErrorResources"
invokestatic org.apache.xml.res.XMLMessages.loadResourceBundle:(Ljava/lang/String;)Ljava/util/ListResourceBundle;
putstatic org.apache.xml.res.XMLMessages.XMLBundle:Ljava/util/ListResourceBundle;
2: StackMap locals:
StackMap stack:
getstatic org.apache.xml.res.XMLMessages.XMLBundle:Ljava/util/ListResourceBundle;
ifnull 4
3: getstatic org.apache.xml.res.XMLMessages.XMLBundle:Ljava/util/ListResourceBundle;
aload 0
aload 1
invokestatic org.apache.xml.res.XMLMessages.createMsg:(Ljava/util/ListResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc "Could not load any resource bundles."
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 msgKey Ljava/lang/String;
0 5 1 args [Ljava/lang/Object;
MethodParameters:
Name Flags
msgKey
args
public static final java.lang.String createMsg(java.util.ListResourceBundle, java.lang.String, java.lang.Object[]);
descriptor: (Ljava/util/ListResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 1
ifnull 5
4: aload 0
aload 1
invokevirtual java.util.ListResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
5: StackMap locals: java.lang.String int java.lang.String
StackMap stack:
aload 5
ifnonnull 8
6: aload 0
ldc "BAD_CODE"
invokevirtual java.util.ListResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
7: iconst_1
istore 4
8: StackMap locals:
StackMap stack:
aload 2
ifnull 22
9: aload 2
arraylength
istore 6
start local 6 10: iconst_0
istore 7
start local 7 11: goto 15
12: StackMap locals: int int
StackMap stack:
aload 2
iload 7
aaload
ifnonnull 14
13: aload 2
iload 7
ldc ""
aastore
14: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
iload 6
if_icmplt 12
end local 7 16: aload 5
aload 2
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
end local 6 17: goto 23
18: StackMap locals: java.util.ListResourceBundle java.lang.String java.lang.Object[] java.lang.String int java.lang.String
StackMap stack: java.lang.Exception
pop
19: aload 0
ldc "FORMAT_FAILED"
invokevirtual java.util.ListResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
20: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
21: goto 23
22: StackMap locals:
StackMap stack:
aload 5
astore 3
23: StackMap locals:
StackMap stack:
iload 4
ifeq 25
24: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 3
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 fResourceBundle Ljava/util/ListResourceBundle;
0 26 1 msgKey Ljava/lang/String;
0 26 2 args [Ljava/lang/Object;
1 26 3 fmsg Ljava/lang/String;
2 26 4 throwex Z
3 26 5 msg Ljava/lang/String;
10 17 6 n I
11 16 7 i I
Exception table:
from to target type
9 17 18 Class java.lang.Exception
MethodParameters:
Name Flags
fResourceBundle
msgKey
args
public static java.util.ListResourceBundle loadResourceBundle(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/ListResourceBundle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
astore 1
start local 1 1: aload 0
aload 1
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
checkcast java.util.ListResourceBundle
2: areturn
3: StackMap locals: java.lang.String java.util.Locale
StackMap stack: java.util.MissingResourceException
pop
4: aload 0
new java.util.Locale
dup
ldc "en"
ldc "US"
invokespecial java.util.Locale.<init>:(Ljava/lang/String;Ljava/lang/String;)V
5: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
checkcast java.util.ListResourceBundle
6: areturn
7: StackMap locals:
StackMap stack: java.util.MissingResourceException
pop
8: new java.util.MissingResourceException
dup
9: new java.lang.StringBuilder
dup
ldc "Could not load any resource bundles."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
ldc ""
10: invokespecial java.util.MissingResourceException.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 className Ljava/lang/String;
1 11 1 locale Ljava/util/Locale;
Exception table:
from to target type
1 2 3 Class java.util.MissingResourceException
4 6 7 Class java.util.MissingResourceException
Exceptions:
throws java.util.MissingResourceException
MethodParameters:
Name Flags
className
protected static java.lang.String getResourceSuffix(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
ldc "TW"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: 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 "_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 locale Ljava/util/Locale;
1 5 1 suffix Ljava/lang/String;
2 5 2 country Ljava/lang/String;
MethodParameters:
Name Flags
locale
}
SourceFile: "XMLMessages.java"