class jdk.jshell.TreeDissector
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.TreeDissector
super_class: java.lang.Object
{
private final jdk.jshell.TaskFactory$BaseTask bt;
descriptor: Ljdk/jshell/TaskFactory$BaseTask;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.sun.source.tree.ClassTree targetClass;
descriptor: Lcom/sun/source/tree/ClassTree;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.sun.source.tree.CompilationUnitTree targetCompilationUnit;
descriptor: Lcom/sun/source/tree/CompilationUnitTree;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.sun.source.util.SourcePositions theSourcePositions;
descriptor: Lcom/sun/source/util/SourcePositions;
flags: (0x0002) ACC_PRIVATE
private static final java.util.function.Predicate<? super com.sun.source.tree.Tree> isClassOrInterface;
descriptor: Ljava/util/function/Predicate;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Predicate<-Lcom/sun/source/tree/Tree;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: 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/TreeDissector.lambda$0(Lcom/sun/source/tree/Tree;)Z (6)
(Lcom/sun/source/tree/Tree;)Z
1: putstatic jdk.jshell.TreeDissector.isClassOrInterface:Ljava/util/function/Predicate;
2: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(jdk.jshell.TaskFactory$BaseTask, com.sun.source.tree.CompilationUnitTree, com.sun.source.tree.ClassTree);
descriptor: (Ljdk/jshell/TaskFactory$BaseTask;Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.jshell.TreeDissector.theSourcePositions:Lcom/sun/source/util/SourcePositions;
2: aload 0
aload 1
putfield jdk.jshell.TreeDissector.bt:Ljdk/jshell/TaskFactory$BaseTask;
3: aload 0
aload 2
putfield jdk.jshell.TreeDissector.targetCompilationUnit:Lcom/sun/source/tree/CompilationUnitTree;
4: aload 0
aload 3
putfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/TreeDissector;
0 6 1 bt Ljdk/jshell/TaskFactory$BaseTask;
0 6 2 targetCompilationUnit Lcom/sun/source/tree/CompilationUnitTree;
0 6 3 targetClass Lcom/sun/source/tree/ClassTree;
MethodParameters:
Name Flags
bt
targetCompilationUnit
targetClass
static jdk.jshell.TreeDissector createByFirstClass(jdk.jshell.TaskFactory$BaseTask);
descriptor: (Ljdk/jshell/TaskFactory$BaseTask;)Ljdk/jshell/TreeDissector;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jshell.TaskFactory$BaseTask.firstCuTree:()Lcom/sun/source/tree/CompilationUnitTree;
invokestatic jdk.jshell.TreeDissector.classes:(Lcom/sun/source/tree/CompilationUnitTree;)Ljava/util/stream/Stream;
1: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
aload 0
invokedynamic get(Ljdk/jshell/TaskFactory$BaseTask;)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/TreeDissector.lambda$1(Ljdk/jshell/TaskFactory$BaseTask;)Ljdk/jshell/Util$Pair; (6)
()Ljdk/jshell/Util$Pair;
invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast jdk.jshell.Util$Pair
2: astore 1
start local 1 3: new jdk.jshell.TreeDissector
dup
aload 0
aload 1
getfield jdk.jshell.Util$Pair.first:Ljava/lang/Object;
checkcast com.sun.source.tree.CompilationUnitTree
aload 1
getfield jdk.jshell.Util$Pair.second:Ljava/lang/Object;
checkcast com.sun.source.tree.ClassTree
invokespecial jdk.jshell.TreeDissector.<init>:(Ljdk/jshell/TaskFactory$BaseTask;Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bt Ljdk/jshell/TaskFactory$BaseTask;
3 4 1 pair Ljdk/jshell/Util$Pair<Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;>;
MethodParameters:
Name Flags
bt
private static java.util.stream.Stream<jdk.jshell.Util$Pair<com.sun.source.tree.CompilationUnitTree, com.sun.source.tree.ClassTree>> classes(com.sun.source.tree.CompilationUnitTree);
descriptor: (Lcom/sun/source/tree/CompilationUnitTree;)Ljava/util/stream/Stream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: invokestatic java.util.stream.Stream.empty:()Ljava/util/stream/Stream;
goto 5
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface com.sun.source.tree.CompilationUnitTree.getTypeDecls:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
3: getstatic jdk.jshell.TreeDissector.isClassOrInterface:Ljava/util/function/Predicate;
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: aload 0
invokedynamic apply(Lcom/sun/source/tree/CompilationUnitTree;)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/TreeDissector.lambda$2(Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/Tree;)Ljdk/jshell/Util$Pair; (6)
(Lcom/sun/source/tree/Tree;)Ljdk/jshell/Util$Pair;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: StackMap locals:
StackMap stack: java.util.stream.Stream
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 cut Lcom/sun/source/tree/CompilationUnitTree;
Signature: (Lcom/sun/source/tree/CompilationUnitTree;)Ljava/util/stream/Stream<Ljdk/jshell/Util$Pair<Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;>;>;
MethodParameters:
Name Flags
cut
private static java.util.stream.Stream<jdk.jshell.Util$Pair<com.sun.source.tree.CompilationUnitTree, com.sun.source.tree.ClassTree>> classes(java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree>);
descriptor: (Ljava/lang/Iterable;)Ljava/util/stream/Stream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.jshell.Util.stream:(Ljava/lang/Iterable;)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/jshell/TreeDissector.classes(Lcom/sun/source/tree/CompilationUnitTree;)Ljava/util/stream/Stream; (6)
(Lcom/sun/source/tree/CompilationUnitTree;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 cuts Ljava/lang/Iterable<+Lcom/sun/source/tree/CompilationUnitTree;>;
Signature: (Ljava/lang/Iterable<+Lcom/sun/source/tree/CompilationUnitTree;>;)Ljava/util/stream/Stream<Ljdk/jshell/Util$Pair<Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;>;>;
MethodParameters:
Name Flags
cuts
static jdk.jshell.TreeDissector createBySnippet(jdk.jshell.TaskFactory$BaseTask, jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/TaskFactory$BaseTask;Ljdk/jshell/Snippet;)Ljdk/jshell/TreeDissector;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.className:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual jdk.jshell.TaskFactory$BaseTask.cuTrees:()Ljava/lang/Iterable;
invokestatic jdk.jshell.TreeDissector.classes:(Ljava/lang/Iterable;)Ljava/util/stream/Stream;
2: aload 2
invokedynamic test(Ljava/lang/String;)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/TreeDissector.lambda$4(Ljava/lang/String;Ljdk/jshell/Util$Pair;)Z (6)
(Ljdk/jshell/Util$Pair;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
aload 2
invokedynamic get(Ljava/lang/String;)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/TreeDissector.lambda$5(Ljava/lang/String;)Ljava/lang/IllegalArgumentException; (6)
()Ljava/lang/IllegalArgumentException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast jdk.jshell.Util$Pair
4: astore 3
start local 3 5: new jdk.jshell.TreeDissector
dup
aload 0
aload 3
getfield jdk.jshell.Util$Pair.first:Ljava/lang/Object;
checkcast com.sun.source.tree.CompilationUnitTree
aload 3
getfield jdk.jshell.Util$Pair.second:Ljava/lang/Object;
checkcast com.sun.source.tree.ClassTree
invokespecial jdk.jshell.TreeDissector.<init>:(Ljdk/jshell/TaskFactory$BaseTask;Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 bt Ljdk/jshell/TaskFactory$BaseTask;
0 6 1 si Ljdk/jshell/Snippet;
1 6 2 name Ljava/lang/String;
5 6 3 pair Ljdk/jshell/Util$Pair<Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;>;
MethodParameters:
Name Flags
bt
si
com.sun.tools.javac.code.Types types();
descriptor: ()Lcom/sun/tools/javac/code/Types;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TreeDissector.bt:Ljdk/jshell/TaskFactory$BaseTask;
invokevirtual jdk.jshell.TaskFactory$BaseTask.types:()Lcom/sun/tools/javac/code/Types;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TreeDissector;
com.sun.source.util.Trees trees();
descriptor: ()Lcom/sun/source/util/Trees;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TreeDissector.bt:Ljdk/jshell/TaskFactory$BaseTask;
invokevirtual jdk.jshell.TaskFactory$BaseTask.trees:()Lcom/sun/source/util/Trees;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TreeDissector;
com.sun.source.util.SourcePositions getSourcePositions();
descriptor: ()Lcom/sun/source/util/SourcePositions;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TreeDissector.theSourcePositions:Lcom/sun/source/util/SourcePositions;
ifnonnull 2
1: aload 0
aload 0
invokevirtual jdk.jshell.TreeDissector.trees:()Lcom/sun/source/util/Trees;
invokevirtual com.sun.source.util.Trees.getSourcePositions:()Lcom/sun/source/util/SourcePositions;
putfield jdk.jshell.TreeDissector.theSourcePositions:Lcom/sun/source/util/SourcePositions;
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.TreeDissector.theSourcePositions:Lcom/sun/source/util/SourcePositions;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/TreeDissector;
int getStartPosition(com.sun.source.tree.Tree);
descriptor: (Lcom/sun/source/tree/Tree;)I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jshell.TreeDissector.getSourcePositions:()Lcom/sun/source/util/SourcePositions;
aload 0
getfield jdk.jshell.TreeDissector.targetCompilationUnit:Lcom/sun/source/tree/CompilationUnitTree;
aload 1
invokeinterface com.sun.source.util.SourcePositions.getStartPosition:(Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/Tree;)J
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TreeDissector;
0 1 1 tree Lcom/sun/source/tree/Tree;
MethodParameters:
Name Flags
tree
int getEndPosition(com.sun.source.tree.Tree);
descriptor: (Lcom/sun/source/tree/Tree;)I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jshell.TreeDissector.getSourcePositions:()Lcom/sun/source/util/SourcePositions;
aload 0
getfield jdk.jshell.TreeDissector.targetCompilationUnit:Lcom/sun/source/tree/CompilationUnitTree;
aload 1
invokeinterface com.sun.source.util.SourcePositions.getEndPosition:(Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/Tree;)J
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TreeDissector;
0 1 1 tree Lcom/sun/source/tree/Tree;
MethodParameters:
Name Flags
tree
jdk.jshell.Wrap$Range treeToRange(com.sun.source.tree.Tree);
descriptor: (Lcom/sun/source/tree/Tree;)Ljdk/jshell/Wrap$Range;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new jdk.jshell.Wrap$Range
dup
aload 0
aload 1
invokevirtual jdk.jshell.TreeDissector.getStartPosition:(Lcom/sun/source/tree/Tree;)I
aload 0
aload 1
invokevirtual jdk.jshell.TreeDissector.getEndPosition:(Lcom/sun/source/tree/Tree;)I
invokespecial jdk.jshell.Wrap$Range.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TreeDissector;
0 1 1 tree Lcom/sun/source/tree/Tree;
MethodParameters:
Name Flags
tree
jdk.jshell.Wrap$Range treeListToRange(java.util.List<? extends com.sun.source.tree.Tree>);
descriptor: (Ljava/util/List;)Ljdk/jshell/Wrap$Range;
flags: (0x0000)
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: ldc 2147483647
istore 2
start local 2 1: iconst_m1
istore 3
start local 3 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: jdk.jshell.TreeDissector java.util.List int int top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
astore 4
start local 4 4: aload 0
aload 4
invokevirtual jdk.jshell.TreeDissector.getStartPosition:(Lcom/sun/source/tree/Tree;)I
istore 6
start local 6 5: aload 0
aload 4
invokevirtual jdk.jshell.TreeDissector.getEndPosition:(Lcom/sun/source/tree/Tree;)I
istore 7
start local 7 6: iload 6
iload 2
if_icmpge 8
7: iload 6
istore 2
8: StackMap locals: jdk.jshell.TreeDissector java.util.List int int com.sun.source.tree.Tree java.util.Iterator int int
StackMap stack:
iload 7
iload 3
if_icmple 10
9: iload 7
istore 3
end local 7 end local 6 end local 4 10: StackMap locals: jdk.jshell.TreeDissector java.util.List int int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: iload 2
ldc 2147483647
if_icmpne 13
12: aconst_null
areturn
13: StackMap locals: jdk.jshell.TreeDissector java.util.List int int
StackMap stack:
new jdk.jshell.Wrap$Range
dup
iload 2
iload 3
invokespecial jdk.jshell.Wrap$Range.<init>:(II)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jshell/TreeDissector;
0 14 1 treeList Ljava/util/List<+Lcom/sun/source/tree/Tree;>;
1 14 2 start I
2 14 3 end I
4 10 4 t Lcom/sun/source/tree/Tree;
5 10 6 tstart I
6 10 7 tend I
Signature: (Ljava/util/List<+Lcom/sun/source/tree/Tree;>;)Ljdk/jshell/Wrap$Range;
MethodParameters:
Name Flags
treeList
com.sun.source.tree.MethodTree method(jdk.jshell.MethodSnippet);
descriptor: (Ljdk/jshell/MethodSnippet;)Lcom/sun/source/tree/MethodTree;
flags: (0x0000)
Code:
stack=2, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.jshell.MethodSnippet.outerWrap:()Ljdk/jshell/OuterWrap;
astore 2
start local 2 3: aload 2
instanceof jdk.jshell.OuterSnippetsClassWrap
ifne 5
4: aconst_null
areturn
5: StackMap locals: jdk.jshell.OuterWrap
StackMap stack:
aload 2
checkcast jdk.jshell.OuterSnippetsClassWrap
aload 1
invokevirtual jdk.jshell.OuterSnippetsClassWrap.ordinal:(Ljdk/jshell/Snippet;)I
istore 3
start local 3 6: iload 3
ifge 8
7: aconst_null
areturn
8: StackMap locals: int
StackMap stack:
iconst_0
istore 4
start local 4 9: aload 1
invokevirtual jdk.jshell.MethodSnippet.name:()Ljava/lang/String;
astore 5
start local 5 10: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
invokeinterface com.sun.source.tree.ClassTree.getMembers:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 18
StackMap locals: jdk.jshell.TreeDissector jdk.jshell.MethodSnippet jdk.jshell.OuterWrap int int java.lang.String top java.util.Iterator
StackMap stack:
11: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
astore 6
start local 6 12: aload 6
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.METHOD:Lcom/sun/source/tree/Tree$Kind;
if_acmpne 18
13: aload 6
checkcast com.sun.source.tree.MethodTree
astore 8
start local 8 14: aload 8
invokeinterface com.sun.source.tree.MethodTree.getName:()Ljavax/lang/model/element/Name;
invokeinterface javax.lang.model.element.Name.toString:()Ljava/lang/String;
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
15: iload 4
iload 3
if_icmpne 17
16: aload 8
areturn
17: StackMap locals: jdk.jshell.TreeDissector jdk.jshell.MethodSnippet jdk.jshell.OuterWrap int int java.lang.String com.sun.source.tree.Tree java.util.Iterator com.sun.source.tree.MethodTree
StackMap stack:
iinc 4 1
end local 8 end local 6 18: StackMap locals: jdk.jshell.TreeDissector jdk.jshell.MethodSnippet jdk.jshell.OuterWrap int int java.lang.String top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
19: aconst_null
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 20 0 this Ljdk/jshell/TreeDissector;
0 20 1 msn Ljdk/jshell/MethodSnippet;
3 20 2 ow Ljdk/jshell/OuterWrap;
6 20 3 ordinal I
9 20 4 count I
10 20 5 name Ljava/lang/String;
12 18 6 mem Lcom/sun/source/tree/Tree;
14 18 8 mt Lcom/sun/source/tree/MethodTree;
MethodParameters:
Name Flags
msn
com.sun.source.tree.StatementTree firstStatement();
descriptor: ()Lcom/sun/source/tree/StatementTree;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
ifnull 10
1: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
invokeinterface com.sun.source.tree.ClassTree.getMembers:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 9
StackMap locals: jdk.jshell.TreeDissector top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
astore 1
start local 1 3: aload 1
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.METHOD:Lcom/sun/source/tree/Tree$Kind;
if_acmpne 9
4: aload 1
checkcast com.sun.source.tree.MethodTree
astore 3
start local 3 5: aload 3
invokeinterface com.sun.source.tree.MethodTree.getName:()Ljavax/lang/model/element/Name;
invokestatic jdk.jshell.Util.isDoIt:(Ljavax/lang/model/element/Name;)Z
ifeq 9
6: aload 3
invokeinterface com.sun.source.tree.MethodTree.getBody:()Lcom/sun/source/tree/BlockTree;
invokeinterface com.sun.source.tree.BlockTree.getStatements:()Ljava/util/List;
astore 4
start local 4 7: aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 9
8: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.source.tree.StatementTree
areturn
end local 4 end local 3 end local 1 9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: StackMap locals: jdk.jshell.TreeDissector
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jshell/TreeDissector;
3 9 1 mem Lcom/sun/source/tree/Tree;
5 9 3 mt Lcom/sun/source/tree/MethodTree;
7 9 4 stmts Ljava/util/List<+Lcom/sun/source/tree/StatementTree;>;
com.sun.source.tree.VariableTree firstVariable();
descriptor: ()Lcom/sun/source/tree/VariableTree;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
ifnull 7
1: aload 0
getfield jdk.jshell.TreeDissector.targetClass:Lcom/sun/source/tree/ClassTree;
invokeinterface com.sun.source.tree.ClassTree.getMembers:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: jdk.jshell.TreeDissector top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
astore 1
start local 1 3: aload 1
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.VARIABLE:Lcom/sun/source/tree/Tree$Kind;
if_acmpne 6
4: aload 1
checkcast com.sun.source.tree.VariableTree
astore 3
start local 3 5: aload 3
areturn
end local 3 end local 1 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: StackMap locals: jdk.jshell.TreeDissector
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/TreeDissector;
3 6 1 mem Lcom/sun/source/tree/Tree;
5 6 3 vt Lcom/sun/source/tree/VariableTree;
java.lang.String typeOfMethod(jdk.jshell.MethodSnippet);
descriptor: (Ljdk/jshell/MethodSnippet;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.TreeDissector.method:(Ljdk/jshell/MethodSnippet;)Lcom/sun/source/tree/MethodTree;
astore 2
start local 2 1: aload 2
instanceof com.sun.tools.javac.tree.JCTree$JCMethodDecl
ifeq 6
2: aload 2
checkcast com.sun.tools.javac.tree.JCTree$JCMethodDecl
astore 3
start local 3 3: aload 0
invokevirtual jdk.jshell.TreeDissector.types:()Lcom/sun/tools/javac/code/Types;
aload 3
getfield com.sun.tools.javac.tree.JCTree$JCMethodDecl.type:Lcom/sun/tools/javac/code/Type;
invokevirtual com.sun.tools.javac.code.Types.erasure:(Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;
astore 4
start local 4 4: aload 4
instanceof com.sun.tools.javac.code.Type$MethodType
ifeq 6
5: aload 0
invokevirtual jdk.jshell.TreeDissector.types:()Lcom/sun/tools/javac/code/Types;
aload 4
checkcast com.sun.tools.javac.code.Type$MethodType
invokestatic jdk.jshell.TreeDissector.signature:(Lcom/sun/tools/javac/code/Types;Lcom/sun/tools/javac/code/Type$MethodType;)Ljava/lang/String;
areturn
end local 4 end local 3 6: StackMap locals: com.sun.source.tree.Tree
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jshell/TreeDissector;
0 7 1 msn Ljdk/jshell/MethodSnippet;
1 7 2 unitTree Lcom/sun/source/tree/Tree;
3 6 3 mtree Lcom/sun/tools/javac/tree/JCTree$JCMethodDecl;
4 6 4 mt Lcom/sun/tools/javac/code/Type;
MethodParameters:
Name Flags
msn
static java.lang.String signature(com.sun.tools.javac.code.Types, com.sun.tools.javac.code.Type$MethodType);
descriptor: (Lcom/sun/tools/javac/code/Types;Lcom/sun/tools/javac/code/Type$MethodType;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new jdk.jshell.TreeDissector$TDSignatureGenerator
dup
aload 0
invokespecial jdk.jshell.TreeDissector$TDSignatureGenerator.<init>:(Lcom/sun/tools/javac/code/Types;)V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual jdk.jshell.TreeDissector$TDSignatureGenerator.assembleSig:(Lcom/sun/tools/javac/code/Type;)V
2: aload 2
invokevirtual jdk.jshell.TreeDissector$TDSignatureGenerator.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 types Lcom/sun/tools/javac/code/Types;
0 3 1 mt Lcom/sun/tools/javac/code/Type$MethodType;
1 3 2 sg Ljdk/jshell/TreeDissector$TDSignatureGenerator;
MethodParameters:
Name Flags
types
mt
public static java.lang.String printType(jdk.jshell.TaskFactory$AnalyzeTask, jdk.jshell.JShell, javax.lang.model.type.TypeMirror);
descriptor: (Ljdk/jshell/TaskFactory$AnalyzeTask;Ljdk/jshell/JShell;Ljavax/lang/model/type/TypeMirror;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast com.sun.tools.javac.code.Type
astore 3
start local 3 1: new jdk.jshell.TypePrinter
dup
aload 0
invokevirtual jdk.jshell.TaskFactory$AnalyzeTask.messages:()Lcom/sun/tools/javac/util/JavacMessages;
2: aload 1
getfield jdk.jshell.JShell.maps:Ljdk/jshell/SnippetMaps;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic apply(Ljdk/jshell/SnippetMaps;)Ljava/util/function/BinaryOperator;
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;)Ljava/lang/Object;
jdk/jshell/SnippetMaps.fullClassNameAndPackageToClass(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; (5)
(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
iconst_1
3: invokespecial jdk.jshell.TypePrinter.<init>:(Lcom/sun/tools/javac/util/JavacMessages;Ljava/util/function/BinaryOperator;Z)V
astore 4
start local 4 4: aload 4
aload 3
invokevirtual jdk.jshell.TypePrinter.toString:(Lcom/sun/tools/javac/code/Type;)Ljava/lang/String;
5: areturn
end local 4 6: StackMap locals: jdk.jshell.TaskFactory$AnalyzeTask jdk.jshell.JShell javax.lang.model.type.TypeMirror com.sun.tools.javac.code.Type
StackMap stack: java.lang.Exception
pop
7: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 at Ljdk/jshell/TaskFactory$AnalyzeTask;
0 8 1 state Ljdk/jshell/JShell;
0 8 2 type Ljavax/lang/model/type/TypeMirror;
1 8 3 typeImpl Lcom/sun/tools/javac/code/Type;
4 6 4 tp Ljdk/jshell/TypePrinter;
Exception table:
from to target type
1 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
at
state
type
private static boolean lambda$0(com.sun.source.tree.Tree);
descriptor: (Lcom/sun/source/tree/Tree;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.CLASS:Lcom/sun/source/tree/Tree$Kind;
if_acmpeq 1
aload 0
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.INTERFACE:Lcom/sun/source/tree/Tree$Kind;
if_acmpeq 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 t Lcom/sun/source/tree/Tree;
private static jdk.jshell.Util$Pair lambda$1(jdk.jshell.TaskFactory$BaseTask);
descriptor: (Ljdk/jshell/TaskFactory$BaseTask;)Ljdk/jshell/Util$Pair;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
0: new jdk.jshell.Util$Pair
dup
aload 0
invokevirtual jdk.jshell.TaskFactory$BaseTask.firstCuTree:()Lcom/sun/source/tree/CompilationUnitTree;
aconst_null
invokespecial jdk.jshell.Util$Pair.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.jshell.Util$Pair lambda$2(com.sun.source.tree.CompilationUnitTree, com.sun.source.tree.Tree);
descriptor: (Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/Tree;)Ljdk/jshell/Util$Pair;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 1 0: new jdk.jshell.Util$Pair
dup
aload 0
aload 1
checkcast com.sun.source.tree.ClassTree
invokespecial jdk.jshell.Util$Pair.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 decl Lcom/sun/source/tree/Tree;
private static boolean lambda$4(java.lang.String, jdk.jshell.Util$Pair);
descriptor: (Ljava/lang/String;Ljdk/jshell/Util$Pair;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
getfield jdk.jshell.Util$Pair.second:Ljava/lang/Object;
checkcast com.sun.source.tree.ClassTree
invokeinterface com.sun.source.tree.ClassTree.getSimpleName:()Ljavax/lang/model/element/Name;
aload 0
invokeinterface javax.lang.model.element.Name.contentEquals:(Ljava/lang/CharSequence;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 p Ljdk/jshell/Util$Pair<Lcom/sun/source/tree/CompilationUnitTree;Lcom/sun/source/tree/ClassTree;>;
private static java.lang.IllegalArgumentException lambda$5(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not found."
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
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "TreeDissector.java"
NestMembers:
jdk.jshell.TreeDissector$TDSignatureGenerator
InnerClasses:
public final Kind = com.sun.source.tree.Tree$Kind of com.sun.source.tree.Tree
public MethodType = com.sun.tools.javac.code.Type$MethodType of com.sun.tools.javac.code.Type
public JCMethodDecl = com.sun.tools.javac.tree.JCTree$JCMethodDecl of com.sun.tools.javac.tree.JCTree
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
AnalyzeTask = jdk.jshell.TaskFactory$AnalyzeTask of jdk.jshell.TaskFactory
abstract BaseTask = jdk.jshell.TaskFactory$BaseTask of jdk.jshell.TaskFactory
private TDSignatureGenerator = jdk.jshell.TreeDissector$TDSignatureGenerator of jdk.jshell.TreeDissector
Pair = jdk.jshell.Util$Pair of jdk.jshell.Util
public final Range = jdk.jshell.Wrap$Range of jdk.jshell.Wrap