class com.sun.javafx.application.HostServicesDelegate$StandaloneHostService extends com.sun.javafx.application.HostServicesDelegate
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.javafx.application.HostServicesDelegate$StandaloneHostService
super_class: com.sun.javafx.application.HostServicesDelegate
{
private static com.sun.javafx.application.HostServicesDelegate instance;
descriptor: Lcom/sun/javafx/application/HostServicesDelegate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.Class appClass;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
static final java.lang.String[] browsers;
descriptor: [Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: aconst_null
putstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.instance:Lcom/sun/javafx/application/HostServicesDelegate;
1: bipush 6
anewarray java.lang.String
dup
iconst_0
2: ldc "xdg-open"
aastore
dup
iconst_1
3: ldc "google-chrome"
aastore
dup
iconst_2
4: ldc "firefox"
aastore
dup
iconst_3
5: ldc "opera"
aastore
dup
iconst_4
6: ldc "konqueror"
aastore
dup
iconst_5
7: ldc "mozilla"
aastore
8: putstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.browsers:[Ljava/lang/String;
9: return
LocalVariableTable:
Start End Slot Name Signature
public static com.sun.javafx.application.HostServicesDelegate getInstance(javafx.application.Application);
descriptor: (Ljavafx/application/Application;)Lcom/sun/javafx/application/HostServicesDelegate;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
dup
astore 1
monitorenter
1: getstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.instance:Lcom/sun/javafx/application/HostServicesDelegate;
ifnonnull 3
2: new com.sun.javafx.application.HostServicesDelegate$StandaloneHostService
dup
aload 0
invokespecial com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.<init>:(Ljavafx/application/Application;)V
putstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.instance:Lcom/sun/javafx/application/HostServicesDelegate;
3: StackMap locals: java.lang.Class
StackMap stack:
getstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.instance:Lcom/sun/javafx/application/HostServicesDelegate;
aload 1
monitorexit
4: areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 app Ljavafx/application/Application;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
app
private void <init>(javafx.application.Application);
descriptor: (Ljavafx/application/Application;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.javafx.application.HostServicesDelegate.<init>:()V
1: aload 0
aconst_null
putfield com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.appClass:Ljava/lang/Class;
2: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
putfield com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.appClass:Ljava/lang/Class;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
0 4 1 app Ljavafx/application/Application;
MethodParameters:
Name Flags
app
public java.lang.String getCodeBase();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.appClass:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iflt 4
3: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
4: StackMap locals: java.lang.String int
StackMap stack:
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 ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
5: aload 0
getfield com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.appClass:Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 3
start local 3 6: aload 3
ldc "jar:file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: aload 3
ldc "!"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpne 9
8: StackMap locals: java.lang.String
StackMap stack:
ldc ""
areturn
9: StackMap locals:
StackMap stack:
aload 3
iconst_4
10: aload 3
ldc "!"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
11: invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 12: aconst_null
astore 5
start local 5 13: new java.io.File
dup
new java.net.URI
dup
aload 4
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
14: goto 16
StackMap locals: com.sun.javafx.application.HostServicesDelegate$StandaloneHostService java.lang.String int java.lang.String java.lang.String java.io.File
StackMap stack: java.lang.Exception
15: pop
16: StackMap locals:
StackMap stack:
aload 5
ifnull 20
17: aload 5
invokevirtual java.io.File.getParent:()Ljava/lang/String;
astore 6
start local 6 18: aload 6
ifnull 20
19: aload 0
aload 6
invokevirtual com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.toURIString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 6 20: StackMap locals:
StackMap stack:
ldc ""
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 21 0 this Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
1 21 1 theClassFile Ljava/lang/String;
2 21 2 idx I
6 21 3 classUrlString Ljava/lang/String;
12 21 4 urlString Ljava/lang/String;
13 21 5 jarFile Ljava/io/File;
18 20 6 codebase Ljava/lang/String;
Exception table:
from to target type
13 14 15 Class java.lang.Exception
private java.lang.String toURIString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toString:()Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 3: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
end local 2 4: ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
0 5 1 filePath Ljava/lang/String;
3 4 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
filePath
public java.lang.String getDocumentBase();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "user.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.toURIString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
public void showDocument(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc "Mac OS"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: invokestatic java.awt.Desktop.getDesktop:()Ljava/awt/Desktop;
aload 1
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokevirtual java.awt.Desktop.browse:(Ljava/net/URI;)V
3: goto 23
StackMap locals: java.lang.String
StackMap stack:
4: aload 2
ldc "Windows"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
5: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
6: new java.lang.StringBuilder
dup
ldc "rundll32 url.dll,FileProtocolHandler "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokevirtual java.lang.Runtime.exec:(Ljava/lang/String;)Ljava/lang/Process;
pop
8: goto 23
9: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 10: getstatic com.sun.javafx.application.HostServicesDelegate$StandaloneHostService.browsers:[Ljava/lang/String;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 18
StackMap locals: com.sun.javafx.application.HostServicesDelegate$StandaloneHostService java.lang.String java.lang.String java.lang.String top int int java.lang.String[]
StackMap stack:
11: aload 7
iload 5
aaload
astore 4
start local 4 12: aload 3
ifnonnull 17
invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
13: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "which"
aastore
dup
iconst_1
aload 4
aastore
14: invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;)Ljava/lang/Process;
15: invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
iconst_m1
if_icmpeq 17
16: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 4
dup
astore 3
aastore
dup
iconst_1
aload 1
aastore
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;)Ljava/lang/Process;
pop
end local 4 17: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
iload 6
if_icmplt 11
19: aload 3
ifnonnull 23
20: new java.lang.Exception
dup
ldc "No web browser found"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
athrow
end local 3 21: StackMap locals: com.sun.javafx.application.HostServicesDelegate$StandaloneHostService java.lang.String java.lang.String
StackMap stack: java.lang.Exception
astore 3
start local 3 22: aload 3
invokevirtual java.lang.Exception.printStackTrace:()V
end local 3 23: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/sun/javafx/application/HostServicesDelegate$StandaloneHostService;
0 24 1 uri Ljava/lang/String;
1 24 2 osName Ljava/lang/String;
10 21 3 browser Ljava/lang/String;
12 17 4 b Ljava/lang/String;
22 23 3 e Ljava/lang/Exception;
Exception table:
from to target type
1 21 21 Class java.lang.Exception
MethodParameters:
Name Flags
uri final
}
SourceFile: "HostServicesDelegate.java"
NestHost: com.sun.javafx.application.HostServicesDelegate
InnerClasses:
private StandaloneHostService = com.sun.javafx.application.HostServicesDelegate$StandaloneHostService of com.sun.javafx.application.HostServicesDelegate