public abstract class org.apache.batik.parser.UnitProcessor
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.batik.parser.UnitProcessor
super_class: java.lang.Object
{
public static final short HORIZONTAL_LENGTH;
descriptor: S
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final short VERTICAL_LENGTH;
descriptor: S
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final short OTHER_LENGTH;
descriptor: S
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final double SQRT2;
descriptor: D
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc 2.0
invokestatic java.lang.Math.sqrt:(D)D
putstatic org.apache.batik.parser.UnitProcessor.SQRT2:D
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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 Lorg/apache/batik/parser/UnitProcessor;
public static float svgToObjectBoundingBox(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (Ljava/lang/String;Ljava/lang/String;SLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.apache.batik.parser.LengthParser
dup
invokespecial org.apache.batik.parser.LengthParser.<init>:()V
astore 4
start local 4 1: new org.apache.batik.parser.UnitProcessor$UnitResolver
dup
invokespecial org.apache.batik.parser.UnitProcessor$UnitResolver.<init>:()V
astore 5
start local 5 2: aload 4
aload 5
invokevirtual org.apache.batik.parser.LengthParser.setLengthHandler:(Lorg/apache/batik/parser/LengthHandler;)V
3: aload 4
aload 0
invokevirtual org.apache.batik.parser.LengthParser.parse:(Ljava/lang/String;)V
4: aload 5
getfield org.apache.batik.parser.UnitProcessor$UnitResolver.value:F
aload 5
getfield org.apache.batik.parser.UnitProcessor$UnitResolver.unit:S
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.svgToObjectBoundingBox:(FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
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 5 0 s Ljava/lang/String;
0 5 1 attr Ljava/lang/String;
0 5 2 d S
0 5 3 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
1 5 4 lengthParser Lorg/apache/batik/parser/LengthParser;
2 5 5 ur Lorg/apache/batik/parser/UnitProcessor$UnitResolver;
Exceptions:
throws org.apache.batik.parser.ParseException
MethodParameters:
Name Flags
s
attr
d
ctx
public static float svgToObjectBoundingBox(float, short, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
tableswitch { // 1 - 10
1: 1
2: 2
3: 3
4: 3
5: 3
6: 3
7: 3
8: 3
9: 3
10: 3
default: 4
}
1: StackMap locals:
StackMap stack:
fload 0
freturn
2: StackMap locals:
StackMap stack:
fload 0
ldc 100.0
fdiv
freturn
3: StackMap locals:
StackMap stack:
fload 0
iload 1
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.svgToUserSpace:(FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Length has unknown type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 value F
0 5 1 type S
0 5 2 d S
0 5 3 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
MethodParameters:
Name Flags
value
type
d
ctx
public static float svgToUserSpace(java.lang.String, java.lang.String, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (Ljava/lang/String;Ljava/lang/String;SLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.apache.batik.parser.LengthParser
dup
invokespecial org.apache.batik.parser.LengthParser.<init>:()V
astore 4
start local 4 1: new org.apache.batik.parser.UnitProcessor$UnitResolver
dup
invokespecial org.apache.batik.parser.UnitProcessor$UnitResolver.<init>:()V
astore 5
start local 5 2: aload 4
aload 5
invokevirtual org.apache.batik.parser.LengthParser.setLengthHandler:(Lorg/apache/batik/parser/LengthHandler;)V
3: aload 4
aload 0
invokevirtual org.apache.batik.parser.LengthParser.parse:(Ljava/lang/String;)V
4: aload 5
getfield org.apache.batik.parser.UnitProcessor$UnitResolver.value:F
aload 5
getfield org.apache.batik.parser.UnitProcessor$UnitResolver.unit:S
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.svgToUserSpace:(FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
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 5 0 s Ljava/lang/String;
0 5 1 attr Ljava/lang/String;
0 5 2 d S
0 5 3 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
1 5 4 lengthParser Lorg/apache/batik/parser/LengthParser;
2 5 5 ur Lorg/apache/batik/parser/UnitProcessor$UnitResolver;
Exceptions:
throws org.apache.batik.parser.ParseException
MethodParameters:
Name Flags
s
attr
d
ctx
public static float svgToUserSpace(float, short, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
tableswitch { // 1 - 10
1: 1
2: 9
3: 7
4: 8
5: 1
6: 3
7: 2
8: 4
9: 5
10: 6
default: 10
}
1: StackMap locals:
StackMap stack:
fload 0
freturn
2: StackMap locals:
StackMap stack:
fload 0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fdiv
freturn
3: StackMap locals:
StackMap stack:
fload 0
ldc 10.0
fmul
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fdiv
freturn
4: StackMap locals:
StackMap stack:
fload 0
ldc 25.4
fmul
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fdiv
freturn
5: StackMap locals:
StackMap stack:
fload 0
ldc 25.4
fmul
ldc 72.0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
fdiv
freturn
6: StackMap locals:
StackMap stack:
fload 0
ldc 25.4
fmul
ldc 6.0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
fdiv
freturn
7: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.emsToPixels:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
8: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.exsToPixels:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
9: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.percentagesToPixels:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
10: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Length has unknown type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 v F
0 11 1 type S
0 11 2 d S
0 11 3 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
MethodParameters:
Name Flags
v
type
d
ctx
public static float userSpaceToSVG(float, short, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
tableswitch { // 1 - 10
1: 1
2: 9
3: 7
4: 8
5: 1
6: 3
7: 2
8: 4
9: 5
10: 6
default: 10
}
1: StackMap locals:
StackMap stack:
fload 0
freturn
2: StackMap locals:
StackMap stack:
fload 0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
freturn
3: StackMap locals:
StackMap stack:
fload 0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
ldc 10.0
fdiv
freturn
4: StackMap locals:
StackMap stack:
fload 0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
ldc 25.4
fdiv
freturn
5: StackMap locals:
StackMap stack:
fload 0
ldc 72.0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
fmul
ldc 25.4
fdiv
freturn
6: StackMap locals:
StackMap stack:
fload 0
ldc 6.0
aload 3
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getPixelUnitToMillimeter:()F
fmul
fmul
ldc 25.4
fdiv
freturn
7: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.pixelsToEms:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
8: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.pixelsToExs:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
9: StackMap locals:
StackMap stack:
fload 0
iload 2
aload 3
invokestatic org.apache.batik.parser.UnitProcessor.pixelsToPercentages:(FSLorg/apache/batik/parser/UnitProcessor$Context;)F
freturn
10: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Length has unknown type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 v F
0 11 1 type S
0 11 2 d S
0 11 3 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
MethodParameters:
Name Flags
v
type
d
ctx
protected static float percentagesToPixels(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iconst_2
if_icmpne 3
1: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportWidth:()F
fstore 3
start local 3 2: fload 3
fload 0
fmul
ldc 100.0
fdiv
freturn
end local 3 3: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmpne 6
4: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportHeight:()F
fstore 3
start local 3 5: fload 3
fload 0
fmul
ldc 100.0
fdiv
freturn
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportWidth:()F
f2d
dstore 3
start local 3 7: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportHeight:()F
f2d
dstore 5
start local 5 8: dload 3
dload 3
dmul
dload 5
dload 5
dmul
dadd
invokestatic java.lang.Math.sqrt:(D)D
getstatic org.apache.batik.parser.UnitProcessor.SQRT2:D
ddiv
dstore 7
start local 7 9: dload 7
fload 0
f2d
dmul
ldc 100.0
ddiv
d2f
freturn
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 v F
0 10 1 d S
0 10 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
2 3 3 w F
5 6 3 h F
7 10 3 w D
8 10 5 h D
9 10 7 vpp D
MethodParameters:
Name Flags
v
d
ctx
protected static float pixelsToPercentages(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iconst_2
if_icmpne 3
1: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportWidth:()F
fstore 3
start local 3 2: fload 0
ldc 100.0
fmul
fload 3
fdiv
freturn
end local 3 3: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmpne 6
4: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportHeight:()F
fstore 3
start local 3 5: fload 0
ldc 100.0
fmul
fload 3
fdiv
freturn
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportWidth:()F
f2d
dstore 3
start local 3 7: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getViewportHeight:()F
f2d
dstore 5
start local 5 8: dload 3
dload 3
dmul
dload 5
dload 5
dmul
dadd
invokestatic java.lang.Math.sqrt:(D)D
getstatic org.apache.batik.parser.UnitProcessor.SQRT2:D
ddiv
dstore 7
start local 7 9: fload 0
f2d
ldc 100.0
dmul
dload 7
ddiv
d2f
freturn
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 v F
0 10 1 d S
0 10 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
2 3 3 w F
5 6 3 h F
7 10 3 w D
8 10 5 h D
9 10 7 vpp D
MethodParameters:
Name Flags
v
d
ctx
protected static float pixelsToEms(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: fload 0
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getFontSize:()F
fdiv
freturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 v F
0 1 1 d S
0 1 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
MethodParameters:
Name Flags
v
d
ctx
protected static float emsToPixels(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: fload 0
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getFontSize:()F
fmul
freturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 v F
0 1 1 d S
0 1 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
MethodParameters:
Name Flags
v
d
ctx
protected static float pixelsToExs(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getXHeight:()F
fstore 3
start local 3 1: fload 0
fload 3
fdiv
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getFontSize:()F
fdiv
freturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 v F
0 2 1 d S
0 2 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
1 2 3 xh F
MethodParameters:
Name Flags
v
d
ctx
protected static float exsToPixels(float, short, org.apache.batik.parser.UnitProcessor$Context);
descriptor: (FSLorg/apache/batik/parser/UnitProcessor$Context;)F
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getXHeight:()F
fstore 3
start local 3 1: fload 0
fload 3
fmul
aload 2
invokeinterface org.apache.batik.parser.UnitProcessor$Context.getFontSize:()F
fmul
freturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 v F
0 2 1 d S
0 2 2 ctx Lorg/apache/batik/parser/UnitProcessor$Context;
1 2 3 xh F
MethodParameters:
Name Flags
v
d
ctx
}
SourceFile: "UnitProcessor.java"
NestMembers:
org.apache.batik.parser.UnitProcessor$Context org.apache.batik.parser.UnitProcessor$UnitResolver
InnerClasses:
public abstract Context = org.apache.batik.parser.UnitProcessor$Context of org.apache.batik.parser.UnitProcessor
public UnitResolver = org.apache.batik.parser.UnitProcessor$UnitResolver of org.apache.batik.parser.UnitProcessor