public class sun.util.locale.provider.NumberFormatProviderImpl extends java.text.spi.NumberFormatProvider implements sun.util.locale.provider.AvailableLanguageTags
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.util.locale.provider.NumberFormatProviderImpl
super_class: java.text.spi.NumberFormatProvider
{
private static final int NUMBERSTYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int CURRENCYSTYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int PERCENTSTYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ACCOUNTINGSTYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int INTEGERSTYLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private final sun.util.locale.provider.LocaleProviderAdapter$Type type;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter$Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.String> langtags;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Map<java.lang.String, java.lang.String> rulesMap;
descriptor: Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic sun.text.resources.PluralRules.rulesArray:[[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
sun/util/locale/provider/NumberFormatProviderImpl.lambda$0([Ljava/lang/String;)Ljava/lang/String; (6)
([Ljava/lang/String;)Ljava/lang/String;
2: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
sun/util/locale/provider/NumberFormatProviderImpl.lambda$1([Ljava/lang/String;)Ljava/lang/String; (6)
([Ljava/lang/String;)Ljava/lang/String;
3: invokestatic java.util.stream.Collectors.toMap:(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Map
4: putstatic sun.util.locale.provider.NumberFormatProviderImpl.rulesMap:Ljava/util/Map;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(sun.util.locale.provider.LocaleProviderAdapter$Type, java.util.Set<java.lang.String>);
descriptor: (Lsun/util/locale/provider/LocaleProviderAdapter$Type;Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.text.spi.NumberFormatProvider.<init>:()V
1: aload 0
aload 1
putfield sun.util.locale.provider.NumberFormatProviderImpl.type:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
2: aload 0
aload 2
putfield sun.util.locale.provider.NumberFormatProviderImpl.langtags:Ljava/util/Set;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 4 1 type Lsun/util/locale/provider/LocaleProviderAdapter$Type;
0 4 2 langtags Ljava/util/Set<Ljava/lang/String;>;
Signature: (Lsun/util/locale/provider/LocaleProviderAdapter$Type;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
type
langtags
public java.util.Locale[] getAvailableLocales();
descriptor: ()[Ljava/util/Locale;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.type:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter.getAvailableLocales:()[Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
public boolean isSupportedLocale(java.util.Locale);
descriptor: (Ljava/util/Locale;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.type:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
aload 1
aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.langtags:Ljava/util/Set;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter.isSupportedProviderLocale:(Ljava/util/Locale;Ljava/util/Set;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public java.text.NumberFormat getCurrencyInstance(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual sun.util.locale.provider.NumberFormatProviderImpl.getInstance:(Ljava/util/Locale;I)Ljava/text/NumberFormat;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public java.text.NumberFormat getIntegerInstance(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_4
invokevirtual sun.util.locale.provider.NumberFormatProviderImpl.getInstance:(Ljava/util/Locale;I)Ljava/text/NumberFormat;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public java.text.NumberFormat getNumberInstance(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual sun.util.locale.provider.NumberFormatProviderImpl.getInstance:(Ljava/util/Locale;I)Ljava/text/NumberFormat;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public java.text.NumberFormat getPercentInstance(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_2
invokevirtual sun.util.locale.provider.NumberFormatProviderImpl.getInstance:(Ljava/util/Locale;I)Ljava/text/NumberFormat;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
private java.text.NumberFormat getInstance(java.util.Locale, int);
descriptor: (Ljava/util/Locale;I)Ljava/text/NumberFormat;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "nu"
invokevirtual java.util.Locale.getUnicodeLocaleType:(Ljava/lang/String;)Ljava/lang/String;
ifnonnull 4
3: aload 1
invokestatic sun.util.locale.provider.CalendarDataUtility.findRegionOverride:(Ljava/util/Locale;)Ljava/util/Locale;
goto 5
4: StackMap locals:
StackMap stack:
aload 1
5: StackMap locals:
StackMap stack: java.util.Locale
astore 3
start local 3 6: aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.type:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
astore 4
start local 4 7: aload 4
aload 3
invokevirtual sun.util.locale.provider.LocaleProviderAdapter.getLocaleResources:(Ljava/util/Locale;)Lsun/util/locale/provider/LocaleResources;
invokevirtual sun.util.locale.provider.LocaleResources.getNumberPatterns:()[Ljava/lang/String;
astore 5
start local 5 8: aload 3
invokestatic java.text.DecimalFormatSymbols.getInstance:(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;
astore 6
start local 6 9: iload 2
iconst_4
if_icmpne 10
iconst_0
goto 11
StackMap locals: sun.util.locale.provider.NumberFormatProviderImpl java.util.Locale int java.util.Locale sun.util.locale.provider.LocaleProviderAdapter java.lang.String[] java.text.DecimalFormatSymbols
StackMap stack:
10: iload 2
StackMap locals:
StackMap stack: int
11: istore 7
start local 7 12: iload 2
iconst_1
if_icmpne 17
13: aload 5
arraylength
iconst_3
if_icmple 17
14: aload 5
iconst_3
aaload
invokevirtual java.lang.String.isEmpty:()Z
ifne 17
15: ldc "account"
aload 3
ldc "cf"
invokevirtual java.util.Locale.getUnicodeLocaleType:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 17
16: iconst_3
istore 7
17: StackMap locals: int
StackMap stack:
new java.text.DecimalFormat
dup
aload 5
iload 7
aaload
aload 6
invokespecial java.text.DecimalFormat.<init>:(Ljava/lang/String;Ljava/text/DecimalFormatSymbols;)V
astore 8
start local 8 18: iload 2
iconst_4
if_icmpne 23
19: aload 8
iconst_0
invokevirtual java.text.DecimalFormat.setMaximumFractionDigits:(I)V
20: aload 8
iconst_0
invokevirtual java.text.DecimalFormat.setDecimalSeparatorAlwaysShown:(Z)V
21: aload 8
iconst_1
invokevirtual java.text.DecimalFormat.setParseIntegerOnly:(Z)V
22: goto 25
StackMap locals: java.text.DecimalFormat
StackMap stack:
23: iload 2
iconst_1
if_icmpne 25
24: aload 8
aload 6
invokestatic sun.util.locale.provider.NumberFormatProviderImpl.adjustForCurrencyDefaultFractionDigits:(Ljava/text/DecimalFormat;Ljava/text/DecimalFormatSymbols;)V
25: StackMap locals:
StackMap stack:
aload 8
areturn
end local 8 end local 7 end local 6 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 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 26 1 locale Ljava/util/Locale;
0 26 2 choice I
6 26 3 override Ljava/util/Locale;
7 26 4 adapter Lsun/util/locale/provider/LocaleProviderAdapter;
8 26 5 numberPatterns [Ljava/lang/String;
9 26 6 symbols Ljava/text/DecimalFormatSymbols;
12 26 7 entry I
18 26 8 format Ljava/text/DecimalFormat;
MethodParameters:
Name Flags
locale
choice
private static void adjustForCurrencyDefaultFractionDigits(java.text.DecimalFormat, java.text.DecimalFormatSymbols);
descriptor: (Ljava/text/DecimalFormat;Ljava/text/DecimalFormatSymbols;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.text.DecimalFormatSymbols.getCurrency:()Ljava/util/Currency;
astore 2
start local 2 1: aload 2
ifnonnull 5
2: aload 1
invokevirtual java.text.DecimalFormatSymbols.getInternationalCurrencySymbol:()Ljava/lang/String;
invokestatic java.util.Currency.getInstance:(Ljava/lang/String;)Ljava/util/Currency;
astore 2
3: goto 5
StackMap locals: java.text.DecimalFormat java.text.DecimalFormatSymbols java.util.Currency
StackMap stack: java.lang.IllegalArgumentException
4: pop
5: StackMap locals:
StackMap stack:
aload 2
ifnull 15
6: aload 2
invokevirtual java.util.Currency.getDefaultFractionDigits:()I
istore 3
start local 3 7: iload 3
iconst_m1
if_icmpeq 15
8: aload 0
invokevirtual java.text.DecimalFormat.getMinimumFractionDigits:()I
istore 4
start local 4 9: iload 4
aload 0
invokevirtual java.text.DecimalFormat.getMaximumFractionDigits:()I
if_icmpne 13
10: aload 0
iload 3
invokevirtual java.text.DecimalFormat.setMinimumFractionDigits:(I)V
11: aload 0
iload 3
invokevirtual java.text.DecimalFormat.setMaximumFractionDigits:(I)V
12: goto 15
13: StackMap locals: int int
StackMap stack:
aload 0
iload 3
iload 4
invokestatic java.lang.Math.min:(II)I
invokevirtual java.text.DecimalFormat.setMinimumFractionDigits:(I)V
14: aload 0
iload 3
invokevirtual java.text.DecimalFormat.setMaximumFractionDigits:(I)V
end local 4 end local 3 15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 format Ljava/text/DecimalFormat;
0 16 1 symbols Ljava/text/DecimalFormatSymbols;
1 16 2 currency Ljava/util/Currency;
7 15 3 digits I
9 15 4 oldMinDigits I
Exception table:
from to target type
2 3 4 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
format
symbols
public java.text.NumberFormat getCompactNumberInstance(java.util.Locale, java.text.NumberFormat$Style);
descriptor: (Ljava/util/Locale;Ljava/text/NumberFormat$Style;)Ljava/text/NumberFormat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 1
ldc "nu"
invokevirtual java.util.Locale.getUnicodeLocaleType:(Ljava/lang/String;)Ljava/lang/String;
ifnonnull 4
3: aload 1
invokestatic sun.util.locale.provider.CalendarDataUtility.findRegionOverride:(Ljava/util/Locale;)Ljava/util/Locale;
goto 5
4: StackMap locals:
StackMap stack:
aload 1
5: StackMap locals:
StackMap stack: java.util.Locale
astore 3
start local 3 6: aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.type:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
astore 4
start local 4 7: aload 4
aload 3
invokevirtual sun.util.locale.provider.LocaleProviderAdapter.getLocaleResources:(Ljava/util/Locale;)Lsun/util/locale/provider/LocaleResources;
astore 5
start local 5 8: aload 5
invokevirtual sun.util.locale.provider.LocaleResources.getNumberPatterns:()[Ljava/lang/String;
astore 6
start local 6 9: aload 3
invokestatic java.text.DecimalFormatSymbols.getInstance:(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;
astore 7
start local 7 10: aload 5
aload 2
invokevirtual sun.util.locale.provider.LocaleResources.getCNPatterns:(Ljava/text/NumberFormat$Style;)[Ljava/lang/String;
astore 8
start local 8 11: getstatic sun.util.locale.provider.NumberFormatProviderImpl.rulesMap:Ljava/util/Map;
aload 3
invokevirtual java.util.Locale.toString:()Ljava/lang/String;
12: getstatic sun.util.locale.provider.NumberFormatProviderImpl.rulesMap:Ljava/util/Map;
aload 3
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
ldc ""
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
13: invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 14: new java.text.CompactNumberFormat
dup
aload 6
iconst_0
aaload
15: aload 7
aload 8
aload 9
16: invokespecial java.text.CompactNumberFormat.<init>:(Ljava/lang/String;Ljava/text/DecimalFormatSymbols;[Ljava/lang/String;Ljava/lang/String;)V
astore 10
start local 10 17: aload 10
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 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 18 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
0 18 1 locale Ljava/util/Locale;
0 18 2 formatStyle Ljava/text/NumberFormat$Style;
6 18 3 override Ljava/util/Locale;
7 18 4 adapter Lsun/util/locale/provider/LocaleProviderAdapter;
8 18 5 resource Lsun/util/locale/provider/LocaleResources;
9 18 6 numberPatterns [Ljava/lang/String;
10 18 7 symbols Ljava/text/DecimalFormatSymbols;
11 18 8 cnPatterns [Ljava/lang/String;
14 18 9 pluralRules Ljava/lang/String;
17 18 10 format Ljava/text/CompactNumberFormat;
MethodParameters:
Name Flags
locale
formatStyle
public java.util.Set<java.lang.String> getAvailableLanguageTags();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.util.locale.provider.NumberFormatProviderImpl.langtags:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/NumberFormatProviderImpl;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.lang.String lambda$0(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sa [Ljava/lang/String;
private static java.lang.String lambda$1(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sa [Ljava/lang/String;
}
SourceFile: "NumberFormatProviderImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Style = java.text.NumberFormat$Style of java.text.NumberFormat
public final Type = sun.util.locale.provider.LocaleProviderAdapter$Type of sun.util.locale.provider.LocaleProviderAdapter