public abstract class com.sun.glass.ui.monocle.NativePlatformFactory
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.glass.ui.monocle.NativePlatformFactory
super_class: java.lang.Object
{
private static com.sun.glass.ui.monocle.NativePlatform platform;
descriptor: Lcom/sun/glass/ui/monocle/NativePlatform;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final int majorVersion;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int minorVersion;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
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 Lcom/sun/glass/ui/monocle/NativePlatformFactory;
protected abstract boolean matches();
descriptor: ()Z
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract com.sun.glass.ui.monocle.NativePlatform createNativePlatform();
descriptor: ()Lcom/sun/glass/ui/monocle/NativePlatform;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract int getMajorVersion();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract int getMinorVersion();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
public static synchronized com.sun.glass.ui.monocle.NativePlatform getNativePlatform();
descriptor: ()Lcom/sun/glass/ui/monocle/NativePlatform;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=8, args_size=0
0: getstatic com.sun.glass.ui.monocle.NativePlatformFactory.platform:Lcom/sun/glass/ui/monocle/NativePlatform;
ifnonnull 45
1: invokedynamic run()Ljava/security/PrivilegedAction;
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;
com/sun/glass/ui/monocle/NativePlatformFactory.lambda$0()Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
2: astore 0
start local 0 3: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 4: iconst_0
istore 2
start local 2 5: goto 39
6: StackMap locals: java.lang.String java.lang.String[] int
StackMap stack:
aload 1
iload 2
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 3
start local 3 7: aload 3
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 10
8: aload 3
astore 4
start local 4 9: goto 13
end local 4 10: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "com.sun.glass.ui.monocle."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "PlatformFactory"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 13: StackMap locals: java.lang.String
StackMap stack:
getstatic com.sun.glass.ui.monocle.MonocleSettings.settings:Lcom/sun/glass/ui/monocle/MonocleSettings;
getfield com.sun.glass.ui.monocle.MonocleSettings.tracePlatformConfig:Z
ifeq 17
14: ldc "Trying platform %s with class %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
15: aload 3
aastore
dup
iconst_1
aload 4
aastore
16: invokestatic com.sun.glass.ui.monocle.MonocleTrace.traceConfig:(Ljava/lang/String;[Ljava/lang/Object;)V
17: StackMap locals:
StackMap stack:
ldc Lcom/sun/glass/ui/monocle/NativePlatformFactory;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 5
start local 5 18: aload 4
iconst_0
aload 5
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 6
start local 6 19: ldc Lcom/sun/glass/ui/monocle/NativePlatformFactory;
aload 6
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 23
20: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized Monocle platform: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
21: aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: java.lang.ClassLoader java.lang.Class
StackMap stack:
aload 6
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast com.sun.glass.ui.monocle.NativePlatformFactory
astore 7
start local 7 24: aload 7
invokevirtual com.sun.glass.ui.monocle.NativePlatformFactory.matches:()Z
ifeq 38
25: aload 7
invokevirtual com.sun.glass.ui.monocle.NativePlatformFactory.getMajorVersion:()I
iconst_1
if_icmpne 38
26: aload 7
invokevirtual com.sun.glass.ui.monocle.NativePlatformFactory.getMinorVersion:()I
ifne 38
27: aload 7
invokevirtual com.sun.glass.ui.monocle.NativePlatformFactory.createNativePlatform:()Lcom/sun/glass/ui/monocle/NativePlatform;
putstatic com.sun.glass.ui.monocle.NativePlatformFactory.platform:Lcom/sun/glass/ui/monocle/NativePlatform;
28: getstatic com.sun.glass.ui.monocle.MonocleSettings.settings:Lcom/sun/glass/ui/monocle/MonocleSettings;
getfield com.sun.glass.ui.monocle.MonocleSettings.tracePlatformConfig:Z
ifeq 30
29: ldc "Matched %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokestatic com.sun.glass.ui.monocle.MonocleTrace.traceConfig:(Ljava/lang/String;[Ljava/lang/Object;)V
30: StackMap locals: com.sun.glass.ui.monocle.NativePlatformFactory
StackMap stack:
getstatic com.sun.glass.ui.monocle.NativePlatformFactory.platform:Lcom/sun/glass/ui/monocle/NativePlatform;
31: areturn
end local 7 end local 6 end local 5 32: StackMap locals: java.lang.String java.lang.String[] int java.lang.String java.lang.String
StackMap stack: java.lang.Exception
astore 5
start local 5 33: getstatic com.sun.glass.ui.monocle.MonocleSettings.settings:Lcom/sun/glass/ui/monocle/MonocleSettings;
getfield com.sun.glass.ui.monocle.MonocleSettings.tracePlatformConfig:Z
ifeq 37
34: ldc "Failed to create platform %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
35: aload 4
aastore
36: invokestatic com.sun.glass.ui.monocle.MonocleTrace.traceConfig:(Ljava/lang/String;[Ljava/lang/Object;)V
37: StackMap locals: java.lang.Exception
StackMap stack:
aload 5
invokevirtual java.lang.Exception.printStackTrace:()V
end local 5 end local 4 end local 3 38: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
39: iload 2
aload 1
arraylength
if_icmplt 6
end local 2 40: new java.lang.UnsupportedOperationException
dup
41: new java.lang.StringBuilder
dup
ldc "Cannot load a native platform from: '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
42: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
43: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
44: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 45: StackMap locals:
StackMap stack:
getstatic com.sun.glass.ui.monocle.NativePlatformFactory.platform:Lcom/sun/glass/ui/monocle/NativePlatform;
areturn
LocalVariableTable:
Start End Slot Name Signature
3 45 0 platformFactoryProperty Ljava/lang/String;
4 45 1 platformFactories [Ljava/lang/String;
5 40 2 i I
7 38 3 factoryName Ljava/lang/String;
9 10 4 factoryClassName Ljava/lang/String;
13 38 4 factoryClassName Ljava/lang/String;
18 32 5 loader Ljava/lang/ClassLoader;
19 32 6 clazz Ljava/lang/Class<*>;
24 32 7 npf Lcom/sun/glass/ui/monocle/NativePlatformFactory;
33 38 5 e Ljava/lang/Exception;
Exception table:
from to target type
17 31 32 Class java.lang.Exception
private static java.lang.String lambda$0();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "monocle.platform"
1: ldc "MX6,OMAP,Dispman,Android,X11,Linux,Headless"
2: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "NativePlatformFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles