public class sun.awt.X11.XDesktopPeer implements java.awt.peer.DesktopPeer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.X11.XDesktopPeer
super_class: java.lang.Object
{
private static boolean nativeLibraryLoaded;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean initExecuted;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
1: iconst_0
putstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
return
LocalVariableTable:
Start End Slot Name Signature
private static void initWithLock();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic sun.awt.X11.XToolkit.awtLock:()V
1: getstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
ifne 8
2: invokestatic sun.awt.X11.XDesktopPeer.init:()Z
putstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
3: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 0
5: iconst_1
putstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
6: invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
7: aload 0
athrow
8: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
9: invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
10: return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 4 4 any
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: invokestatic sun.awt.X11.XDesktopPeer.initWithLock:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XDesktopPeer;
static boolean isDesktopSupported();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic sun.awt.X11.XDesktopPeer.initWithLock:()V
1: getstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public boolean isSupported(java.awt.Desktop$Action);
descriptor: (Ljava/awt/Desktop$Action;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic java.awt.Desktop$Action.PRINT:Ljava/awt/Desktop$Action;
if_acmpeq 1
aload 1
getstatic java.awt.Desktop$Action.EDIT:Ljava/awt/Desktop$Action;
if_acmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XDesktopPeer;
0 2 1 type Ljava/awt/Desktop$Action;
MethodParameters:
Name Flags
type
public void open(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual sun.awt.X11.XDesktopPeer.launch:(Ljava/net/URI;)V
1: goto 4
StackMap locals:
StackMap stack: java.net.MalformedURLException
2: pop
3: new java.io.IOException
dup
aload 1
invokevirtual java.io.File.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/awt/X11/XDesktopPeer;
0 5 1 file Ljava/io/File;
Exception table:
from to target type
0 1 2 Class java.net.MalformedURLException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void edit(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "The current platform doesn't support the EDIT action."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XDesktopPeer;
0 1 1 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void print(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "The current platform doesn't support the PRINT action."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XDesktopPeer;
0 1 1 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void mail(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.awt.X11.XDesktopPeer.launch:(Ljava/net/URI;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XDesktopPeer;
0 2 1 uri Ljava/net/URI;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
public void browse(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.awt.X11.XDesktopPeer.launch:(Ljava/net/URI;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XDesktopPeer;
0 2 1 uri Ljava/net/URI;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
private void launch(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iconst_0
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: invokestatic sun.awt.X11.XToolkit.awtLock:()V
3: getstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
ifne 5
4: new java.io.IOException
dup
ldc "Failed to load native libraries."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 2
invokevirtual sun.awt.X11.XDesktopPeer.gnome_url_show:([B)Z
istore 3
6: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 4
8: invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
9: aload 4
athrow
10: StackMap locals:
StackMap stack:
invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
11: iload 3
ifne 13
12: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Failed to show URI:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/awt/X11/XDesktopPeer;
0 14 1 uri Ljava/net/URI;
1 14 2 uriByteArray [B
2 14 3 result Z
Exception table:
from to target type
3 7 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
private native boolean gnome_url_show(byte[]);
descriptor: ([B)Z
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
url
private static native boolean init();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
}
SourceFile: "XDesktopPeer.java"
InnerClasses:
public final Action = java.awt.Desktop$Action of java.awt.Desktop