class jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter extends jdk.internal.org.jline.terminal.impl.AbstractWindowsConsoleWriter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter
super_class: jdk.internal.org.jline.terminal.impl.AbstractWindowsConsoleWriter
{
private final jdk.internal.org.jline.terminal.impl.jna.win.Pointer consoleHandle;
descriptor: Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.org.jline.terminal.impl.jna.win.IntByReference writtenChars;
descriptor: Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(jdk.internal.org.jline.terminal.impl.jna.win.Pointer);
descriptor: (Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 // jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter this
start local 1 // jdk.internal.org.jline.terminal.impl.jna.win.Pointer consoleHandle
0: .line 23
aload 0 /* this */
invokespecial jdk.internal.org.jline.terminal.impl.AbstractWindowsConsoleWriter.<init>:()V
1: .line 21
aload 0 /* this */
new jdk.internal.org.jline.terminal.impl.jna.win.IntByReference
dup
invokespecial jdk.internal.org.jline.terminal.impl.jna.win.IntByReference.<init>:()V
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.writtenChars:Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
2: .line 24
aload 0 /* this */
aload 1 /* consoleHandle */
putfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.consoleHandle:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
3: .line 25
return
end local 1 // jdk.internal.org.jline.terminal.impl.jna.win.Pointer consoleHandle
end local 0 // jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinConsoleWriter;
0 4 1 consoleHandle Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
MethodParameters:
Name Flags
consoleHandle
protected void writeConsole(char[], int);
descriptor: ([CI)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=3
start local 0 // jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter this
start local 1 // char[] text
start local 2 // int len
0: .line 30
getstatic jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.INSTANCE:Ljdk/internal/org/jline/terminal/impl/jna/win/Kernel32;
aload 0 /* this */
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.consoleHandle:Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;
aload 1 /* text */
iload 2 /* len */
aload 0 /* this */
getfield jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter.writtenChars:Ljdk/internal/org/jline/terminal/impl/jna/win/IntByReference;
aconst_null
invokeinterface jdk.internal.org.jline.terminal.impl.jna.win.Kernel32.WriteConsoleW:(Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;[CILjdk/internal/org/jline/terminal/impl/jna/win/IntByReference;Ljdk/internal/org/jline/terminal/impl/jna/win/Pointer;)V
1: .line 31
goto 4
StackMap locals:
StackMap stack: jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException
2: astore 3 /* e */
start local 3 // jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException e
3: .line 32
new java.io.IOException
dup
ldc "Failed to write to console"
aload 3 /* e */
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 // jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException e
4: .line 34
StackMap locals:
StackMap stack:
return
end local 2 // int len
end local 1 // char[] text
end local 0 // jdk.internal.org.jline.terminal.impl.jna.win.JnaWinConsoleWriter this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/terminal/impl/jna/win/JnaWinConsoleWriter;
0 5 1 text [C
0 5 2 len I
3 4 3 e Ljdk/internal/org/jline/terminal/impl/jna/win/LastErrorException;
Exception table:
from to target type
0 1 2 Class jdk.internal.org.jline.terminal.impl.jna.win.LastErrorException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
text
len
}
SourceFile: "JnaWinConsoleWriter.java"