class jdk.internal.jshell.tool.ScannerIOContext extends jdk.internal.jshell.tool.NonInteractiveIOContext
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.ScannerIOContext
super_class: jdk.internal.jshell.tool.NonInteractiveIOContext
{
private final java.util.Scanner scannerIn;
descriptor: Ljava/util/Scanner;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.util.Scanner);
descriptor: (Ljava/util/Scanner;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jdk.internal.jshell.tool.NonInteractiveIOContext.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.jshell.tool.ScannerIOContext.scannerIn:Ljava/util/Scanner;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/ScannerIOContext;
0 3 1 scannerIn Ljava/util/Scanner;
MethodParameters:
Name Flags
scannerIn
void <init>(java.io.Reader);
descriptor: (Ljava/io/Reader;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.util.Scanner
dup
aload 1
invokespecial java.util.Scanner.<init>:(Ljava/lang/Readable;)V
invokespecial jdk.internal.jshell.tool.ScannerIOContext.<init>:(Ljava/util/Scanner;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/ScannerIOContext;
0 2 1 rdr Ljava/io/Reader;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
rdr
public java.lang.String readLine(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.ScannerIOContext.scannerIn:Ljava/util/Scanner;
invokevirtual java.util.Scanner.hasNextLine:()Z
ifeq 2
1: aload 0
getfield jdk.internal.jshell.tool.ScannerIOContext.scannerIn:Ljava/util/Scanner;
invokevirtual java.util.Scanner.nextLine:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/ScannerIOContext;
0 3 1 prompt Ljava/lang/String;
0 3 2 prefix Ljava/lang/String;
MethodParameters:
Name Flags
prompt
prefix
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ScannerIOContext.scannerIn:Ljava/util/Scanner;
invokevirtual java.util.Scanner.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/ScannerIOContext;
public int readUserInput();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ScannerIOContext;
}
SourceFile: "JShellTool.java"