public class java.awt.Canvas extends java.awt.Component implements javax.accessibility.Accessible
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.awt.Canvas
super_class: java.awt.Component
{
private static final java.lang.String base;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "canvas"
private static int nameCounter;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2284879212465893870
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic java.awt.Canvas.nameCounter:I
1: return
LocalVariableTable:
Start End Slot Name Signature
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.awt.Component.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Canvas;
public void <init>(java.awt.GraphicsConfiguration);
descriptor: (Ljava/awt/GraphicsConfiguration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.awt.Canvas.<init>:()V
1: aload 0
aload 1
invokevirtual java.awt.Canvas.setGraphicsConfiguration:(Ljava/awt/GraphicsConfiguration;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Canvas;
0 3 1 config Ljava/awt/GraphicsConfiguration;
MethodParameters:
Name Flags
config
void setGraphicsConfiguration(java.awt.GraphicsConfiguration);
descriptor: (Ljava/awt/GraphicsConfiguration;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Canvas.getTreeLock:()Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield java.awt.Canvas.peer:Ljava/awt/peer/ComponentPeer;
checkcast java.awt.peer.CanvasPeer
astore 3
start local 3 2: aload 3
ifnull 4
3: aload 3
aload 1
invokeinterface java.awt.peer.CanvasPeer.getAppropriateGraphicsConfiguration:(Ljava/awt/GraphicsConfiguration;)Ljava/awt/GraphicsConfiguration;
astore 1
4: StackMap locals: java.lang.Object java.awt.peer.CanvasPeer
StackMap stack:
aload 0
aload 1
invokespecial java.awt.Component.setGraphicsConfiguration:(Ljava/awt/GraphicsConfiguration;)V
end local 3 5: aload 2
monitorexit
6: goto 9
StackMap locals: java.awt.Canvas java.awt.GraphicsConfiguration java.lang.Object
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/awt/Canvas;
0 10 1 gc Ljava/awt/GraphicsConfiguration;
2 5 3 peer Ljava/awt/peer/CanvasPeer;
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
gc
java.lang.String constructComponentName();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: ldc Ljava/awt/Canvas;
dup
astore 1
monitorenter
1: new java.lang.StringBuilder
dup
ldc "canvas"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.awt.Canvas.nameCounter:I
dup
iconst_1
iadd
putstatic java.awt.Canvas.nameCounter:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
monitorexit
2: areturn
3: StackMap locals: java.awt.Canvas java.lang.Class
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/awt/Canvas;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public void addNotify();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Canvas.getTreeLock:()Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield java.awt.Canvas.peer:Ljava/awt/peer/ComponentPeer;
ifnonnull 3
2: aload 0
aload 0
invokevirtual java.awt.Canvas.getComponentFactory:()Lsun/awt/ComponentFactory;
aload 0
invokeinterface sun.awt.ComponentFactory.createCanvas:(Ljava/awt/Canvas;)Ljava/awt/peer/CanvasPeer;
putfield java.awt.Canvas.peer:Ljava/awt/peer/ComponentPeer;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokespecial java.awt.Component.addNotify:()V
4: aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/awt/Canvas;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
iconst_0
aload 0
getfield java.awt.Canvas.width:I
aload 0
getfield java.awt.Canvas.height:I
invokevirtual java.awt.Graphics.clearRect:(IIII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Canvas;
0 2 1 g Ljava/awt/Graphics;
MethodParameters:
Name Flags
g
public void update(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
iconst_0
aload 0
getfield java.awt.Canvas.width:I
aload 0
getfield java.awt.Canvas.height:I
invokevirtual java.awt.Graphics.clearRect:(IIII)V
1: aload 0
aload 1
invokevirtual java.awt.Canvas.paint:(Ljava/awt/Graphics;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Canvas;
0 3 1 g Ljava/awt/Graphics;
MethodParameters:
Name Flags
g
boolean postsOldMouseEvents();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/Canvas;
public void createBufferStrategy(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial java.awt.Component.createBufferStrategy:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Canvas;
0 2 1 numBuffers I
MethodParameters:
Name Flags
numBuffers
public void createBufferStrategy(int, java.awt.BufferCapabilities);
descriptor: (ILjava/awt/BufferCapabilities;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
invokespecial java.awt.Component.createBufferStrategy:(ILjava/awt/BufferCapabilities;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Canvas;
0 2 1 numBuffers I
0 2 2 caps Ljava/awt/BufferCapabilities;
Exceptions:
throws java.awt.AWTException
MethodParameters:
Name Flags
numBuffers
caps
public java.awt.image.BufferStrategy getBufferStrategy();
descriptor: ()Ljava/awt/image/BufferStrategy;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.awt.Component.getBufferStrategy:()Ljava/awt/image/BufferStrategy;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/Canvas;
public javax.accessibility.AccessibleContext getAccessibleContext();
descriptor: ()Ljavax/accessibility/AccessibleContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.Canvas.accessibleContext:Ljavax/accessibility/AccessibleContext;
ifnonnull 2
1: aload 0
new java.awt.Canvas$AccessibleAWTCanvas
dup
aload 0
invokespecial java.awt.Canvas$AccessibleAWTCanvas.<init>:(Ljava/awt/Canvas;)V
putfield java.awt.Canvas.accessibleContext:Ljavax/accessibility/AccessibleContext;
2: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.Canvas.accessibleContext:Ljavax/accessibility/AccessibleContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Canvas;
}
SourceFile: "Canvas.java"
NestMembers:
java.awt.Canvas$AccessibleAWTCanvas
InnerClasses:
protected AccessibleAWTCanvas = java.awt.Canvas$AccessibleAWTCanvas of java.awt.Canvas