public class javax.print.ServiceUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.print.ServiceUI
super_class: java.lang.Object
{
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 Ljavax/print/ServiceUI;
public static javax.print.PrintService printDialog(java.awt.GraphicsConfiguration, int, int, javax.print.PrintService[], javax.print.PrintService, javax.print.DocFlavor, javax.print.attribute.PrintRequestAttributeSet);
descriptor: (Ljava/awt/GraphicsConfiguration;II[Ljavax/print/PrintService;Ljavax/print/PrintService;Ljavax/print/DocFlavor;Ljavax/print/attribute/PrintRequestAttributeSet;)Ljavax/print/PrintService;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=18, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: iconst_m1
istore 7
start local 7 1: invokestatic java.awt.GraphicsEnvironment.isHeadless:()Z
ifeq 3
2: new java.awt.HeadlessException
dup
invokespecial java.awt.HeadlessException.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
aload 3
ifnull 4
aload 3
arraylength
ifne 5
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "services must be non-null and non-empty"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 6
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
ldc "attributes must be non-null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 4
ifnull 17
8: iconst_0
istore 8
start local 8 9: goto 14
10: StackMap locals: int
StackMap stack:
aload 3
iload 8
aaload
aload 4
invokeinterface javax.print.PrintService.equals:(Ljava/lang/Object;)Z
ifeq 13
11: iload 8
istore 7
12: goto 15
13: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
14: iload 8
aload 3
arraylength
if_icmplt 10
end local 8 15: StackMap locals:
StackMap stack:
iload 7
ifge 18
16: new java.lang.IllegalArgumentException
dup
ldc "services must contain defaultService"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
iconst_0
istore 7
18: StackMap locals:
StackMap stack:
aload 6
ldc Lsun/print/DialogOwner;
invokeinterface javax.print.attribute.PrintRequestAttributeSet.get:(Ljava/lang/Class;)Ljavax/print/attribute/Attribute;
checkcast sun.print.DialogOwner
astore 8
start local 8 19: aload 8
ifnull 20
aload 8
invokevirtual sun.print.DialogOwner.getOwner:()Ljava/awt/Window;
goto 21
StackMap locals: sun.print.DialogOwner
StackMap stack:
20: aconst_null
StackMap locals:
StackMap stack: java.awt.Window
21: astore 9
start local 9 22: aload 0
ifnonnull 25
23: invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
24: invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
goto 26
StackMap locals: java.awt.Window
StackMap stack:
25: aload 0
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
26: StackMap locals:
StackMap stack: java.awt.Rectangle
astore 10
start local 10 27: iload 1
aload 10
getfield java.awt.Rectangle.x:I
iadd
istore 1
28: iload 2
aload 10
getfield java.awt.Rectangle.y:I
iadd
istore 2
29: aload 9
instanceof java.awt.Frame
ifeq 38
30: new sun.print.ServiceDialog
dup
aload 0
31: iload 1
32: iload 2
33: aload 3
iload 7
34: aload 5
aload 6
35: aload 9
checkcast java.awt.Frame
36: invokespecial sun.print.ServiceDialog.<init>:(Ljava/awt/GraphicsConfiguration;II[Ljavax/print/PrintService;ILjavax/print/DocFlavor;Ljavax/print/attribute/PrintRequestAttributeSet;Ljava/awt/Frame;)V
astore 11
start local 11 37: goto 45
end local 11 38: StackMap locals: java.awt.Rectangle
StackMap stack:
new sun.print.ServiceDialog
dup
aload 0
39: iload 1
40: iload 2
41: aload 3
iload 7
42: aload 5
aload 6
43: aload 9
checkcast java.awt.Dialog
44: invokespecial sun.print.ServiceDialog.<init>:(Ljava/awt/GraphicsConfiguration;II[Ljavax/print/PrintService;ILjavax/print/DocFlavor;Ljavax/print/attribute/PrintRequestAttributeSet;Ljava/awt/Dialog;)V
astore 11
start local 11 45: StackMap locals: sun.print.ServiceDialog
StackMap stack:
aload 11
invokevirtual sun.print.ServiceDialog.getBounds:()Ljava/awt/Rectangle;
astore 12
start local 12 46: aload 10
aload 12
invokevirtual java.awt.Rectangle.contains:(Ljava/awt/Rectangle;)Z
ifne 58
47: aload 12
getfield java.awt.Rectangle.x:I
aload 12
getfield java.awt.Rectangle.width:I
iadd
aload 10
getfield java.awt.Rectangle.x:I
aload 10
getfield java.awt.Rectangle.width:I
iadd
if_icmple 52
48: aload 10
getfield java.awt.Rectangle.x:I
aload 10
getfield java.awt.Rectangle.width:I
iadd
aload 12
getfield java.awt.Rectangle.width:I
isub
aload 10
getfield java.awt.Rectangle.x:I
if_icmple 51
49: aload 10
getfield java.awt.Rectangle.x:I
aload 10
getfield java.awt.Rectangle.width:I
iadd
aload 12
getfield java.awt.Rectangle.width:I
isub
istore 1
50: goto 52
51: StackMap locals: java.awt.Rectangle
StackMap stack:
aload 10
getfield java.awt.Rectangle.x:I
istore 1
52: StackMap locals:
StackMap stack:
aload 12
getfield java.awt.Rectangle.y:I
aload 12
getfield java.awt.Rectangle.height:I
iadd
aload 10
getfield java.awt.Rectangle.y:I
aload 10
getfield java.awt.Rectangle.height:I
iadd
if_icmple 57
53: aload 10
getfield java.awt.Rectangle.y:I
aload 10
getfield java.awt.Rectangle.height:I
iadd
aload 12
getfield java.awt.Rectangle.height:I
isub
aload 10
getfield java.awt.Rectangle.y:I
if_icmple 56
54: aload 10
getfield java.awt.Rectangle.y:I
aload 10
getfield java.awt.Rectangle.height:I
iadd
aload 12
getfield java.awt.Rectangle.height:I
isub
istore 2
55: goto 57
56: StackMap locals:
StackMap stack:
aload 10
getfield java.awt.Rectangle.y:I
istore 2
57: StackMap locals:
StackMap stack:
aload 11
iload 1
iload 2
aload 12
getfield java.awt.Rectangle.width:I
aload 12
getfield java.awt.Rectangle.height:I
invokevirtual sun.print.ServiceDialog.setBounds:(IIII)V
58: StackMap locals:
StackMap stack:
aload 11
invokevirtual sun.print.ServiceDialog.show:()V
59: aload 11
invokevirtual sun.print.ServiceDialog.getStatus:()I
iconst_1
if_icmpne 77
60: aload 11
invokevirtual sun.print.ServiceDialog.getAttributes:()Ljavax/print/attribute/PrintRequestAttributeSet;
astore 13
start local 13 61: ldc Ljavax/print/attribute/standard/Destination;
astore 14
start local 14 62: ldc Lsun/print/SunAlternateMedia;
astore 15
start local 15 63: ldc Ljavax/print/attribute/standard/Fidelity;
astore 16
start local 16 64: aload 6
aload 14
invokeinterface javax.print.attribute.PrintRequestAttributeSet.containsKey:(Ljava/lang/Class;)Z
ifeq 67
65: aload 13
aload 14
invokeinterface javax.print.attribute.PrintRequestAttributeSet.containsKey:(Ljava/lang/Class;)Z
ifne 67
66: aload 6
aload 14
invokeinterface javax.print.attribute.PrintRequestAttributeSet.remove:(Ljava/lang/Class;)Z
pop
67: StackMap locals: java.awt.GraphicsConfiguration int int javax.print.PrintService[] javax.print.PrintService javax.print.DocFlavor javax.print.attribute.PrintRequestAttributeSet int sun.print.DialogOwner java.awt.Window java.awt.Rectangle sun.print.ServiceDialog java.awt.Rectangle javax.print.attribute.PrintRequestAttributeSet java.lang.Class java.lang.Class java.lang.Class
StackMap stack:
aload 6
aload 15
invokeinterface javax.print.attribute.PrintRequestAttributeSet.containsKey:(Ljava/lang/Class;)Z
ifeq 70
68: aload 13
aload 15
invokeinterface javax.print.attribute.PrintRequestAttributeSet.containsKey:(Ljava/lang/Class;)Z
ifne 70
69: aload 6
aload 15
invokeinterface javax.print.attribute.PrintRequestAttributeSet.remove:(Ljava/lang/Class;)Z
pop
70: StackMap locals:
StackMap stack:
aload 6
aload 13
invokeinterface javax.print.attribute.PrintRequestAttributeSet.addAll:(Ljavax/print/attribute/AttributeSet;)Z
pop
71: aload 6
aload 16
invokeinterface javax.print.attribute.PrintRequestAttributeSet.get:(Ljava/lang/Class;)Ljavax/print/attribute/Attribute;
checkcast javax.print.attribute.standard.Fidelity
astore 17
start local 17 72: aload 17
ifnull 77
73: aload 17
getstatic javax.print.attribute.standard.Fidelity.FIDELITY_TRUE:Ljavax/print/attribute/standard/Fidelity;
if_acmpne 77
74: aload 11
invokevirtual sun.print.ServiceDialog.getPrintService:()Ljavax/print/PrintService;
75: aload 5
aload 6
76: invokestatic javax.print.ServiceUI.removeUnsupportedAttributes:(Ljavax/print/PrintService;Ljavax/print/DocFlavor;Ljavax/print/attribute/AttributeSet;)V
end local 17 end local 16 end local 15 end local 14 end local 13 77: StackMap locals: java.awt.GraphicsConfiguration int int javax.print.PrintService[] javax.print.PrintService javax.print.DocFlavor javax.print.attribute.PrintRequestAttributeSet int sun.print.DialogOwner java.awt.Window java.awt.Rectangle sun.print.ServiceDialog java.awt.Rectangle
StackMap stack:
aload 11
invokevirtual sun.print.ServiceDialog.getPrintService:()Ljavax/print/PrintService;
areturn
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 78 0 gc Ljava/awt/GraphicsConfiguration;
0 78 1 x I
0 78 2 y I
0 78 3 services [Ljavax/print/PrintService;
0 78 4 defaultService Ljavax/print/PrintService;
0 78 5 flavor Ljavax/print/DocFlavor;
0 78 6 attributes Ljavax/print/attribute/PrintRequestAttributeSet;
1 78 7 defaultIndex I
9 15 8 i I
19 78 8 dlgOwner Lsun/print/DialogOwner;
22 78 9 owner Ljava/awt/Window;
27 78 10 gcBounds Ljava/awt/Rectangle;
37 38 11 dialog Lsun/print/ServiceDialog;
45 78 11 dialog Lsun/print/ServiceDialog;
46 78 12 dlgBounds Ljava/awt/Rectangle;
61 77 13 newas Ljavax/print/attribute/PrintRequestAttributeSet;
62 77 14 dstCategory Ljava/lang/Class<*>;
63 77 15 amCategory Ljava/lang/Class<*>;
64 77 16 fdCategory Ljava/lang/Class<*>;
72 77 17 fd Ljavax/print/attribute/standard/Fidelity;
Exceptions:
throws java.awt.HeadlessException
MethodParameters:
Name Flags
gc
x
y
services
defaultService
flavor
attributes
private static void removeUnsupportedAttributes(javax.print.PrintService, javax.print.DocFlavor, javax.print.attribute.AttributeSet);
descriptor: (Ljavax/print/PrintService;Ljavax/print/DocFlavor;Ljavax/print/attribute/AttributeSet;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
1: aload 2
2: invokeinterface javax.print.PrintService.getUnsupportedAttributes:(Ljavax/print/DocFlavor;Ljavax/print/attribute/AttributeSet;)Ljavax/print/attribute/AttributeSet;
astore 3
start local 3 3: aload 3
ifnull 19
4: aload 3
invokeinterface javax.print.attribute.AttributeSet.toArray:()[Ljavax/print/attribute/Attribute;
astore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 18
7: StackMap locals: javax.print.attribute.AttributeSet javax.print.attribute.Attribute[] int
StackMap stack:
aload 4
iload 5
aaload
invokeinterface javax.print.attribute.Attribute.getCategory:()Ljava/lang/Class;
astore 6
start local 6 8: aload 0
aload 6
invokeinterface javax.print.PrintService.isAttributeCategorySupported:(Ljava/lang/Class;)Z
ifeq 16
9: aload 0
aload 6
invokeinterface javax.print.PrintService.getDefaultAttributeValue:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.print.attribute.Attribute
10: astore 7
start local 7 11: aload 7
ifnull 14
12: aload 2
aload 7
invokeinterface javax.print.attribute.AttributeSet.add:(Ljavax/print/attribute/Attribute;)Z
pop
13: goto 17
14: StackMap locals: java.lang.Class javax.print.attribute.Attribute
StackMap stack:
aload 2
aload 6
invokeinterface javax.print.attribute.AttributeSet.remove:(Ljava/lang/Class;)Z
pop
end local 7 15: goto 17
16: StackMap locals:
StackMap stack:
aload 2
aload 6
invokeinterface javax.print.attribute.AttributeSet.remove:(Ljava/lang/Class;)Z
pop
end local 6 17: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
aload 4
arraylength
if_icmplt 7
end local 5 end local 4 19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 ps Ljavax/print/PrintService;
0 20 1 flavor Ljavax/print/DocFlavor;
0 20 2 aset Ljavax/print/attribute/AttributeSet;
3 20 3 asUnsupported Ljavax/print/attribute/AttributeSet;
5 19 4 usAttrs [Ljavax/print/attribute/Attribute;
6 19 5 i I
8 17 6 category Ljava/lang/Class<+Ljavax/print/attribute/Attribute;>;
11 15 7 attr Ljavax/print/attribute/Attribute;
MethodParameters:
Name Flags
ps
flavor
aset
}
SourceFile: "ServiceUI.java"