class sun.swing.SwingUtilities2$BearingCacheEntry
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.swing.SwingUtilities2$BearingCacheEntry
super_class: java.lang.Object
{
private java.awt.FontMetrics fontMetrics;
descriptor: Ljava/awt/FontMetrics;
flags: (0x0002) ACC_PRIVATE
private java.awt.Font font;
descriptor: Ljava/awt/Font;
flags: (0x0002) ACC_PRIVATE
private java.awt.font.FontRenderContext frc;
descriptor: Ljava/awt/font/FontRenderContext;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<java.lang.Character, java.lang.Short> cache;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Character;Ljava/lang/Short;>;
private static final char[] oneChar;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/swing/SwingUtilities2;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.swing.SwingUtilities2$BearingCacheEntry.$assertionsDisabled:Z
3: iconst_1
newarray 5
putstatic sun.swing.SwingUtilities2$BearingCacheEntry.oneChar:[C
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.awt.FontMetrics);
descriptor: (Ljava/awt/FontMetrics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.swing.SwingUtilities2$BearingCacheEntry.fontMetrics:Ljava/awt/FontMetrics;
2: aload 0
aload 1
invokevirtual java.awt.FontMetrics.getFont:()Ljava/awt/Font;
putfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
3: aload 0
aload 1
invokevirtual java.awt.FontMetrics.getFontRenderContext:()Ljava/awt/font/FontRenderContext;
putfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
4: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.swing.SwingUtilities2$BearingCacheEntry.cache:Ljava/util/Map;
5: getstatic sun.swing.SwingUtilities2$BearingCacheEntry.$assertionsDisabled:Z
ifne 7
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
ifnull 6
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
ifnonnull 7
StackMap locals: sun.swing.SwingUtilities2$BearingCacheEntry java.awt.FontMetrics
StackMap stack:
6: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
0 8 1 fontMetrics Ljava/awt/FontMetrics;
MethodParameters:
Name Flags
fontMetrics
public int getLeftSideBearing(char);
descriptor: (C)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.cache:Ljava/util/Map;
iload 1
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Short
astore 2
start local 2 1: aload 2
ifnonnull 4
2: aload 0
iload 1
invokevirtual sun.swing.SwingUtilities2$BearingCacheEntry.calcBearing:(C)S
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
astore 2
3: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.cache:Ljava/util/Map;
iload 1
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.lang.Short
StackMap stack:
ldc 65280
aload 2
invokevirtual java.lang.Short.shortValue:()S
iand
bipush 8
iushr
bipush 127
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
0 5 1 aChar C
1 5 2 bearing Ljava/lang/Short;
MethodParameters:
Name Flags
aChar
public int getRightSideBearing(char);
descriptor: (C)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.cache:Ljava/util/Map;
iload 1
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Short
astore 2
start local 2 1: aload 2
ifnonnull 4
2: aload 0
iload 1
invokevirtual sun.swing.SwingUtilities2$BearingCacheEntry.calcBearing:(C)S
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
astore 2
3: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.cache:Ljava/util/Map;
iload 1
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.lang.Short
StackMap stack:
sipush 255
aload 2
invokevirtual java.lang.Short.shortValue:()S
iand
bipush 127
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
0 5 1 aChar C
1 5 2 bearing Ljava/lang/Short;
MethodParameters:
Name Flags
aChar
private short calcBearing(char);
descriptor: (C)S
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: getstatic sun.swing.SwingUtilities2$BearingCacheEntry.oneChar:[C
iconst_0
iload 1
castore
1: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
getstatic sun.swing.SwingUtilities2$BearingCacheEntry.oneChar:[C
invokevirtual java.awt.Font.createGlyphVector:(Ljava/awt/font/FontRenderContext;[C)Ljava/awt/font/GlyphVector;
astore 2
start local 2 2: aload 2
iconst_0
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
fconst_0
fconst_0
invokevirtual java.awt.font.GlyphVector.getGlyphPixelBounds:(ILjava/awt/font/FontRenderContext;FF)Ljava/awt/Rectangle;
astore 3
start local 3 3: aload 3
getfield java.awt.Rectangle.x:I
istore 4
start local 4 4: aload 3
getfield java.awt.Rectangle.width:I
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.fontMetrics:Ljava/awt/FontMetrics;
iload 1
invokevirtual java.awt.FontMetrics.charWidth:(C)I
isub
istore 5
start local 5 5: iload 4
ifge 10
6: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
invokevirtual java.awt.font.FontRenderContext.getAntiAliasingHint:()Ljava/lang/Object;
astore 6
start local 6 7: aload 6
getstatic java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB:Ljava/lang/Object;
if_acmpeq 9
8: aload 6
getstatic java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR:Ljava/lang/Object;
if_acmpne 10
9: StackMap locals: sun.swing.SwingUtilities2$BearingCacheEntry int java.awt.font.GlyphVector java.awt.Rectangle int int java.lang.Object
StackMap stack:
iinc 4 1
end local 6 10: StackMap locals:
StackMap stack:
iload 5
ifle 15
11: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
invokevirtual java.awt.font.FontRenderContext.getAntiAliasingHint:()Ljava/lang/Object;
astore 6
start local 6 12: aload 6
getstatic java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB:Ljava/lang/Object;
if_acmpeq 14
13: aload 6
getstatic java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR:Ljava/lang/Object;
if_acmpne 15
14: StackMap locals: java.lang.Object
StackMap stack:
iinc 5 -1
end local 6 15: StackMap locals:
StackMap stack:
iload 4
bipush -127
if_icmplt 16
iload 4
bipush 127
if_icmple 17
16: StackMap locals:
StackMap stack:
iconst_0
istore 4
17: StackMap locals:
StackMap stack:
iload 5
bipush -127
if_icmplt 18
iload 5
bipush 127
if_icmple 19
18: StackMap locals:
StackMap stack:
iconst_0
istore 5
19: StackMap locals:
StackMap stack:
iload 4
bipush 127
iadd
bipush 8
ishl
iload 5
bipush 127
iadd
iadd
istore 6
start local 6 20: iload 6
i2s
ireturn
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 21 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
0 21 1 aChar C
2 21 2 gv Ljava/awt/font/GlyphVector;
3 21 3 pixelBounds Ljava/awt/Rectangle;
4 21 4 lsb I
5 21 5 rsb I
7 10 6 aaHint Ljava/lang/Object;
12 15 6 aaHint Ljava/lang/Object;
20 21 6 bearing I
MethodParameters:
Name Flags
aChar
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof sun.swing.SwingUtilities2$BearingCacheEntry
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast sun.swing.SwingUtilities2$BearingCacheEntry
astore 2
start local 2 5: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
aload 2
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
invokevirtual java.awt.Font.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
aload 2
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
invokevirtual java.awt.font.FontRenderContext.equals:(Ljava/awt/font/FontRenderContext;)Z
ifeq 8
7: iconst_1
ireturn
StackMap locals: sun.swing.SwingUtilities2$BearingCacheEntry
StackMap stack:
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
0 9 1 entry Ljava/lang/Object;
5 9 2 oEntry Lsun/swing/SwingUtilities2$BearingCacheEntry;
MethodParameters:
Name Flags
entry
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: bipush 17
istore 1
start local 1 1: aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
ifnull 3
2: bipush 37
iload 1
imul
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.font:Ljava/awt/Font;
invokevirtual java.awt.Font.hashCode:()I
iadd
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
ifnull 5
4: bipush 37
iload 1
imul
aload 0
getfield sun.swing.SwingUtilities2$BearingCacheEntry.frc:Ljava/awt/font/FontRenderContext;
invokevirtual java.awt.font.FontRenderContext.hashCode:()I
iadd
istore 1
5: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/swing/SwingUtilities2$BearingCacheEntry;
1 6 1 result I
}
SourceFile: "SwingUtilities2.java"
NestHost: sun.swing.SwingUtilities2
InnerClasses:
private BearingCacheEntry = sun.swing.SwingUtilities2$BearingCacheEntry of sun.swing.SwingUtilities2