public final class jdk.internal.org.jline.utils.Signals
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.org.jline.utils.Signals
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/utils/Signals;
public static java.lang.Object register(java.lang.String, java.lang.Runnable);
descriptor: (Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic jdk.internal.org.jline.utils.Signals.register:(Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/ClassLoader;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
0 2 1 handler Ljava/lang/Runnable;
MethodParameters:
Name Flags
name
handler
public static java.lang.Object register(java.lang.String, java.lang.Runnable, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: ldc "sun.misc.SignalHandler"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 1: aload 2
2: iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 3
aastore
aload 1
aload 3
aload 0
invokedynamic invoke(Ljava/lang/Runnable;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/InvocationHandler;
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:
(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/org/jline/utils/Signals.lambda$0(Ljava/lang/Runnable;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object; (6)
(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
3: invokestatic java.lang.reflect.Proxy.newProxyInstance:(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
astore 4
start local 4 4: aload 0
aload 4
invokestatic jdk.internal.org.jline.utils.Signals.doRegister:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
5: areturn
end local 4 end local 3 6: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 7: iconst_3
anewarray java.lang.Object
dup
iconst_0
8: ldc "Error registering handler for signal "
aastore
dup
iconst_1
aload 0
aastore
dup
iconst_2
aload 3
aastore
invokestatic jdk.internal.org.jline.utils.Log.debug:([Ljava/lang/Object;)V
9: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
0 10 1 handler Ljava/lang/Runnable;
0 10 2 loader Ljava/lang/ClassLoader;
1 6 3 signalHandlerClass Ljava/lang/Class<*>;
4 6 4 signalHandler Ljava/lang/Object;
7 10 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
name
handler final
loader
public static java.lang.Object registerDefault(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: ldc "sun.misc.SignalHandler"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 1: aload 0
aload 1
ldc "SIG_DFL"
invokevirtual java.lang.Class.getField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.internal.org.jline.utils.Signals.doRegister:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
end local 1 3: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 4: iconst_3
anewarray java.lang.Object
dup
iconst_0
5: ldc "Error registering default handler for signal "
aastore
dup
iconst_1
aload 0
aastore
dup
iconst_2
aload 1
aastore
invokestatic jdk.internal.org.jline.utils.Log.debug:([Ljava/lang/Object;)V
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 name Ljava/lang/String;
1 3 1 signalHandlerClass Ljava/lang/Class<*>;
4 7 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
name
public static void unregister(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 6
1: aload 0
aload 1
invokestatic jdk.internal.org.jline.utils.Signals.doRegister:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
3: astore 2
start local 2 4: iconst_3
anewarray java.lang.Object
dup
iconst_0
5: ldc "Error unregistering handler for signal "
aastore
dup
iconst_1
aload 0
aastore
dup
iconst_2
aload 2
aastore
invokestatic jdk.internal.org.jline.utils.Log.debug:([Ljava/lang/Object;)V
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 name Ljava/lang/String;
0 7 1 previous Ljava/lang/Object;
4 6 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
name
previous
private static java.lang.Object doRegister(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic get(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/function/Supplier;
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:
()Ljava/lang/Object;
jdk/internal/org/jline/utils/Signals.lambda$2(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic jdk.internal.org.jline.utils.Log.trace:(Ljava/util/function/Supplier;)V
1: ldc "sun.misc.Signal"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 2: aload 2
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 3
start local 3 3: aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 4: goto 8
end local 4 StackMap locals: java.lang.String java.lang.Object java.lang.Class java.lang.reflect.Constructor
StackMap stack: java.lang.IllegalArgumentException
5: pop
6: aload 0
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
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:
()Ljava/lang/Object;
jdk/internal/org/jline/utils/Signals.lambda$3(Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic jdk.internal.org.jline.utils.Log.trace:(Ljava/util/function/Supplier;)V
7: aconst_null
areturn
start local 4 8: StackMap locals: java.lang.Object
StackMap stack:
ldc "sun.misc.SignalHandler"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 5
start local 5 9: aload 2
ldc "handle"
iconst_2
anewarray java.lang.Class
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 5
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
10: aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
11: areturn
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 12 0 name Ljava/lang/String;
0 12 1 handler Ljava/lang/Object;
2 12 2 signalClass Ljava/lang/Class<*>;
3 12 3 constructor Ljava/lang/reflect/Constructor<*>;
4 5 4 signal Ljava/lang/Object;
8 12 4 signal Ljava/lang/Object;
9 12 5 signalHandlerClass Ljava/lang/Class<*>;
Exception table:
from to target type
3 4 5 Class java.lang.IllegalArgumentException
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
name
handler
private static java.lang.String toString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "sun.misc.SignalHandler"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 1: aload 0
aload 1
ldc "SIG_DFL"
invokevirtual java.lang.Class.getField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
if_acmpne 3
2: ldc "SIG_DFL"
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 1
ldc "SIG_IGN"
invokevirtual java.lang.Class.getField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
if_acmpne 6
4: ldc "SIG_IGN"
areturn
end local 1 5: StackMap locals: java.lang.Object
StackMap stack: java.lang.Throwable
pop
6: StackMap locals:
StackMap stack:
aload 0
ifnull 7
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
goto 8
StackMap locals:
StackMap stack:
7: ldc "null"
StackMap locals:
StackMap stack: java.lang.String
8: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 handler Ljava/lang/Object;
1 5 1 signalHandlerClass Ljava/lang/Class<*>;
Exception table:
from to target type
0 2 5 Class java.lang.Throwable
3 4 5 Class java.lang.Throwable
MethodParameters:
Name Flags
handler
private static java.lang.Object lambda$0(java.lang.Runnable, java.lang.Class, java.lang.String, java.lang.Object, java.lang.reflect.Method, java.lang.Object[]);
descriptor: (Ljava/lang/Runnable;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=6, args_size=6
start local 3 start local 4 start local 5 0: aload 4
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
ldc Ljava/lang/Object;
if_acmpne 3
1: ldc "toString"
aload 4
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
2: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
aload 1
if_acmpne 6
4: aload 0
aload 2
invokedynamic get(Ljava/lang/Runnable;Ljava/lang/String;)Ljava/util/function/Supplier;
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:
()Ljava/lang/Object;
jdk/internal/org/jline/utils/Signals.lambda$1(Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic jdk.internal.org.jline.utils.Log.trace:(Ljava/util/function/Supplier;)V
5: aload 0
invokeinterface java.lang.Runnable.run:()V
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 5 end local 4 end local 3 LocalVariableTable:
Start End Slot Name Signature
0 7 3 proxy Ljava/lang/Object;
0 7 4 method Ljava/lang/reflect/Method;
0 7 5 args [Ljava/lang/Object;
Exceptions:
throws java.lang.Throwable
private static java.lang.String lambda$2(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.StringBuilder
dup
ldc "Registering signal "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " with handler "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokestatic jdk.internal.org.jline.utils.Signals.toString:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Ignoring unsupported signal "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1(java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.StringBuilder
dup
ldc "Calling handler "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokestatic jdk.internal.org.jline.utils.Signals.toString:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " for signal "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Signals.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles