public final class com.sun.glass.ui.EventLoop
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.glass.ui.EventLoop
super_class: java.lang.Object
{
private static final java.util.Deque<com.sun.glass.ui.EventLoop> stack;
descriptor: Ljava/util/Deque;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Deque<Lcom/sun/glass/ui/EventLoop;>;
private com.sun.glass.ui.EventLoop$State state;
descriptor: Lcom/sun/glass/ui/EventLoop$State;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object returnValue;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
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=2, locals=0, args_size=0
0: ldc Lcom/sun/glass/ui/EventLoop;
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 com.sun.glass.ui.EventLoop.$assertionsDisabled:Z
3: new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic com.sun.glass.ui.EventLoop$State.IDLE:Lcom/sun/glass/ui/EventLoop$State;
putfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
2: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/EventLoop;
public com.sun.glass.ui.EventLoop$State getState();
descriptor: ()Lcom/sun/glass/ui/EventLoop$State;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/EventLoop;
public java.lang.Object enter();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.IDLE:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "The event loop object isn't idle"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getstatic com.sun.glass.ui.EventLoop$State.ACTIVE:Lcom/sun/glass/ui/EventLoop$State;
putfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
4: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
aload 0
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
5: invokestatic com.sun.glass.ui.Application.enterNestedEventLoop:()Ljava/lang/Object;
astore 1
start local 1 6: getstatic com.sun.glass.ui.EventLoop.$assertionsDisabled:Z
ifne 7
aload 1
aload 0
if_acmpeq 7
new java.lang.AssertionError
dup
ldc "Internal inconsistency - wrong EventLoop"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
getstatic com.sun.glass.ui.EventLoop.$assertionsDisabled:Z
ifne 8
getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
aload 0
if_acmpeq 8
new java.lang.AssertionError
dup
ldc "Internal inconsistency - corrupted event loops stack"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic com.sun.glass.ui.EventLoop.$assertionsDisabled:Z
ifne 9
aload 0
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.LEAVING:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifne 9
new java.lang.AssertionError
dup
ldc "The event loop isn't leaving"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.EventLoop.returnValue:Ljava/lang/Object;
astore 3
10: aload 0
aconst_null
putfield com.sun.glass.ui.EventLoop.returnValue:Ljava/lang/Object;
11: aload 0
getstatic com.sun.glass.ui.EventLoop$State.IDLE:Lcom/sun/glass/ui/EventLoop$State;
putfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
12: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
13: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 15
getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast com.sun.glass.ui.EventLoop
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.LEAVING:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifeq 15
14: invokedynamic run()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
com/sun/glass/ui/EventLoop.lambda$0()V (6)
()V
invokestatic com.sun.glass.ui.Application.invokeLater:(Ljava/lang/Runnable;)V
15: StackMap locals: com.sun.glass.ui.EventLoop java.lang.Object top java.lang.Object
StackMap stack:
aload 3
areturn
end local 1 16: StackMap locals: com.sun.glass.ui.EventLoop
StackMap stack: java.lang.Throwable
astore 2
17: aload 0
aconst_null
putfield com.sun.glass.ui.EventLoop.returnValue:Ljava/lang/Object;
18: aload 0
getstatic com.sun.glass.ui.EventLoop$State.IDLE:Lcom/sun/glass/ui/EventLoop$State;
putfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
19: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
20: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 22
getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast com.sun.glass.ui.EventLoop
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.LEAVING:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifeq 22
21: invokedynamic run()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
com/sun/glass/ui/EventLoop.lambda$0()V (6)
()V
invokestatic com.sun.glass.ui.Application.invokeLater:(Ljava/lang/Runnable;)V
22: StackMap locals: com.sun.glass.ui.EventLoop top java.lang.Throwable
StackMap stack:
aload 2
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/glass/ui/EventLoop;
6 16 1 ret Ljava/lang/Object;
Exception table:
from to target type
5 10 16 any
public void leave(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.ACTIVE:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifne 3
2: new java.lang.IllegalStateException
dup
ldc "The event loop object isn't active"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getstatic com.sun.glass.ui.EventLoop$State.LEAVING:Lcom/sun/glass/ui/EventLoop$State;
putfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
4: aload 0
aload 1
putfield com.sun.glass.ui.EventLoop.returnValue:Ljava/lang/Object;
5: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
aload 0
if_acmpne 7
6: aload 0
invokestatic com.sun.glass.ui.Application.leaveNestedEventLoop:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/glass/ui/EventLoop;
0 8 1 ret Ljava/lang/Object;
MethodParameters:
Name Flags
ret
private static void lambda$0();
descriptor: ()V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=0
0: getstatic com.sun.glass.ui.EventLoop.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast com.sun.glass.ui.EventLoop
astore 0
start local 0 1: aload 0
ifnull 3
aload 0
getfield com.sun.glass.ui.EventLoop.state:Lcom/sun/glass/ui/EventLoop$State;
getstatic com.sun.glass.ui.EventLoop$State.LEAVING:Lcom/sun/glass/ui/EventLoop$State;
invokevirtual com.sun.glass.ui.EventLoop$State.equals:(Ljava/lang/Object;)Z
ifeq 3
2: aload 0
invokestatic com.sun.glass.ui.Application.leaveNestedEventLoop:(Ljava/lang/Object;)V
end local 0 3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 loop Lcom/sun/glass/ui/EventLoop;
}
SourceFile: "EventLoop.java"
NestMembers:
com.sun.glass.ui.EventLoop$State
InnerClasses:
public final State = com.sun.glass.ui.EventLoop$State of com.sun.glass.ui.EventLoop
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles