public abstract class sun.util.locale.provider.LocaleProviderAdapter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.util.locale.provider.LocaleProviderAdapter
super_class: java.lang.Object
{
private static final java.util.List<sun.util.locale.provider.LocaleProviderAdapter$Type> adapterPreference;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lsun/util/locale/provider/LocaleProviderAdapter$Type;>;
private static sun.util.locale.provider.LocaleProviderAdapter jreLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.util.locale.provider.LocaleProviderAdapter spiLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.util.locale.provider.LocaleProviderAdapter cldrLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.util.locale.provider.LocaleProviderAdapter hostLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.util.locale.provider.LocaleProviderAdapter fallbackLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static sun.util.locale.provider.LocaleProviderAdapter$Type defaultLocaleProviderAdapter;
descriptor: Lsun/util/locale/provider/LocaleProviderAdapter$Type;
flags: (0x0008) ACC_STATIC
private static java.util.concurrent.ConcurrentMap<java.lang.Class<? extends java.util.spi.LocaleServiceProvider>, java.util.concurrent.ConcurrentMap<java.util.Locale, sun.util.locale.provider.LocaleProviderAdapter>> adapterCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<+Ljava/util/spi/LocaleServiceProvider;>;Ljava/util/concurrent/ConcurrentMap<Ljava/util/Locale;Lsun/util/locale/provider/LocaleProviderAdapter;>;>;
private static volatile int[] $SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=0
0: ldc Lsun/util/locale/provider/LocaleProviderAdapter;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.util.locale.provider.LocaleProviderAdapter.$assertionsDisabled:Z
3: new sun.util.locale.provider.JRELocaleProviderAdapter
dup
invokespecial sun.util.locale.provider.JRELocaleProviderAdapter.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.jreLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
4: new sun.util.locale.provider.SPILocaleProviderAdapter
dup
invokespecial sun.util.locale.provider.SPILocaleProviderAdapter.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.spiLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
5: aconst_null
putstatic sun.util.locale.provider.LocaleProviderAdapter.cldrLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
6: aconst_null
putstatic sun.util.locale.provider.LocaleProviderAdapter.hostLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
7: aconst_null
putstatic sun.util.locale.provider.LocaleProviderAdapter.fallbackLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
8: aconst_null
putstatic sun.util.locale.provider.LocaleProviderAdapter.defaultLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
9: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.adapterCache:Ljava/util/concurrent/ConcurrentMap;
10: new sun.security.action.GetPropertyAction
dup
ldc "java.locale.providers"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
11: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 12: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 13: aload 0
ifnull 31
aload 0
invokevirtual java.lang.String.length:()I
ifeq 31
14: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 15: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 30
StackMap locals: java.lang.String java.util.List java.lang.String[] top int int java.lang.String[]
StackMap stack:
16: aload 6
iload 4
aaload
astore 3
start local 3 17: aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
invokestatic sun.util.locale.provider.LocaleProviderAdapter$Type.valueOf:(Ljava/lang/String;)Lsun/util/locale/provider/LocaleProviderAdapter$Type;
astore 7
start local 7 18: invokestatic sun.util.locale.provider.LocaleProviderAdapter.$SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type:()[I
aload 7
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iaload
tableswitch { // 2 - 4
2: 19
3: 24
4: 22
default: 24
}
19: StackMap locals: java.lang.String java.util.List java.lang.String[] java.lang.String int int java.lang.String[] sun.util.locale.provider.LocaleProviderAdapter$Type
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.cldrLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
ifnonnull 24
20: new sun.util.cldr.CLDRLocaleProviderAdapter
dup
invokespecial sun.util.cldr.CLDRLocaleProviderAdapter.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.cldrLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
21: goto 24
22: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.hostLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
ifnonnull 24
23: new sun.util.locale.provider.HostLocaleProviderAdapter
dup
invokespecial sun.util.locale.provider.HostLocaleProviderAdapter.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.hostLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
24: StackMap locals:
StackMap stack:
aload 1
aload 7
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 29
25: aload 1
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 26: goto 29
StackMap locals: java.lang.String java.util.List java.lang.String[] java.lang.String int int java.lang.String[]
StackMap stack: java.lang.RuntimeException
27: astore 7
start local 7 28: ldc Lsun/util/locale/provider/LocaleProviderAdapter;
aload 7
invokevirtual java.lang.RuntimeException.toString:()Ljava/lang/String;
invokestatic sun.util.locale.provider.LocaleServiceProviderPool.config:(Ljava/lang/Class;Ljava/lang/String;)V
end local 7 end local 3 29: StackMap locals: java.lang.String java.util.List java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
30: iload 4
iload 5
if_icmplt 16
end local 2 31: StackMap locals: java.lang.String java.util.List
StackMap stack:
aload 1
invokeinterface java.util.List.isEmpty:()Z
ifne 39
32: aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 37
33: new sun.util.locale.provider.FallbackLocaleProviderAdapter
dup
invokespecial sun.util.locale.provider.FallbackLocaleProviderAdapter.<init>:()V
putstatic sun.util.locale.provider.LocaleProviderAdapter.fallbackLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
34: aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
35: getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
putstatic sun.util.locale.provider.LocaleProviderAdapter.defaultLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
36: goto 42
37: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
putstatic sun.util.locale.provider.LocaleProviderAdapter.defaultLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
38: goto 42
39: StackMap locals:
StackMap stack:
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
40: aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.SPI:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
41: getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
putstatic sun.util.locale.provider.LocaleProviderAdapter.defaultLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
42: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic sun.util.locale.provider.LocaleProviderAdapter.adapterPreference:Ljava/util/List;
end local 1 end local 0 43: return
LocalVariableTable:
Start End Slot Name Signature
12 43 0 order Ljava/lang/String;
13 43 1 typeList Ljava/util/List<Lsun/util/locale/provider/LocaleProviderAdapter$Type;>;
15 31 2 types [Ljava/lang/String;
17 29 3 type Ljava/lang/String;
18 26 7 aType Lsun/util/locale/provider/LocaleProviderAdapter$Type;
28 29 7 e Ljava/lang/RuntimeException;
Exception table:
from to target type
17 26 27 Class java.lang.IllegalArgumentException
17 26 27 Class java.lang.UnsupportedOperationException
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/provider/LocaleProviderAdapter;
public static sun.util.locale.provider.LocaleProviderAdapter forType(sun.util.locale.provider.LocaleProviderAdapter$Type);
descriptor: (Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: invokestatic sun.util.locale.provider.LocaleProviderAdapter.$SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type:()[I
aload 0
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iaload
tableswitch { // 1 - 5
1: 1
2: 2
3: 3
4: 4
5: 5
default: 6
}
1: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.jreLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.cldrLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
3: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.spiLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
4: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.hostLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
5: StackMap locals:
StackMap stack:
getstatic sun.util.locale.provider.LocaleProviderAdapter.fallbackLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
6: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
ldc "unknown locale data adapter type"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 type Lsun/util/locale/provider/LocaleProviderAdapter$Type;
MethodParameters:
Name Flags
type
public static sun.util.locale.provider.LocaleProviderAdapter forJRE();
descriptor: ()Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.util.locale.provider.LocaleProviderAdapter.jreLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static sun.util.locale.provider.LocaleProviderAdapter getResourceBundleBased();
descriptor: ()Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: invokestatic sun.util.locale.provider.LocaleProviderAdapter.getAdapterPreference:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 1
goto 4
StackMap locals: top java.util.Iterator
StackMap stack:
1: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.util.locale.provider.LocaleProviderAdapter$Type
astore 0
start local 0 2: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpeq 3
aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.CLDR:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpeq 3
aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpne 4
3: StackMap locals: sun.util.locale.provider.LocaleProviderAdapter$Type java.util.Iterator
StackMap stack:
aload 0
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
end local 0 4: StackMap locals: top java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
LocalVariableTable:
Start End Slot Name Signature
2 4 0 type Lsun/util/locale/provider/LocaleProviderAdapter$Type;
public static java.util.List<sun.util.locale.provider.LocaleProviderAdapter$Type> getAdapterPreference();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.util.locale.provider.LocaleProviderAdapter.adapterPreference:Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Lsun/util/locale/provider/LocaleProviderAdapter$Type;>;
public static sun.util.locale.provider.LocaleProviderAdapter getAdapter(java.lang.Class<? extends java.util.spi.LocaleServiceProvider>, java.util.Locale);
descriptor: (Ljava/lang/Class;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: getstatic sun.util.locale.provider.LocaleProviderAdapter.adapterCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ConcurrentMap
astore 3
start local 3 1: aload 3
ifnull 5
2: aload 3
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.util.locale.provider.LocaleProviderAdapter
dup
astore 2
start local 2 3: ifnull 7
4: aload 2
areturn
end local 2 5: StackMap locals: java.lang.Class java.util.Locale top java.util.concurrent.ConcurrentMap
StackMap stack:
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
astore 3
6: getstatic sun.util.locale.provider.LocaleProviderAdapter.adapterCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.util.locale.provider.LocaleProviderAdapter.findAdapter:(Ljava/lang/Class;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
astore 2
start local 2 8: aload 2
ifnull 11
9: aload 3
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 2
areturn
11: StackMap locals: java.lang.Class java.util.Locale sun.util.locale.provider.LocaleProviderAdapter java.util.concurrent.ConcurrentMap
StackMap stack:
getstatic java.util.ResourceBundle$Control.FORMAT_DEFAULT:Ljava/util/List;
invokestatic java.util.ResourceBundle$Control.getControl:(Ljava/util/List;)Ljava/util/ResourceBundle$Control;
12: ldc ""
aload 1
invokevirtual java.util.ResourceBundle$Control.getCandidateLocales:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/List;
13: astore 4
start local 4 14: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 22
StackMap locals: java.lang.Class java.util.Locale sun.util.locale.provider.LocaleProviderAdapter java.util.concurrent.ConcurrentMap java.util.List top java.util.Iterator
StackMap stack:
15: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Locale
astore 5
start local 5 16: aload 5
aload 1
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifeq 18
17: goto 22
18: StackMap locals: java.lang.Class java.util.Locale sun.util.locale.provider.LocaleProviderAdapter java.util.concurrent.ConcurrentMap java.util.List java.util.Locale java.util.Iterator
StackMap stack:
aload 0
aload 5
invokestatic sun.util.locale.provider.LocaleProviderAdapter.findAdapter:(Ljava/lang/Class;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
astore 2
19: aload 2
ifnull 22
20: aload 3
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: aload 2
areturn
end local 5 22: StackMap locals: java.lang.Class java.util.Locale sun.util.locale.provider.LocaleProviderAdapter java.util.concurrent.ConcurrentMap java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
23: aload 3
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter.fallbackLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: getstatic sun.util.locale.provider.LocaleProviderAdapter.fallbackLocaleProviderAdapter:Lsun/util/locale/provider/LocaleProviderAdapter;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 providerClass Ljava/lang/Class<+Ljava/util/spi/LocaleServiceProvider;>;
0 25 1 locale Ljava/util/Locale;
3 5 2 adapter Lsun/util/locale/provider/LocaleProviderAdapter;
8 25 2 adapter Lsun/util/locale/provider/LocaleProviderAdapter;
1 25 3 adapterMap Ljava/util/concurrent/ConcurrentMap<Ljava/util/Locale;Lsun/util/locale/provider/LocaleProviderAdapter;>;
14 25 4 lookupLocales Ljava/util/List<Ljava/util/Locale;>;
16 22 5 loc Ljava/util/Locale;
Signature: (Ljava/lang/Class<+Ljava/util/spi/LocaleServiceProvider;>;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
MethodParameters:
Name Flags
providerClass
locale
private static sun.util.locale.provider.LocaleProviderAdapter findAdapter(java.lang.Class<? extends java.util.spi.LocaleServiceProvider>, java.util.Locale);
descriptor: (Ljava/lang/Class;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: invokestatic sun.util.locale.provider.LocaleProviderAdapter.getAdapterPreference:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: java.lang.Class java.util.Locale top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.util.locale.provider.LocaleProviderAdapter$Type
astore 2
start local 2 2: aload 2
invokestatic sun.util.locale.provider.LocaleProviderAdapter.forType:(Lsun/util/locale/provider/LocaleProviderAdapter$Type;)Lsun/util/locale/provider/LocaleProviderAdapter;
astore 4
start local 4 3: aload 4
aload 0
invokevirtual sun.util.locale.provider.LocaleProviderAdapter.getLocaleServiceProvider:(Ljava/lang/Class;)Ljava/util/spi/LocaleServiceProvider;
astore 5
start local 5 4: aload 5
ifnull 7
5: aload 5
aload 1
invokevirtual java.util.spi.LocaleServiceProvider.isSupportedLocale:(Ljava/util/Locale;)Z
ifeq 7
6: aload 4
areturn
end local 5 end local 4 end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 providerClass Ljava/lang/Class<+Ljava/util/spi/LocaleServiceProvider;>;
0 9 1 locale Ljava/util/Locale;
2 7 2 type Lsun/util/locale/provider/LocaleProviderAdapter$Type;
3 7 4 adapter Lsun/util/locale/provider/LocaleProviderAdapter;
4 7 5 provider Ljava/util/spi/LocaleServiceProvider;
Signature: (Ljava/lang/Class<+Ljava/util/spi/LocaleServiceProvider;>;Ljava/util/Locale;)Lsun/util/locale/provider/LocaleProviderAdapter;
MethodParameters:
Name Flags
providerClass
locale
public static boolean isSupportedLocale(java.util.Locale, sun.util.locale.provider.LocaleProviderAdapter$Type, java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Locale;Lsun/util/locale/provider/LocaleProviderAdapter$Type;Ljava/util/Set;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.util.locale.provider.LocaleProviderAdapter.$assertionsDisabled:Z
ifne 1
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpeq 1
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.CLDR:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpeq 1
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
aload 0
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.Locale.stripExtensions:()Ljava/util/Locale;
astore 0
6: aload 2
aload 0
invokevirtual java.util.Locale.toLanguageTag:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 8
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
aload 1
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
if_acmpne 16
9: aload 0
invokevirtual java.util.Locale.toString:()Ljava/lang/String;
bipush 95
bipush 45
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
start local 3 10: aload 2
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 15
11: ldc "ja-JP-JP"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
12: ldc "th-TH-TH"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
13: ldc "no-NO-NY"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
14: iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
15: iconst_1
ireturn
end local 3 16: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 locale Ljava/util/Locale;
0 17 1 type Lsun/util/locale/provider/LocaleProviderAdapter$Type;
0 17 2 langtags Ljava/util/Set<Ljava/lang/String;>;
10 16 3 oldname Ljava/lang/String;
Signature: (Ljava/util/Locale;Lsun/util/locale/provider/LocaleProviderAdapter$Type;Ljava/util/Set<Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
locale
type
langtags
public static java.util.Locale[] toLocaleArray(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)[Ljava/util/Locale;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Set.size:()I
iconst_1
iadd
anewarray java.util.Locale
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 1
iload 2
iinc 2 1
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
aastore
3: aload 0
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: java.util.Set java.util.Locale[] int top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 5: aload 3
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
-518283308: 6
1601894167: 7
default: 12
}
StackMap locals: java.util.Set java.util.Locale[] int java.lang.String java.util.Iterator java.lang.String
StackMap stack:
6: aload 5
ldc "th-TH-TH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 12
StackMap locals:
StackMap stack:
7: aload 5
ldc "ja-JP-JP"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 12
8: StackMap locals:
StackMap stack:
aload 1
iload 2
iinc 2 1
getstatic sun.util.locale.provider.JRELocaleConstants.JA_JP_JP:Ljava/util/Locale;
aastore
9: goto 13
10: StackMap locals:
StackMap stack:
aload 1
iload 2
iinc 2 1
getstatic sun.util.locale.provider.JRELocaleConstants.TH_TH_TH:Ljava/util/Locale;
aastore
11: goto 13
12: StackMap locals:
StackMap stack:
aload 1
iload 2
iinc 2 1
aload 3
invokestatic java.util.Locale.forLanguageTag:(Ljava/lang/String;)Ljava/util/Locale;
aastore
end local 3 13: StackMap locals: java.util.Set java.util.Locale[] int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
14: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 tags Ljava/util/Set<Ljava/lang/String;>;
1 15 1 locs [Ljava/util/Locale;
2 15 2 index I
5 13 3 tag Ljava/lang/String;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)[Ljava/util/Locale;
MethodParameters:
Name Flags
tags
public abstract sun.util.locale.provider.LocaleProviderAdapter$Type getAdapterType();
descriptor: ()Lsun/util/locale/provider/LocaleProviderAdapter$Type;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract <P extends java.util.spi.LocaleServiceProvider> P getLocaleServiceProvider(java.lang.Class<P>);
descriptor: (Ljava/lang/Class;)Ljava/util/spi/LocaleServiceProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: <P:Ljava/util/spi/LocaleServiceProvider;>(Ljava/lang/Class<TP;>;)TP;
MethodParameters:
Name Flags
c
public abstract java.text.spi.BreakIteratorProvider getBreakIteratorProvider();
descriptor: ()Ljava/text/spi/BreakIteratorProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.text.spi.CollatorProvider getCollatorProvider();
descriptor: ()Ljava/text/spi/CollatorProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.text.spi.DateFormatProvider getDateFormatProvider();
descriptor: ()Ljava/text/spi/DateFormatProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.text.spi.DateFormatSymbolsProvider getDateFormatSymbolsProvider();
descriptor: ()Ljava/text/spi/DateFormatSymbolsProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.text.spi.DecimalFormatSymbolsProvider getDecimalFormatSymbolsProvider();
descriptor: ()Ljava/text/spi/DecimalFormatSymbolsProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.text.spi.NumberFormatProvider getNumberFormatProvider();
descriptor: ()Ljava/text/spi/NumberFormatProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.spi.CurrencyNameProvider getCurrencyNameProvider();
descriptor: ()Ljava/util/spi/CurrencyNameProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.spi.LocaleNameProvider getLocaleNameProvider();
descriptor: ()Ljava/util/spi/LocaleNameProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.spi.TimeZoneNameProvider getTimeZoneNameProvider();
descriptor: ()Ljava/util/spi/TimeZoneNameProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.spi.CalendarDataProvider getCalendarDataProvider();
descriptor: ()Ljava/util/spi/CalendarDataProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.util.spi.CalendarNameProvider getCalendarNameProvider();
descriptor: ()Ljava/util/spi/CalendarNameProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract sun.util.spi.CalendarProvider getCalendarProvider();
descriptor: ()Lsun/util/spi/CalendarProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract sun.util.locale.provider.LocaleResources getLocaleResources(java.util.Locale);
descriptor: (Ljava/util/Locale;)Lsun/util/locale/provider/LocaleResources;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
locale
public abstract java.util.Locale[] getAvailableLocales();
descriptor: ()[Ljava/util/Locale;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
static int[] $SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.util.locale.provider.LocaleProviderAdapter.$SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic sun.util.locale.provider.LocaleProviderAdapter$Type.values:()[Lsun/util/locale/provider/LocaleProviderAdapter$Type;
arraylength
newarray 10
astore 0
2: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.CLDR:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.FALLBACK:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iconst_5
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.HOST:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iconst_4
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.JRE:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iconst_1
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic sun.util.locale.provider.LocaleProviderAdapter$Type.SPI:Lsun/util/locale/provider/LocaleProviderAdapter$Type;
invokevirtual sun.util.locale.provider.LocaleProviderAdapter$Type.ordinal:()I
iconst_3
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic sun.util.locale.provider.LocaleProviderAdapter.$SWITCH_TABLE$sun$util$locale$provider$LocaleProviderAdapter$Type:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
}
SourceFile: "LocaleProviderAdapter.java"
NestMembers:
sun.util.locale.provider.LocaleProviderAdapter$Type
InnerClasses:
public Control = java.util.ResourceBundle$Control of java.util.ResourceBundle
public final Type = sun.util.locale.provider.LocaleProviderAdapter$Type of sun.util.locale.provider.LocaleProviderAdapter