class jdk.internal.jshell.tool.Startup
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.Startup
super_class: java.lang.Object
{
private static final java.lang.String DEFAULT_STARTUP_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "DEFAULT"
private static jdk.internal.jshell.tool.Startup defaultStartup;
descriptor: Ljdk/internal/jshell/tool/Startup;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.util.List<jdk.internal.jshell.tool.Startup$StartupEntry> entries;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljdk/internal/jshell/tool/Startup$StartupEntry;>;
private java.lang.String content;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic jdk.internal.jshell.tool.Startup.defaultStartup:Ljdk/internal/jshell/tool/Startup;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.util.List<jdk.internal.jshell.tool.Startup$StartupEntry>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
2: aload 0
aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
3: invokedynamic apply()Ljava/util/function/Function;
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/Object;
jdk/internal/jshell/tool/Startup.lambda$0(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: invokestatic java.util.stream.Collectors.joining:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
5: putfield jdk.internal.jshell.tool.Startup.content:Ljava/lang/String;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/Startup;
0 7 1 entries Ljava/util/List<Ljdk/internal/jshell/tool/Startup$StartupEntry;>;
Signature: (Ljava/util/List<Ljdk/internal/jshell/tool/Startup$StartupEntry;>;)V
MethodParameters:
Name Flags
entries
private void <init>(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/Startup;
0 2 1 entry Ljdk/internal/jshell/tool/Startup$StartupEntry;
MethodParameters:
Name Flags
entry
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.Startup.content:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/Startup;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 9
aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokestatic java.util.Objects.hashCode:(Ljava/lang/Object;)I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/Startup;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.internal.jshell.tool.Startup
ifeq 3
1: aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
aload 1
checkcast jdk.internal.jshell.tool.Startup
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/Startup;
0 4 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
boolean isEmpty();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/Startup;
boolean isDefault();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 4
1: aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.Startup$StartupEntry
astore 1
start local 1 2: aload 1
getfield jdk.internal.jshell.tool.Startup$StartupEntry.isBuiltIn:Z
ifeq 4
aload 1
getfield jdk.internal.jshell.tool.Startup$StartupEntry.name:Ljava/lang/String;
ldc "DEFAULT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/Startup;
2 4 1 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
java.lang.String storedForm();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: invokedynamic apply()Ljava/util/function/Function;
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/Object;
jdk/internal/jshell/tool/Startup.lambda$1(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: invokestatic java.util.stream.Collectors.joining:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/Startup;
java.lang.String show(boolean);
descriptor: (Z)Ljava/lang/String;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "/set start "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
ifeq 1
ldc "-retain "
goto 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: ldc ""
StackMap locals: jdk.internal.jshell.tool.Startup int
StackMap stack: java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 3: aload 0
invokevirtual jdk.internal.jshell.tool.Startup.isDefault:()Z
ifeq 5
4: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-default\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokevirtual jdk.internal.jshell.tool.Startup.isEmpty:()Z
ifeq 7
6: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-none\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
8: invokedynamic apply()Ljava/util/function/Function;
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/Object;
jdk/internal/jshell/tool/Startup.lambda$2(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
9: ldc " "
aload 2
ldc "\n"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
10: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/jshell/tool/Startup;
0 11 1 isRetained Z
3 11 2 cmd Ljava/lang/String;
MethodParameters:
Name Flags
isRetained
java.lang.String showDetail();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.Startup.isDefault:()Z
ifne 1
aload 0
invokevirtual jdk.internal.jshell.tool.Startup.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.Startup.entries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
3: invokedynamic apply()Ljava/util/function/Function;
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/Object;
jdk/internal/jshell/tool/Startup.lambda$3(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: invokestatic java.util.stream.Collectors.joining:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
5: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/Startup;
static jdk.internal.jshell.tool.Startup unpack(java.lang.String, jdk.internal.jshell.tool.MessageHandler);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=11, args_size=2
start local 0 start local 1 0: aload 0
ifnull 34
1: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: invokestatic jdk.internal.jshell.tool.Startup.noStartup:()Ljdk/internal/jshell/tool/Startup;
areturn
3: StackMap locals:
StackMap stack:
aload 0
ldc "\u241E"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 4: aload 2
arraylength
iconst_1
if_icmpne 7
5: new jdk.internal.jshell.tool.Startup
dup
new jdk.internal.jshell.tool.Startup$StartupEntry
dup
iconst_0
ldc "user.jsh"
aload 0
invokespecial jdk.internal.jshell.tool.Startup$StartupEntry.<init>:(ZLjava/lang/String;Ljava/lang/String;)V
invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljdk/internal/jshell/tool/Startup$StartupEntry;)V
6: areturn
7: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
arraylength
iconst_4
irem
ifne 31
8: new java.util.ArrayList
dup
aload 2
arraylength
iconst_4
idiv
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 9: iconst_0
istore 4
start local 4 10: goto 28
11: StackMap locals: java.util.List int
StackMap stack:
aload 2
iload 4
aaload
dup
astore 6
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
42: 12
45: 13
default: 18
}
StackMap locals: java.lang.String jdk.internal.jshell.tool.MessageHandler java.lang.String[] java.util.List int top java.lang.String
StackMap stack:
12: aload 6
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 14
goto 18
StackMap locals:
StackMap stack:
13: aload 6
ldc "-"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
goto 18
14: StackMap locals:
StackMap stack:
iconst_1
istore 5
start local 5 15: goto 19
end local 5 16: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 17: goto 19
end local 5 18: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected StartupEntry kind: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 4
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 5 19: StackMap locals: java.lang.String jdk.internal.jshell.tool.MessageHandler java.lang.String[] java.util.List int int
StackMap stack:
aload 2
iload 4
iconst_1
iadd
aaload
astore 7
start local 7 20: aload 2
iload 4
iconst_2
iadd
aaload
astore 8
start local 8 21: aload 2
iload 4
iconst_3
iadd
aaload
astore 9
start local 9 22: iload 5
ifeq 26
23: aload 7
invokestatic jdk.internal.jshell.tool.JShellTool.getResource:(Ljava/lang/String;)Ljava/lang/String;
astore 10
start local 10 24: aload 10
ifnull 26
25: aload 10
astore 9
end local 10 26: StackMap locals: java.lang.String jdk.internal.jshell.tool.MessageHandler java.lang.String[] java.util.List int int top java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 3
new jdk.internal.jshell.tool.Startup$StartupEntry
dup
iload 5
aload 7
aload 9
aload 8
invokespecial jdk.internal.jshell.tool.Startup$StartupEntry.<init>:(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 end local 7 end local 5 27: iinc 4 4
StackMap locals: java.lang.String jdk.internal.jshell.tool.MessageHandler java.lang.String[] java.util.List int
StackMap stack:
28: iload 4
aload 2
arraylength
if_icmplt 11
end local 4 29: new jdk.internal.jshell.tool.Startup
dup
aload 3
invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljava/util/List;)V
30: areturn
end local 3 31: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected StartupEntry entry count: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 32: StackMap locals: java.lang.String jdk.internal.jshell.tool.MessageHandler
StackMap stack: java.lang.Exception
astore 2
start local 2 33: aload 1
ldc "jshell.err.corrupted.stored.startup"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 2 34: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.internal.jshell.tool.Startup.defaultStartup:(Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 storedForm Ljava/lang/String;
0 35 1 mh Ljdk/internal/jshell/tool/MessageHandler;
4 32 2 all [Ljava/lang/String;
9 31 3 e Ljava/util/List<Ljdk/internal/jshell/tool/Startup$StartupEntry;>;
10 29 4 i I
15 16 5 isBuiltIn Z
17 18 5 isBuiltIn Z
19 27 5 isBuiltIn Z
20 27 7 name Ljava/lang/String;
21 27 8 timeStamp Ljava/lang/String;
22 27 9 content Ljava/lang/String;
24 26 10 resource Ljava/lang/String;
33 34 2 ex Ljava/lang/Exception;
Exception table:
from to target type
3 6 32 Class java.lang.Exception
7 30 32 Class java.lang.Exception
31 32 32 Class java.lang.Exception
MethodParameters:
Name Flags
storedForm
mh
static jdk.internal.jshell.tool.Startup fromFileList(java.util.List<java.lang.String>, java.lang.String, jdk.internal.jshell.tool.MessageHandler);
descriptor: (Ljava/util/List;Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: aload 1
aload 2
invokedynamic apply(Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljava/util/function/Function;
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/Object;
jdk/internal/jshell/tool/Startup.lambda$4(Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;Ljava/lang/String;)Ljdk/internal/jshell/tool/Startup$StartupEntry; (6)
(Ljava/lang/String;)Ljdk/internal/jshell/tool/Startup$StartupEntry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
3: astore 3
start local 3 4: aload 3
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
jdk/internal/jshell/tool/Startup.lambda$5(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Z (6)
(Ljdk/internal/jshell/tool/Startup$StartupEntry;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
ifeq 6
5: aconst_null
areturn
6: StackMap locals: java.util.List
StackMap stack:
new jdk.internal.jshell.tool.Startup
dup
aload 3
invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljava/util/List;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fns Ljava/util/List<Ljava/lang/String;>;
0 7 1 context Ljava/lang/String;
0 7 2 mh Ljdk/internal/jshell/tool/MessageHandler;
4 7 3 entries Ljava/util/List<Ljdk/internal/jshell/tool/Startup$StartupEntry;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
MethodParameters:
Name Flags
fns
context
mh
private static jdk.internal.jshell.tool.Startup$StartupEntry readFile(java.lang.String, java.lang.String, jdk.internal.jshell.tool.MessageHandler);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup$StartupEntry;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 18
1: aload 0
invokestatic jdk.internal.jshell.tool.JShellTool.toPathResolvingUserHome:(Ljava/lang/String;)Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
astore 3
start local 3 2: new jdk.internal.jshell.tool.Startup$StartupEntry
dup
iconst_0
aload 0
new java.lang.String
dup
aload 3
invokespecial java.lang.String.<init>:([B)V
3: invokestatic java.time.LocalDateTime.now:()Ljava/time/LocalDateTime;
getstatic java.time.format.FormatStyle.MEDIUM:Ljava/time/format/FormatStyle;
invokestatic java.time.format.DateTimeFormatter.ofLocalizedDateTime:(Ljava/time/format/FormatStyle;)Ljava/time/format/DateTimeFormatter;
invokevirtual java.time.LocalDateTime.format:(Ljava/time/format/DateTimeFormatter;)Ljava/lang/String;
4: invokespecial jdk.internal.jshell.tool.Startup$StartupEntry.<init>:(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
5: areturn
end local 3 6: StackMap locals:
StackMap stack: java.nio.file.AccessDeniedException
astore 3
start local 3 7: aload 2
ldc "jshell.err.file.not.accessible"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
aastore
dup
iconst_2
aload 3
invokevirtual java.nio.file.AccessDeniedException.getMessage:()Ljava/lang/String;
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 8: goto 19
9: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
pop
10: aload 0
invokestatic jdk.internal.jshell.tool.JShellTool.getResource:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 11: aload 3
ifnull 13
12: new jdk.internal.jshell.tool.Startup$StartupEntry
dup
iconst_1
aload 0
aload 3
invokespecial jdk.internal.jshell.tool.Startup$StartupEntry.<init>:(ZLjava/lang/String;Ljava/lang/String;)V
areturn
13: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "jshell.err.file.not.found"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 14: goto 19
15: StackMap locals: java.lang.String java.lang.String jdk.internal.jshell.tool.MessageHandler
StackMap stack: java.lang.Exception
astore 3
start local 3 16: aload 2
ldc "jshell.err.file.exception"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
aastore
dup
iconst_2
aload 3
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 17: goto 19
18: StackMap locals:
StackMap stack:
aload 2
ldc "jshell.err.file.filename"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 filename Ljava/lang/String;
0 20 1 context Ljava/lang/String;
0 20 2 mh Ljdk/internal/jshell/tool/MessageHandler;
2 6 3 encoded [B
7 8 3 e Ljava/nio/file/AccessDeniedException;
11 14 3 resource Ljava/lang/String;
16 17 3 e Ljava/lang/Exception;
Exception table:
from to target type
1 5 6 Class java.nio.file.AccessDeniedException
1 5 9 Class java.nio.file.NoSuchFileException
1 5 15 Class java.lang.Exception
MethodParameters:
Name Flags
filename
context
mh
static jdk.internal.jshell.tool.Startup noStartup();
descriptor: ()Ljdk/internal/jshell/tool/Startup;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new jdk.internal.jshell.tool.Startup
dup
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljava/util/List;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
static jdk.internal.jshell.tool.Startup defaultStartup(jdk.internal.jshell.tool.MessageHandler);
descriptor: (Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: getstatic jdk.internal.jshell.tool.Startup.defaultStartup:Ljdk/internal/jshell/tool/Startup;
ifnull 2
1: getstatic jdk.internal.jshell.tool.Startup.defaultStartup:Ljdk/internal/jshell/tool/Startup;
areturn
2: StackMap locals:
StackMap stack:
ldc "DEFAULT"
invokestatic jdk.internal.jshell.tool.JShellTool.readResource:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 3: new jdk.internal.jshell.tool.Startup
dup
4: new jdk.internal.jshell.tool.Startup$StartupEntry
dup
iconst_1
ldc "DEFAULT"
aload 1
invokespecial jdk.internal.jshell.tool.Startup$StartupEntry.<init>:(ZLjava/lang/String;Ljava/lang/String;)V
5: invokespecial jdk.internal.jshell.tool.Startup.<init>:(Ljdk/internal/jshell/tool/Startup$StartupEntry;)V
dup
putstatic jdk.internal.jshell.tool.Startup.defaultStartup:Ljdk/internal/jshell/tool/Startup;
6: areturn
end local 1 7: StackMap locals:
StackMap stack: java.nio.file.AccessDeniedException
astore 1
start local 1 8: aload 0
ldc "jshell.err.file.not.accessible"
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "jshell"
aastore
dup
iconst_1
ldc "DEFAULT"
aastore
dup
iconst_2
aload 1
invokevirtual java.nio.file.AccessDeniedException.getMessage:()Ljava/lang/String;
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 9: goto 14
10: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
pop
11: aload 0
ldc "jshell.err.file.not.found"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "jshell"
aastore
dup
iconst_1
ldc "DEFAULT"
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
goto 14
12: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 13: aload 0
ldc "jshell.err.file.exception"
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "jshell"
aastore
dup
iconst_1
ldc "DEFAULT"
aastore
dup
iconst_2
aload 1
aastore
invokeinterface jdk.internal.jshell.tool.MessageHandler.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 14: StackMap locals:
StackMap stack:
invokestatic jdk.internal.jshell.tool.Startup.noStartup:()Ljdk/internal/jshell/tool/Startup;
dup
putstatic jdk.internal.jshell.tool.Startup.defaultStartup:Ljdk/internal/jshell/tool/Startup;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 mh Ljdk/internal/jshell/tool/MessageHandler;
3 7 1 content Ljava/lang/String;
8 9 1 e Ljava/nio/file/AccessDeniedException;
13 14 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 6 7 Class java.nio.file.AccessDeniedException
2 6 10 Class java.nio.file.NoSuchFileException
2 6 12 Class java.lang.Exception
MethodParameters:
Name Flags
mh
private static java.lang.String lambda$0(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.Startup$StartupEntry.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
private static java.lang.String lambda$1(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.Startup$StartupEntry.storedForm:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
private static java.lang.String lambda$2(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.Startup$StartupEntry.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
private static java.lang.String lambda$3(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "---- "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.jshell.tool.Startup$StartupEntry.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: aload 0
getfield jdk.internal.jshell.tool.Startup$StartupEntry.timeStamp:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: ldc ""
goto 4
3: StackMap locals:
StackMap stack: java.lang.StringBuilder
new java.lang.StringBuilder
dup
ldc " @ "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.jshell.tool.Startup$StartupEntry.timeStamp:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: StackMap locals: jdk.internal.jshell.tool.Startup$StartupEntry
StackMap stack: java.lang.StringBuilder java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc " ----\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jshell.tool.Startup$StartupEntry.content:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
private static jdk.internal.jshell.tool.Startup$StartupEntry lambda$4(java.lang.String, jdk.internal.jshell.tool.MessageHandler, java.lang.String);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;Ljava/lang/String;)Ljdk/internal/jshell/tool/Startup$StartupEntry;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 2
aload 0
aload 1
invokestatic jdk.internal.jshell.tool.Startup.readFile:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup$StartupEntry;
areturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 fn Ljava/lang/String;
private static boolean lambda$5(jdk.internal.jshell.tool.Startup$StartupEntry);
descriptor: (Ljdk/internal/jshell/tool/Startup$StartupEntry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 sue Ljdk/internal/jshell/tool/Startup$StartupEntry;
}
SourceFile: "Startup.java"
NestMembers:
jdk.internal.jshell.tool.Startup$StartupEntry
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private StartupEntry = jdk.internal.jshell.tool.Startup$StartupEntry of jdk.internal.jshell.tool.Startup