class jdk.internal.jshell.tool.JShellTool$ArgToSnippets<T extends jdk.jshell.Snippet>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.JShellTool$ArgToSnippets
super_class: java.lang.Object
{
final java.util.function.Supplier<java.util.stream.Stream<T>> snippetSupplier;
descriptor: Ljava/util/function/Supplier;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
java.util.List<T> allSnippets;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<TT;>;
java.lang.String[] allIds;
descriptor: [Ljava/lang/String;
flags: (0x0000)
final jdk.internal.jshell.tool.JShellTool this$0;
descriptor: Ljdk/internal/jshell/tool/JShellTool;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(java.util.function.Supplier<java.util.stream.Stream<T>>);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/util/function/Supplier;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:[Ljava/lang/String;
2: aload 0
aload 2
putfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.snippetSupplier:Ljava/util/function/Supplier;
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 4 2 snippetSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
Signature: (Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;)V
MethodParameters:
Name Flags
this$0 final
snippetSupplier
java.util.stream.Stream<T> argsToSnippets(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals: jdk.internal.jshell.tool.JShellTool$ArgToSnippets java.util.List java.util.stream.Stream 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
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.argToSnippets:(Ljava/lang/String;)Ljava/util/stream/Stream;
astore 5
start local 5 4: aload 5
ifnonnull 6
5: aconst_null
areturn
6: StackMap locals: jdk.internal.jshell.tool.JShellTool$ArgToSnippets java.util.List java.util.stream.Stream java.lang.String java.util.Iterator java.util.stream.Stream
StackMap stack:
aload 2
ifnonnull 8
7: aload 5
goto 9
8: StackMap locals:
StackMap stack:
aload 2
aload 5
invokestatic java.util.stream.Stream.concat:(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
9: StackMap locals:
StackMap stack: java.util.stream.Stream
astore 2
end local 5 end local 3 10: StackMap locals: jdk.internal.jshell.tool.JShellTool$ArgToSnippets java.util.List java.util.stream.Stream top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 12 1 args Ljava/util/List<Ljava/lang/String;>;
1 12 2 result Ljava/util/stream/Stream<TT;>;
3 10 3 arg Ljava/lang/String;
4 10 5 st Ljava/util/stream/Stream<TT;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
args
java.util.stream.Stream<T> argToSnippets(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "-"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 2
1: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.range:(Ljava/lang/String;)Ljava/util/stream/Stream;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.snippetSupplier:Ljava/util/function/Supplier;
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.layeredSnippetSearch:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 3: aload 2
ifnonnull 6
4: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.badSnippetErrormsg:(Ljava/lang/String;)V
5: aconst_null
areturn
6: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 7 1 arg Ljava/lang/String;
3 7 2 st Ljava/util/stream/Stream<TT;>;
Signature: (Ljava/lang/String;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
arg
void badSnippetErrormsg(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljdk/jshell/JShell;)Ljava/util/function/Supplier;
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;
jdk/jshell/JShell.snippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.layeredSnippetSearch:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 1: aload 2
ifnonnull 7
2: getstatic jdk.internal.jshell.tool.JShellTool.ID:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 5
3: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.err.no.snippet.with.id"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
4: goto 10
5: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.err.no.such.snippets"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
6: goto 10
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.err.the.snippet.cannot.be.used.with.this.command"
iconst_2
anewarray java.lang.Object
dup
iconst_0
8: aload 1
aastore
dup
iconst_1
aload 2
invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast jdk.jshell.Snippet
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
aastore
9: invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 11 1 arg Ljava/lang/String;
1 11 2 est Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
MethodParameters:
Name Flags
arg
<R extends jdk.jshell.Snippet> java.util.stream.Stream<R> layeredSnippetSearch(java.util.function.Supplier<java.util.stream.Stream<R>>, java.lang.String);
descriptor: (Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_3
anewarray jdk.internal.jshell.tool.JShellTool$SnippetPredicate
dup
iconst_0
1: aload 0
aload 2
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets;Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/JShellTool$ArgToSnippets.lambda$1(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aastore
dup
iconst_1
2: aload 0
aload 2
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets;Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/JShellTool$ArgToSnippets.lambda$2(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aastore
dup
iconst_2
3: aload 2
invokedynamic test(Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/JShellTool$ArgToSnippets.lambda$3(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
aastore
4: invokestatic jdk.internal.jshell.tool.JShellTool.nonEmptyStream:(Ljava/util/function/Supplier;[Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;)Ljava/util/stream/Stream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 5 1 aSnippetSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TR;>;>;
0 5 2 arg Ljava/lang/String;
Signature: <R:Ljdk/jshell/Snippet;>(Ljava/util/function/Supplier<Ljava/util/stream/Stream<TR;>;>;Ljava/lang/String;)Ljava/util/stream/Stream<TR;>;
MethodParameters:
Name Flags
aSnippetSupplier
arg
java.util.stream.Stream<T> range(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
bipush 45
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 2: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 3: aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.snippetIndex:(Ljava/lang/String;)I
istore 5
start local 5 4: iload 5
ifge 6
5: aconst_null
areturn
6: StackMap locals: jdk.internal.jshell.tool.JShellTool$ArgToSnippets java.lang.String int java.lang.String java.lang.String int
StackMap stack:
aload 0
aload 4
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.snippetIndex:(Ljava/lang/String;)I
istore 6
start local 6 7: iload 6
ifge 9
8: aconst_null
areturn
9: StackMap locals: int
StackMap stack:
iload 6
iload 5
if_icmpge 12
10: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.err.end.snippet.range.less.than.start"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
11: aconst_null
areturn
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allSnippets:Ljava/util/List;
iload 5
iload 6
iconst_1
iadd
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
end local 6 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 13 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 13 1 arg Ljava/lang/String;
1 13 2 dash I
2 13 3 iid Ljava/lang/String;
3 13 4 tid Ljava/lang/String;
4 13 5 iidx I
7 13 6 tidx I
Signature: (Ljava/lang/String;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
arg
void initIdMapping();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:[Ljava/lang/String;
ifnonnull 9
1: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.snippetSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
2: aload 0
invokedynamic compare(Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets;)Ljava/util/Comparator;
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;)I
jdk/internal/jshell/tool/JShellTool$ArgToSnippets.lambda$4(Ljdk/jshell/Snippet;Ljdk/jshell/Snippet;)I (7)
(Ljdk/jshell/Snippet;Ljdk/jshell/Snippet;)I
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
3: 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
4: putfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allSnippets:Ljava/util/List;
5: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allSnippets:Ljava/util/List;
invokeinterface java.util.List.stream:()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/internal/jshell/tool/JShellTool$ArgToSnippets.lambda$5(Ljdk/jshell/Snippet;)Ljava/lang/String; (6)
(Ljdk/jshell/Snippet;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool$ArgToSnippets.lambda$6(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
8: putfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:[Ljava/lang/String;
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
java.lang.String[] allIds();
descriptor: ()[Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.initIdMapping:()V
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
int order(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 2
101: 3
115: 1
default: 5
}
1: StackMap locals:
StackMap stack:
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
2: ireturn
3: StackMap locals:
StackMap stack:
ldc 1073741824
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
iadd
4: ireturn
5: StackMap locals:
StackMap stack:
ldc 536870912
aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
iadd
6: ireturn
7: StackMap locals:
StackMap stack: java.lang.Exception
pop
8: ldc 1610612736
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 9 1 id Ljava/lang/String;
Exception table:
from to target type
0 2 7 Class java.lang.Exception
3 4 7 Class java.lang.Exception
5 6 7 Class java.lang.Exception
MethodParameters:
Name Flags
id
int order(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)I
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.order:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 1 1 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
sn
int snippetIndex(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:()[Ljava/lang/String;
iconst_0
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.allIds:()[Ljava/lang/String;
arraylength
aload 1
1: aload 0
invokedynamic compare(Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets;)Ljava/util/Comparator;
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;)I
jdk/internal/jshell/tool/JShellTool$ArgToSnippets.lambda$7(Ljava/lang/String;Ljava/lang/String;)I (7)
(Ljava/lang/String;Ljava/lang/String;)I
2: invokestatic java.util.Arrays.binarySearch:([Ljava/lang/Object;IILjava/lang/Object;Ljava/util/Comparator;)I
istore 2
start local 2 3: iload 2
ifge 8
4: getstatic jdk.internal.jshell.tool.JShellTool.ID:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 7
5: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.err.range.requires.id"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
6: goto 8
7: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.badSnippetErrormsg:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 9 1 s Ljava/lang/String;
3 9 2 idx I
MethodParameters:
Name Flags
s
private boolean lambda$1(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.isActive:(Ljdk/jshell/Snippet;)Z
ifeq 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.matchingDeclaration:(Ljdk/jshell/Snippet;Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 3 2 sn TR;
private boolean lambda$2(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$ArgToSnippets.this$0:Ljdk/internal/jshell/tool/JShellTool;
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.matchingDeclaration:(Ljdk/jshell/Snippet;Ljava/lang/String;)Z
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 1 2 sn TR;
private static boolean lambda$3(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 sn TR;
private int lambda$4(jdk.jshell.Snippet, jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;Ljdk/jshell/Snippet;)I
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.order:(Ljdk/jshell/Snippet;)I
aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.order:(Ljdk/jshell/Snippet;)I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 1 1 a TT;
0 1 2 b TT;
private static java.lang.String lambda$5(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)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.jshell.Snippet.id:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sn TT;
private static java.lang.String[] lambda$6(int);
descriptor: (I)[Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
anewarray java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n I
private int lambda$7(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.order:(Ljava/lang/String;)I
aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$ArgToSnippets.order:(Ljava/lang/String;)I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool$ArgToSnippets<TT;>;
0 1 1 a Ljava/lang/String;
0 1 2 b Ljava/lang/String;
}
Signature: <T:Ljdk/jshell/Snippet;>Ljava/lang/Object;
SourceFile: "JShellTool.java"
NestHost: jdk.internal.jshell.tool.JShellTool
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private ArgToSnippets = jdk.internal.jshell.tool.JShellTool$ArgToSnippets of jdk.internal.jshell.tool.JShellTool
private abstract SnippetPredicate = jdk.internal.jshell.tool.JShellTool$SnippetPredicate of jdk.internal.jshell.tool.JShellTool