public class jdk.internal.jline.TerminalFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jline.TerminalFactory
super_class: java.lang.Object
{
public static final java.lang.String JLINE_TERMINAL;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jline.terminal"
public static final java.lang.String AUTO;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "auto"
public static final java.lang.String UNIX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "unix"
public static final java.lang.String WIN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "win"
public static final java.lang.String WINDOWS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "windows"
public static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "none"
public static final java.lang.String OFF;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "off"
public static final java.lang.String FALSE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "false"
private static jdk.internal.jline.Terminal term;
descriptor: Ljdk/internal/jline/Terminal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.util.Map<jdk.internal.jline.TerminalFactory$Flavor, java.util.concurrent.Callable<? extends jdk.internal.jline.Terminal>> FLAVORS;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable<+Ljdk/internal/jline/Terminal;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: aconst_null
putstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic jdk.internal.jline.TerminalFactory.FLAVORS:Ljava/util/Map;
2: getstatic jdk.internal.jline.TerminalFactory$Flavor.WINDOWS:Ljdk/internal/jline/TerminalFactory$Flavor;
invokedynamic call()Ljava/util/concurrent/Callable;
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/jline/WindowsTerminal.<init>()V (8)
()Ljdk/internal/jline/Terminal;
invokestatic jdk.internal.jline.TerminalFactory.registerFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable;)V
3: getstatic jdk.internal.jline.TerminalFactory$Flavor.UNIX:Ljdk/internal/jline/TerminalFactory$Flavor;
invokedynamic call()Ljava/util/concurrent/Callable;
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/jline/UnixTerminal.<init>()V (8)
()Ljdk/internal/jline/Terminal;
invokestatic jdk.internal.jline.TerminalFactory.registerFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable;)V
4: 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.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalFactory;
public static synchronized jdk.internal.jline.Terminal create();
descriptor: ()Ljdk/internal/jline/Terminal;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=5, args_size=0
0: getstatic jdk.internal.jline.internal.Log.TRACE:Z
ifeq 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
1: new java.lang.Throwable
dup
ldc "CREATE MARKER"
invokespecial java.lang.Throwable.<init>:(Ljava/lang/String;)V
aastore
invokestatic jdk.internal.jline.internal.Log.trace:([Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
ldc "jline.terminal"
ldc "auto"
invokestatic jdk.internal.jline.internal.Configuration.getString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 3: ldc "dumb"
ldc "TERM"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: ldc "none"
astore 0
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: ldc "$TERM=dumb; setting type="
aastore
dup
iconst_1
aload 0
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
StackMap locals: java.lang.String
StackMap stack:
6: iconst_2
anewarray java.lang.Object
dup
iconst_0
7: ldc "Creating terminal; type="
aastore
dup
iconst_1
aload 0
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
8: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 2
start local 2 9: aload 2
ldc "unix"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: getstatic jdk.internal.jline.TerminalFactory$Flavor.UNIX:Ljdk/internal/jline/TerminalFactory$Flavor;
invokestatic jdk.internal.jline.TerminalFactory.getFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;)Ljdk/internal/jline/Terminal;
astore 1
start local 1 11: goto 34
end local 1 12: StackMap locals: java.lang.String top java.lang.String
StackMap stack:
aload 2
ldc "win"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
aload 2
ldc "windows"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
ifeq 15
13: getstatic jdk.internal.jline.TerminalFactory$Flavor.WINDOWS:Ljdk/internal/jline/TerminalFactory$Flavor;
invokestatic jdk.internal.jline.TerminalFactory.getFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;)Ljdk/internal/jline/Terminal;
astore 1
start local 1 14: goto 34
end local 1 15: StackMap locals:
StackMap stack:
aload 2
ldc "none"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
aload 2
ldc "off"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
aload 2
ldc "false"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
16: StackMap locals:
StackMap stack:
new jdk.internal.jline.UnsupportedTerminal
dup
invokespecial jdk.internal.jline.UnsupportedTerminal.<init>:()V
astore 1
start local 1 17: goto 34
end local 1 18: StackMap locals:
StackMap stack:
aload 2
ldc "auto"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
19: invokestatic jdk.internal.jline.internal.Configuration.getOsName:()Ljava/lang/String;
astore 3
start local 3 20: getstatic jdk.internal.jline.TerminalFactory$Flavor.UNIX:Ljdk/internal/jline/TerminalFactory$Flavor;
astore 4
start local 4 21: aload 3
ldc "windows"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 23
22: getstatic jdk.internal.jline.TerminalFactory$Flavor.WINDOWS:Ljdk/internal/jline/TerminalFactory$Flavor;
astore 4
23: StackMap locals: java.lang.String jdk.internal.jline.TerminalFactory$Flavor
StackMap stack:
aload 4
invokestatic jdk.internal.jline.TerminalFactory.getFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;)Ljdk/internal/jline/Terminal;
astore 1
end local 4 end local 3 start local 1 24: goto 34
end local 1 25: StackMap locals:
StackMap stack:
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
astore 3
start local 3 26: aload 3
checkcast jdk.internal.jline.Terminal
astore 1
end local 3 start local 1 27: goto 34
end local 1 28: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 29: new java.lang.IllegalArgumentException
dup
ldc "Invalid terminal type: {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 3
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 30: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
astore 2
start local 2 31: iconst_2
anewarray java.lang.Object
dup
iconst_0
32: ldc "Failed to construct terminal; falling back to unsupported"
aastore
dup
iconst_1
aload 2
aastore
invokestatic jdk.internal.jline.internal.Log.error:([Ljava/lang/Object;)V
33: new jdk.internal.jline.UnsupportedTerminal
dup
invokespecial jdk.internal.jline.UnsupportedTerminal.<init>:()V
astore 1
end local 2 start local 1 StackMap locals: jdk.internal.jline.Terminal
StackMap stack:
34: iconst_2
anewarray java.lang.Object
dup
iconst_0
35: ldc "Created Terminal: "
aastore
dup
iconst_1
aload 1
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
36: aload 1
invokeinterface jdk.internal.jline.Terminal.init:()V
37: goto 42
38: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 39: iconst_2
anewarray java.lang.Object
dup
iconst_0
40: ldc "Terminal initialization failed; falling back to unsupported"
aastore
dup
iconst_1
aload 2
aastore
invokestatic jdk.internal.jline.internal.Log.error:([Ljava/lang/Object;)V
41: new jdk.internal.jline.UnsupportedTerminal
dup
invokespecial jdk.internal.jline.UnsupportedTerminal.<init>:()V
areturn
end local 2 42: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
3 43 0 type Ljava/lang/String;
11 12 1 t Ljdk/internal/jline/Terminal;
14 15 1 t Ljdk/internal/jline/Terminal;
17 18 1 t Ljdk/internal/jline/Terminal;
24 25 1 t Ljdk/internal/jline/Terminal;
27 28 1 t Ljdk/internal/jline/Terminal;
34 43 1 t Ljdk/internal/jline/Terminal;
9 30 2 tmp Ljava/lang/String;
20 24 3 os Ljava/lang/String;
21 24 4 flavor Ljdk/internal/jline/TerminalFactory$Flavor;
26 27 3 o Ljava/lang/Object;
29 30 3 e Ljava/lang/Exception;
31 34 2 e Ljava/lang/Exception;
39 42 2 e Ljava/lang/Throwable;
Exception table:
from to target type
25 27 28 Class java.lang.Exception
8 30 30 Class java.lang.Exception
36 37 38 Class java.lang.Throwable
public static synchronized void reset();
descriptor: ()V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static synchronized void resetIf(jdk.internal.jline.Terminal);
descriptor: (Ljdk/internal/jline/Terminal;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
if_acmpne 2
1: invokestatic jdk.internal.jline.TerminalFactory.reset:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 t Ljdk/internal/jline/Terminal;
MethodParameters:
Name Flags
t final
public static synchronized void configure(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.jline.internal.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "jline.terminal"
aload 0
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 type Ljava/lang/String;
MethodParameters:
Name Flags
type final
public static synchronized void configure(jdk.internal.jline.TerminalFactory$Type);
descriptor: (Ljdk/internal/jline/TerminalFactory$Type;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.jline.internal.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual jdk.internal.jline.TerminalFactory$Type.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokestatic jdk.internal.jline.TerminalFactory.configure:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 type Ljdk/internal/jline/TerminalFactory$Type;
MethodParameters:
Name Flags
type final
public static synchronized jdk.internal.jline.Terminal get();
descriptor: ()Ljdk/internal/jline/Terminal;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
ifnonnull 2
1: invokestatic jdk.internal.jline.TerminalFactory.create:()Ljdk/internal/jline/Terminal;
putstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.jline.TerminalFactory.term:Ljdk/internal/jline/Terminal;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static jdk.internal.jline.Terminal getFlavor(jdk.internal.jline.TerminalFactory$Flavor);
descriptor: (Ljdk/internal/jline/TerminalFactory$Flavor;)Ljdk/internal/jline/Terminal;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.jline.TerminalFactory.FLAVORS:Ljava/util/Map;
aload 0
invokedynamic call()Ljava/util/concurrent/Callable;
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/jline/TerminalFactory.lambda$2()Ljdk/internal/jline/Terminal; (6)
()Ljdk/internal/jline/Terminal;
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Callable
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
checkcast jdk.internal.jline.Terminal
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 flavor Ljdk/internal/jline/TerminalFactory$Flavor;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
flavor final
public static void registerFlavor(jdk.internal.jline.TerminalFactory$Flavor, java.util.concurrent.Callable<? extends jdk.internal.jline.Terminal>);
descriptor: (Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.jline.TerminalFactory.FLAVORS:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 flavor Ljdk/internal/jline/TerminalFactory$Flavor;
0 2 1 sup Ljava/util/concurrent/Callable<+Ljdk/internal/jline/Terminal;>;
Signature: (Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable<+Ljdk/internal/jline/Terminal;>;)V
MethodParameters:
Name Flags
flavor final
sup final
private static jdk.internal.jline.Terminal lambda$2();
descriptor: ()Ljdk/internal/jline/Terminal;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
SourceFile: "TerminalFactory.java"
NestMembers:
jdk.internal.jline.TerminalFactory$Flavor jdk.internal.jline.TerminalFactory$Type
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Flavor = jdk.internal.jline.TerminalFactory$Flavor of jdk.internal.jline.TerminalFactory
public final Type = jdk.internal.jline.TerminalFactory$Type of jdk.internal.jline.TerminalFactory