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 final java.util.List<java.awt.Desktop$Action> supportedActions;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/awt/Desktop$Action;>;
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=6, locals=0, args_size=0
0: new java.util.ArrayList
dup
iconst_3
anewarray java.awt.Desktop$Action
dup
iconst_0
getstatic java.awt.Desktop$Action.OPEN:Ljava/awt/Desktop$Action;
aastore
dup
iconst_1
getstatic java.awt.Desktop$Action.MAIL:Ljava/awt/Desktop$Action;
aastore
dup
iconst_2
getstatic java.awt.Desktop$Action.BROWSE:Ljava/awt/Desktop$Action;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
1: putstatic sun.awt.X11.XDesktopPeer.supportedActions:Ljava/util/List;
2: iconst_0
putstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
3: 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=2, locals=1, args_size=0
0: invokestatic sun.awt.X11.XToolkit.awtLock:()V
1: getstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
ifne 10
2: invokestatic sun.awt.UNIXToolkit.getEnabledGtkVersion:()Lsun/awt/UNIXToolkit$GtkVersions;
3: invokevirtual sun.awt.UNIXToolkit$GtkVersions.getNumber:()I
invokestatic sun.awt.UNIXToolkit.isGtkVerbose:()Z
4: invokestatic sun.awt.X11.XDesktopPeer.init:(IZ)Z
putstatic sun.awt.X11.XDesktopPeer.nativeLibraryLoaded:Z
5: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 0
7: iconst_1
putstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
8: invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
9: aload 0
athrow
10: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.awt.X11.XDesktopPeer.initExecuted:Z
11: invokestatic sun.awt.X11.XToolkit.awtUnlock:()V
12: return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 6 6 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
ifeq 2
getstatic sun.awt.X11.XDesktopPeer.supportedActions:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
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: getstatic sun.awt.X11.XDesktopPeer.supportedActions:Ljava/util/List;
aload 1
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XDesktopPeer;
0 1 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(int, boolean);
descriptor: (IZ)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
gtkVersion
verbose
}
SourceFile: "XDesktopPeer.java"
InnerClasses:
public final Action = java.awt.Desktop$Action of java.awt.Desktop
public final GtkVersions = sun.awt.UNIXToolkit$GtkVersions of sun.awt.UNIXToolkit