public class javax.swing.text.LayoutQueue
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.LayoutQueue
super_class: java.lang.Object
{
private static final java.lang.Object DEFAULT_QUEUE;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.util.Vector<java.lang.Runnable> tasks;
descriptor: Ljava/util/Vector;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Vector<Ljava/lang/Runnable;>;
private java.lang.Thread worker;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield javax.swing.text.LayoutQueue.tasks:Ljava/util/Vector;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/LayoutQueue;
public static javax.swing.text.LayoutQueue getDefaultQueue();
descriptor: ()Ljavax/swing/text/LayoutQueue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=0
0: invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
astore 0
start local 0 1: getstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
invokevirtual sun.awt.AppContext.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.text.LayoutQueue
astore 2
start local 2 3: aload 2
ifnonnull 6
4: new javax.swing.text.LayoutQueue
dup
invokespecial javax.swing.text.LayoutQueue.<init>:()V
astore 2
5: aload 0
getstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
aload 2
invokevirtual sun.awt.AppContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: sun.awt.AppContext java.lang.Object javax.swing.text.LayoutQueue
StackMap stack:
aload 2
aload 1
monitorexit
7: areturn
end local 2 8: StackMap locals: sun.awt.AppContext java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
9: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 ac Lsun/awt/AppContext;
3 8 2 defaultQueue Ljavax/swing/text/LayoutQueue;
Exception table:
from to target type
2 7 8 any
8 9 8 any
public static void setDefaultQueue(javax.swing.text.LayoutQueue);
descriptor: (Ljavax/swing/text/LayoutQueue;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
dup
astore 1
monitorenter
1: invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
getstatic javax.swing.text.LayoutQueue.DEFAULT_QUEUE:Ljava/lang/Object;
aload 0
invokevirtual sun.awt.AppContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 1
monitorexit
3: goto 6
StackMap locals: javax.swing.text.LayoutQueue java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 q Ljavax/swing/text/LayoutQueue;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
q
public synchronized void addTask(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=9, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.LayoutQueue.worker:Ljava/lang/Thread;
ifnonnull 5
1: aload 0
invokedynamic run(Ljavax/swing/text/LayoutQueue;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
javax/swing/text/LayoutQueue.lambda$0()V (7)
()V
astore 2
start local 2 2: aload 0
new java.lang.Thread
dup
aconst_null
aload 2
ldc "text-layout"
lconst_0
iconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JZ)V
putfield javax.swing.text.LayoutQueue.worker:Ljava/lang/Thread;
3: aload 0
getfield javax.swing.text.LayoutQueue.worker:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setPriority:(I)V
4: aload 0
getfield javax.swing.text.LayoutQueue.worker:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.LayoutQueue.tasks:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
6: aload 0
invokevirtual java.lang.Object.notifyAll:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/text/LayoutQueue;
0 8 1 task Ljava/lang/Runnable;
2 5 2 workerRunnable Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
protected synchronized java.lang.Runnable waitForWork();
descriptor: ()Ljava/lang/Runnable;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 5
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.wait:()V
2: goto 5
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: pop
4: aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.LayoutQueue.tasks:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
ifeq 1
6: aload 0
getfield javax.swing.text.LayoutQueue.tasks:Ljava/util/Vector;
invokevirtual java.util.Vector.firstElement:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 1
start local 1 7: aload 0
getfield javax.swing.text.LayoutQueue.tasks:Ljava/util/Vector;
iconst_0
invokevirtual java.util.Vector.removeElementAt:(I)V
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/text/LayoutQueue;
7 9 1 work Ljava/lang/Runnable;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
private void lambda$0();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.text.LayoutQueue.waitForWork:()Ljava/lang/Runnable;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface java.lang.Runnable.run:()V
3: StackMap locals: java.lang.Runnable
StackMap stack:
aload 1
ifnonnull 0
end local 1 4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/LayoutQueue;
1 4 1 work Ljava/lang/Runnable;
}
SourceFile: "LayoutQueue.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles