public abstract class jdk.internal.jline.TerminalSupport implements jdk.internal.jline.Terminal
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.jline.TerminalSupport
super_class: java.lang.Object
{
public static final int DEFAULT_WIDTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 80
public static final int DEFAULT_HEIGHT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 24
private jdk.internal.jline.internal.ShutdownHooks$Task shutdownTask;
descriptor: Ljdk/internal/jline/internal/ShutdownHooks$Task;
flags: (0x0002) ACC_PRIVATE
private boolean supported;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean echoEnabled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean ansiSupported;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected void <init>(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield jdk.internal.jline.TerminalSupport.supported:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/TerminalSupport;
0 3 1 supported Z
MethodParameters:
Name Flags
supported final
public void init();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
ifnull 2
1: aload 0
getfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
invokestatic jdk.internal.jline.internal.ShutdownHooks.remove:(Ljdk/internal/jline/internal/ShutdownHooks$Task;)V
2: StackMap locals:
StackMap stack:
aload 0
new jdk.internal.jline.TerminalSupport$1
dup
aload 0
invokespecial jdk.internal.jline.TerminalSupport$1.<init>:(Ljdk/internal/jline/TerminalSupport;)V
invokestatic jdk.internal.jline.internal.ShutdownHooks.add:(Ljdk/internal/jline/internal/ShutdownHooks$Task;)Ljdk/internal/jline/internal/ShutdownHooks$Task;
putfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jline/TerminalSupport;
Exceptions:
throws java.lang.Exception
public void restore();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.jline.TerminalFactory.resetIf:(Ljdk/internal/jline/Terminal;)V
1: aload 0
getfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
ifnull 4
2: aload 0
getfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
invokestatic jdk.internal.jline.internal.ShutdownHooks.remove:(Ljdk/internal/jline/internal/ShutdownHooks$Task;)V
3: aload 0
aconst_null
putfield jdk.internal.jline.TerminalSupport.shutdownTask:Ljdk/internal/jline/internal/ShutdownHooks$Task;
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/TerminalSupport;
Exceptions:
throws java.lang.Exception
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jline.TerminalSupport.restore:()V
1: aload 0
invokevirtual jdk.internal.jline.TerminalSupport.init:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/TerminalSupport;
Exceptions:
throws java.lang.Exception
public final boolean isSupported();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.TerminalSupport.supported:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
public synchronized boolean isAnsiSupported();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.TerminalSupport.ansiSupported:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
protected synchronized void setAnsiSupported(boolean);
descriptor: (Z)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.jline.TerminalSupport.ansiSupported:Z
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: ldc "Ansi supported: "
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/TerminalSupport;
0 3 1 supported Z
MethodParameters:
Name Flags
supported final
public java.io.OutputStream wrapOutIfNeeded(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
0 1 1 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
out
public boolean hasWeirdWrap();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
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 Ljdk/internal/jline/TerminalSupport;
public int getWidth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 80
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
public int getHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 24
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
public synchronized boolean isEchoEnabled();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.TerminalSupport.echoEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
public synchronized void setEchoEnabled(boolean);
descriptor: (Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.jline.TerminalSupport.echoEnabled:Z
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: ldc "Echo enabled: "
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic jdk.internal.jline.internal.Log.debug:([Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/TerminalSupport;
0 3 1 enabled Z
MethodParameters:
Name Flags
enabled final
public java.io.InputStream wrapInIfNeeded(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
0 1 1 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public java.lang.String getOutputEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/TerminalSupport;
}
SourceFile: "TerminalSupport.java"
NestMembers:
jdk.internal.jline.TerminalSupport$1
InnerClasses:
jdk.internal.jline.TerminalSupport$1
public abstract Task = jdk.internal.jline.internal.ShutdownHooks$Task of jdk.internal.jline.internal.ShutdownHooks