final class jdk.jshell.SnippetMaps
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jshell.SnippetMaps
super_class: java.lang.Object
{
private final java.util.List<jdk.jshell.Snippet> keyIndexToSnippet;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/jshell/Snippet;>;
private final java.util.Set<jdk.jshell.Snippet> snippets;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljdk/jshell/Snippet;>;
private final java.util.Map<java.lang.String, java.util.Set<java.lang.Integer>> dependencies;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/Set<Ljava/lang/Integer;>;>;
private final jdk.jshell.JShell state;
descriptor: Ljdk/jshell/JShell;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(jdk.jshell.JShell);
descriptor: (Ljdk/jshell/JShell;)V
flags: (0x0000)
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
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
2: aload 0
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield jdk.jshell.SnippetMaps.snippets:Ljava/util/Set;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.jshell.SnippetMaps.dependencies:Ljava/util/Map;
4: aload 0
aload 1
putfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/SnippetMaps;
0 6 1 proc Ljdk/jshell/JShell;
MethodParameters:
Name Flags
proc
void installSnippet(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
aload 0
getfield jdk.jshell.SnippetMaps.snippets:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifeq 7
1: aload 1
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
ifnull 7
2: aload 1
aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.idGenerator:Ljava/util/function/BiFunction;
ifnull 4
3: aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.idGenerator:Ljava/util/function/BiFunction;
aload 1
aload 1
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
invokevirtual jdk.jshell.Key.index:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
goto 5
4: StackMap locals:
StackMap stack: jdk.jshell.Snippet
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
invokevirtual jdk.jshell.Key.index:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: StackMap locals: jdk.jshell.SnippetMaps jdk.jshell.Snippet
StackMap stack: jdk.jshell.Snippet java.lang.String
invokevirtual jdk.jshell.Snippet.setId:(Ljava/lang/String;)V
6: aload 0
aload 1
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
invokevirtual jdk.jshell.Key.index:()I
aload 1
invokevirtual jdk.jshell.SnippetMaps.setSnippet:(ILjdk/jshell/Snippet;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/SnippetMaps;
0 8 1 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
sn
private void setSnippet(int, jdk.jshell.Snippet);
descriptor: (ILjdk/jshell/Snippet;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: goto 2
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 1
3: aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
iload 1
aload 2
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/SnippetMaps;
0 5 1 ki I
0 5 2 snip Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
ki
snip
jdk.jshell.Snippet getSnippet(jdk.jshell.Key);
descriptor: (Ljdk/jshell/Key;)Ljdk/jshell/Snippet;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.Key.index:()I
invokevirtual jdk.jshell.SnippetMaps.getSnippet:(I)Ljdk/jshell/Snippet;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/SnippetMaps;
0 1 1 key Ljdk/jshell/Key;
MethodParameters:
Name Flags
key
jdk.jshell.Snippet getSnippet(int);
descriptor: (I)Ljdk/jshell/Snippet;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual jdk.jshell.SnippetMaps.getSnippetDeadOrAlive:(I)Ljdk/jshell/Snippet;
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
invokevirtual jdk.jshell.Snippet.status:()Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ifne 3
2: aconst_null
goto 4
3: StackMap locals: jdk.jshell.Snippet
StackMap stack:
aload 2
4: StackMap locals:
StackMap stack: jdk.jshell.Snippet
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/SnippetMaps;
0 5 1 ki I
1 5 2 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
ki
jdk.jshell.Snippet getSnippetDeadOrAlive(int);
descriptor: (I)Ljdk/jshell/Snippet;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.jshell.Snippet
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/SnippetMaps;
0 3 1 ki I
MethodParameters:
Name Flags
ki
java.util.List<jdk.jshell.Snippet> snippetList();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield jdk.jshell.SnippetMaps.snippets:Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/SnippetMaps;
Signature: ()Ljava/util/List<Ljdk/jshell/Snippet;>;
java.lang.String packageAndImportsExcept(java.util.Set<jdk.jshell.Key>, java.util.Collection<jdk.jshell.Snippet>);
descriptor: (Ljava/util/Set;Ljava/util/Collection;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 1: aload 3
ldc "package "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "REPL"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ";\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 0
getfield jdk.jshell.SnippetMaps.keyIndexToSnippet:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: jdk.jshell.SnippetMaps java.util.Set java.util.Collection java.lang.StringBuilder top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jshell.Snippet
astore 4
start local 4 4: aload 4
ifnull 6
aload 4
invokevirtual jdk.jshell.Snippet.status:()Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isDefined:()Z
ifeq 6
aload 1
ifnull 5
aload 1
aload 4
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 6
5: StackMap locals: jdk.jshell.SnippetMaps java.util.Set java.util.Collection java.lang.StringBuilder jdk.jshell.Snippet java.util.Iterator
StackMap stack:
aload 3
aload 4
aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.Snippet.importLine:(Ljdk/jshell/JShell;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 6: StackMap locals: jdk.jshell.SnippetMaps java.util.Set java.util.Collection java.lang.StringBuilder top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 2
ifnull 10
8: aload 2
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
9: aload 0
aload 3
invokedynamic accept(Ljdk/jshell/SnippetMaps;Ljava/lang/StringBuilder;)Ljava/util/function/Consumer;
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;)V
jdk/jshell/SnippetMaps.lambda$0(Ljava/lang/StringBuilder;Ljdk/jshell/Snippet;)V (7)
(Ljdk/jshell/Snippet;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
10: StackMap locals: jdk.jshell.SnippetMaps java.util.Set java.util.Collection java.lang.StringBuilder
StackMap stack:
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jshell/SnippetMaps;
0 11 1 except Ljava/util/Set<Ljdk/jshell/Key;>;
0 11 2 plus Ljava/util/Collection<Ljdk/jshell/Snippet;>;
1 11 3 sb Ljava/lang/StringBuilder;
4 6 4 si Ljdk/jshell/Snippet;
Signature: (Ljava/util/Set<Ljdk/jshell/Key;>;Ljava/util/Collection<Ljdk/jshell/Snippet;>;)Ljava/lang/String;
MethodParameters:
Name Flags
except
plus
java.util.List<jdk.jshell.Snippet> getDependents(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljava/util/List;
flags: (0x0000)
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.kind:()Ljdk/jshell/Snippet$Kind;
invokevirtual jdk.jshell.Snippet$Kind.isPersistent:()Z
ifne 2
1: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getfield jdk.jshell.Snippet.unitName:Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 4: aload 0
getfield jdk.jshell.SnippetMaps.dependencies:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: jdk.jshell.SnippetMaps jdk.jshell.Snippet java.util.Set top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Set
astore 3
start local 3 6: aload 2
aload 3
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: goto 10
end local 2 9: StackMap locals: jdk.jshell.SnippetMaps jdk.jshell.Snippet
StackMap stack:
aload 0
getfield jdk.jshell.SnippetMaps.dependencies:Ljava/util/Map;
aload 1
invokevirtual jdk.jshell.Snippet.name:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 2
start local 2 10: StackMap locals: java.util.Set
StackMap stack:
aload 2
ifnonnull 12
11: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
12: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 13: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 19
StackMap locals: jdk.jshell.SnippetMaps jdk.jshell.Snippet java.util.Set java.util.List top java.util.Iterator
StackMap stack:
14: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 4
start local 4 15: aload 0
aload 4
invokevirtual java.lang.Integer.intValue:()I
invokevirtual jdk.jshell.SnippetMaps.getSnippetDeadOrAlive:(I)Ljdk/jshell/Snippet;
astore 6
start local 6 16: aload 6
ifnull 19
17: aload 3
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
18: aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
bipush 8
ldc "Found dependency %s -> %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.Snippet.name:()Ljava/lang/String;
aastore
dup
iconst_1
aload 6
invokevirtual jdk.jshell.Snippet.name:()Ljava/lang/String;
aastore
invokevirtual jdk.jshell.JShell.debug:(ILjava/lang/String;[Ljava/lang/Object;)V
end local 6 end local 4 19: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
20: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/jshell/SnippetMaps;
0 21 1 snip Ljdk/jshell/Snippet;
4 9 2 depset Ljava/util/Set<Ljava/lang/Integer;>;
10 21 2 depset Ljava/util/Set<Ljava/lang/Integer;>;
6 7 3 as Ljava/util/Set<Ljava/lang/Integer;>;
13 21 3 deps Ljava/util/List<Ljdk/jshell/Snippet;>;
15 19 4 dss Ljava/lang/Integer;
16 19 6 dep Ljdk/jshell/Snippet;
Signature: (Ljdk/jshell/Snippet;)Ljava/util/List<Ljdk/jshell/Snippet;>;
MethodParameters:
Name Flags
snip
void mapDependencies(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.Snippet.declareReferences:()Ljava/util/Collection;
aload 1
invokevirtual jdk.jshell.SnippetMaps.addDependencies:(Ljava/util/Collection;Ljdk/jshell/Snippet;)V
1: aload 0
aload 1
invokevirtual jdk.jshell.Snippet.bodyReferences:()Ljava/util/Collection;
aload 1
invokevirtual jdk.jshell.SnippetMaps.addDependencies:(Ljava/util/Collection;Ljdk/jshell/Snippet;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/SnippetMaps;
0 3 1 snip Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
snip
private void addDependencies(java.util.Collection<java.lang.String>, jdk.jshell.Snippet);
descriptor: (Ljava/util/Collection;Ljdk/jshell/Snippet;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: jdk.jshell.SnippetMaps java.util.Collection jdk.jshell.Snippet top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 0
getfield jdk.jshell.SnippetMaps.dependencies:Ljava/util/Map;
aload 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/jshell/SnippetMaps.lambda$1(Ljava/lang/String;)Ljava/util/Set; (6)
(Ljava/lang/String;)Ljava/util/Set;
invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast java.util.Set
4: aload 2
invokevirtual jdk.jshell.Snippet.key:()Ljdk/jshell/Key;
invokevirtual jdk.jshell.Key.index:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
bipush 8
ldc "Added dependency %s -> %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 2
invokevirtual jdk.jshell.Snippet.name:()Ljava/lang/String;
aastore
invokevirtual jdk.jshell.JShell.debug:(ILjava/lang/String;[Ljava/lang/Object;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/SnippetMaps;
0 8 1 refs Ljava/util/Collection<Ljava/lang/String;>;
0 8 2 snip Ljdk/jshell/Snippet;
3 6 3 ref Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;Ljdk/jshell/Snippet;)V
MethodParameters:
Name Flags
refs
snip
java.lang.String fullClassNameAndPackageToClass(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=7, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.jshell.Util.PREFIX_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 3
start local 3 1: aload 3
invokevirtual java.util.regex.Matcher.lookingAt:()Z
ifeq 3
2: aload 1
aload 3
invokevirtual java.util.regex.Matcher.end:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
3: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
bipush 8
ldc "SM %s %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokevirtual jdk.jshell.JShell.debug:(ILjava/lang/String;[Ljava/lang/Object;)V
4: aload 0
invokevirtual jdk.jshell.SnippetMaps.importSnippets:()Ljava/util/stream/Stream;
5: 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/jshell/SnippetMaps.lambda$2(Ljdk/jshell/ImportSnippet;)Z (6)
(Ljdk/jshell/ImportSnippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
6: 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/jshell/SnippetMaps.lambda$3(Ljdk/jshell/ImportSnippet;)Ljava/lang/String; (6)
(Ljdk/jshell/ImportSnippet;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: 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
8: astore 4
start local 4 9: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 13
StackMap locals: jdk.jshell.SnippetMaps java.lang.String java.lang.String java.util.regex.Matcher java.util.List top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 11: aload 5
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
12: aload 1
aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 5 13: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
14: aload 0
invokevirtual jdk.jshell.SnippetMaps.importSnippets:()Ljava/util/stream/Stream;
15: 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/jshell/SnippetMaps.lambda$4(Ljdk/jshell/ImportSnippet;)Z (6)
(Ljdk/jshell/ImportSnippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
16: 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/jshell/SnippetMaps.lambda$5(Ljdk/jshell/ImportSnippet;)Ljava/lang/String; (6)
(Ljdk/jshell/ImportSnippet;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
17: 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
18: astore 5
start local 5 19: aload 5
iconst_0
ldc "java.lang"
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
20: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 24
StackMap locals: jdk.jshell.SnippetMaps java.lang.String java.lang.String java.util.regex.Matcher java.util.List java.util.List top java.util.Iterator
StackMap stack:
21: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 22: aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 24
aload 6
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
23: aload 1
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 6 24: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
25: aload 1
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/jshell/SnippetMaps;
0 26 1 full Ljava/lang/String;
0 26 2 pkg Ljava/lang/String;
1 26 3 mat Ljava/util/regex/Matcher;
9 26 4 klasses Ljava/util/List<Ljava/lang/String;>;
11 13 5 k Ljava/lang/String;
19 26 5 pkgs Ljava/util/List<Ljava/lang/String;>;
22 24 6 ipkg Ljava/lang/String;
MethodParameters:
Name Flags
full
pkg
private java.util.stream.Stream<jdk.jshell.ImportSnippet> importSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.keyMap:Ljdk/jshell/KeyMap;
invokevirtual jdk.jshell.KeyMap.importKeys:()Ljava/util/stream/Stream;
1: aload 0
invokedynamic apply(Ljdk/jshell/SnippetMaps;)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/jshell/SnippetMaps.lambda$6(Ljdk/jshell/Key$ImportKey;)Ljdk/jshell/ImportSnippet; (7)
(Ljdk/jshell/Key$ImportKey;)Ljdk/jshell/ImportSnippet;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: aload 0
invokedynamic test(Ljdk/jshell/SnippetMaps;)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/jshell/SnippetMaps.lambda$7(Ljdk/jshell/ImportSnippet;)Z (7)
(Ljdk/jshell/ImportSnippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jshell/SnippetMaps;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/ImportSnippet;>;
private void lambda$0(java.lang.StringBuilder, jdk.jshell.Snippet);
descriptor: (Ljava/lang/StringBuilder;Ljdk/jshell/Snippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 1
aload 2
aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.Snippet.importLine:(Ljdk/jshell/JShell;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/SnippetMaps;
0 1 2 psi Ljdk/jshell/Snippet;
private static java.util.Set lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Set;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 k Ljava/lang/String;
private static boolean lambda$2(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.ImportSnippet.isStar:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 isi Ljdk/jshell/ImportSnippet;
private static java.lang.String lambda$3(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)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.jshell.ImportSnippet.fullname:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isi Ljdk/jshell/ImportSnippet;
private static boolean lambda$4(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.ImportSnippet.isStar:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isi Ljdk/jshell/ImportSnippet;
private static java.lang.String lambda$5(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.ImportSnippet.fullname:Ljava/lang/String;
iconst_0
aload 0
getfield jdk.jshell.ImportSnippet.fullname:Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isi Ljdk/jshell/ImportSnippet;
private jdk.jshell.ImportSnippet lambda$6(jdk.jshell.Key$ImportKey);
descriptor: (Ljdk/jshell/Key$ImportKey;)Ljdk/jshell/ImportSnippet;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.SnippetMaps.getSnippet:(Ljdk/jshell/Key;)Ljdk/jshell/Snippet;
checkcast jdk.jshell.ImportSnippet
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/SnippetMaps;
0 1 1 key Ljdk/jshell/Key$ImportKey;
private boolean lambda$7(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield jdk.jshell.SnippetMaps.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isDefined:()Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/SnippetMaps;
0 3 1 sn Ljdk/jshell/ImportSnippet;
}
SourceFile: "SnippetMaps.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
ImportKey = jdk.jshell.Key$ImportKey of jdk.jshell.Key
public final Kind = jdk.jshell.Snippet$Kind of jdk.jshell.Snippet
public final Status = jdk.jshell.Snippet$Status of jdk.jshell.Snippet