public final class javax.print.attribute.standard.MediaPrintableArea implements javax.print.attribute.DocAttribute, javax.print.attribute.PrintRequestAttribute, javax.print.attribute.PrintJobAttribute
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.print.attribute.standard.MediaPrintableArea
super_class: java.lang.Object
{
private int x;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int y;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int w;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int h;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int units;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1597171464050795793
public static final int INCH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 25400
public static final int MM;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
public void <init>(float, float, float, float, int);
descriptor: (FFFFI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: fload 1
f2d
dconst_0
dcmpg
iflt 3
fload 2
f2d
dconst_0
dcmpg
iflt 3
fload 3
f2d
dconst_0
dcmpg
ifle 3
fload 4
f2d
dconst_0
dcmpg
ifle 3
2: iload 5
iconst_1
if_icmpge 4
3: StackMap locals: javax.print.attribute.standard.MediaPrintableArea float float float float int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "0 or negative value argument"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
fload 1
iload 5
i2f
fmul
ldc 0.5
fadd
f2i
putfield javax.print.attribute.standard.MediaPrintableArea.x:I
5: aload 0
fload 2
iload 5
i2f
fmul
ldc 0.5
fadd
f2i
putfield javax.print.attribute.standard.MediaPrintableArea.y:I
6: aload 0
fload 3
iload 5
i2f
fmul
ldc 0.5
fadd
f2i
putfield javax.print.attribute.standard.MediaPrintableArea.w:I
7: aload 0
fload 4
iload 5
i2f
fmul
ldc 0.5
fadd
f2i
putfield javax.print.attribute.standard.MediaPrintableArea.h:I
8: return
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 9 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 9 1 x F
0 9 2 y F
0 9 3 w F
0 9 4 h F
0 9 5 units I
MethodParameters:
Name Flags
x
y
w
h
units
public void <init>(int, int, int, int, int);
descriptor: (IIIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
iflt 3
iload 2
iflt 3
iload 3
ifle 3
iload 4
ifle 3
2: iload 5
iconst_1
if_icmpge 4
3: StackMap locals: javax.print.attribute.standard.MediaPrintableArea int int int int int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "0 or negative value argument"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 5
imul
putfield javax.print.attribute.standard.MediaPrintableArea.x:I
5: aload 0
iload 2
iload 5
imul
putfield javax.print.attribute.standard.MediaPrintableArea.y:I
6: aload 0
iload 3
iload 5
imul
putfield javax.print.attribute.standard.MediaPrintableArea.w:I
7: aload 0
iload 4
iload 5
imul
putfield javax.print.attribute.standard.MediaPrintableArea.h:I
8: return
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 9 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 9 1 x I
0 9 2 y I
0 9 3 w I
0 9 4 h I
0 9 5 units I
MethodParameters:
Name Flags
x
y
w
h
units
public float[] getPrintableArea(int);
descriptor: (I)[F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iconst_4
newarray 6
dup
iconst_0
aload 0
iload 1
invokevirtual javax.print.attribute.standard.MediaPrintableArea.getX:(I)F
fastore
dup
iconst_1
aload 0
iload 1
invokevirtual javax.print.attribute.standard.MediaPrintableArea.getY:(I)F
fastore
dup
iconst_2
1: aload 0
iload 1
invokevirtual javax.print.attribute.standard.MediaPrintableArea.getWidth:(I)F
fastore
dup
iconst_3
aload 0
iload 1
invokevirtual javax.print.attribute.standard.MediaPrintableArea.getHeight:(I)F
fastore
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 3 1 units I
MethodParameters:
Name Flags
units
public float getX(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.x:I
iload 1
invokestatic javax.print.attribute.standard.MediaPrintableArea.convertFromMicrometers:(II)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 1 1 units I
MethodParameters:
Name Flags
units
public float getY(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.y:I
iload 1
invokestatic javax.print.attribute.standard.MediaPrintableArea.convertFromMicrometers:(II)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 1 1 units I
MethodParameters:
Name Flags
units
public float getWidth(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.w:I
iload 1
invokestatic javax.print.attribute.standard.MediaPrintableArea.convertFromMicrometers:(II)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 1 1 units I
MethodParameters:
Name Flags
units
public float getHeight(int);
descriptor: (I)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.h:I
iload 1
invokestatic javax.print.attribute.standard.MediaPrintableArea.convertFromMicrometers:(II)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 1 1 units I
MethodParameters:
Name Flags
units
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
instanceof javax.print.attribute.standard.MediaPrintableArea
ifeq 5
2: aload 1
checkcast javax.print.attribute.standard.MediaPrintableArea
astore 3
start local 3 3: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.x:I
aload 3
getfield javax.print.attribute.standard.MediaPrintableArea.x:I
if_icmpne 5
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.y:I
aload 3
getfield javax.print.attribute.standard.MediaPrintableArea.y:I
if_icmpne 5
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.w:I
aload 3
getfield javax.print.attribute.standard.MediaPrintableArea.w:I
if_icmpne 5
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.h:I
aload 3
getfield javax.print.attribute.standard.MediaPrintableArea.h:I
if_icmpne 5
4: iconst_1
istore 2
end local 3 5: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 6 1 object Ljava/lang/Object;
1 6 2 ret Z
3 5 3 mm Ljavax/print/attribute/standard/MediaPrintableArea;
MethodParameters:
Name Flags
object
public final java.lang.Class<? extends javax.print.attribute.Attribute> getCategory();
descriptor: ()Ljava/lang/Class;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljavax/print/attribute/standard/MediaPrintableArea;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
Signature: ()Ljava/lang/Class<+Ljavax/print/attribute/Attribute;>;
public final java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "media-printable-area"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
public java.lang.String toString(int, java.lang.String);
descriptor: (ILjava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: ldc ""
astore 2
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual javax.print.attribute.standard.MediaPrintableArea.getPrintableArea:(I)[F
astore 3
start local 3 3: new java.lang.StringBuilder
dup
ldc "("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iconst_0
faload
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
iconst_1
faload
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
ldc ")->("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
iconst_2
faload
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
iconst_3
faload
invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 4: new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
0 5 1 units I
0 5 2 unitsName Ljava/lang/String;
3 5 3 vals [F
4 5 4 str Ljava/lang/String;
MethodParameters:
Name Flags
units
unitsName
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
sipush 1000
ldc "mm"
invokevirtual javax.print.attribute.standard.MediaPrintableArea.toString:(ILjava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.x:I
bipush 37
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.y:I
imul
iadd
bipush 43
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.w:I
imul
iadd
bipush 47
aload 0
getfield javax.print.attribute.standard.MediaPrintableArea.h:I
imul
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/attribute/standard/MediaPrintableArea;
private static float convertFromMicrometers(int, int);
descriptor: (II)F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
ldc "units is < 1"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
i2f
iload 1
i2f
fdiv
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 x I
0 3 1 units I
MethodParameters:
Name Flags
x
units
}
SourceFile: "MediaPrintableArea.java"