class jdk.jshell.TaskFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.TaskFactory
super_class: java.lang.Object
{
private final javax.tools.JavaCompiler compiler;
descriptor: Ljavax/tools/JavaCompiler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jshell.MemoryFileManager fileManager;
descriptor: Ljdk/jshell/MemoryFileManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jshell.JShell state;
descriptor: Ljdk/jshell/JShell;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String classpath;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.Runtime$Version INITIAL_SUPPORTED_VER;
descriptor: Ljava/lang/Runtime$Version;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private com.sun.tools.javac.api.JavacTaskPool javacTaskPool;
descriptor: Lcom/sun/tools/javac/api/JavacTaskPool;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "9"
invokestatic java.lang.Runtime$Version.parse:(Ljava/lang/String;)Ljava/lang/Runtime$Version;
putstatic jdk.jshell.TaskFactory.INITIAL_SUPPORTED_VER:Ljava/lang/Runtime$Version;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.jshell.JShell);
descriptor: (Ljdk/jshell/JShell;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "java.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield jdk.jshell.TaskFactory.classpath:Ljava/lang/String;
2: aload 0
aload 1
putfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
3: aload 0
invokestatic javax.tools.ToolProvider.getSystemJavaCompiler:()Ljavax/tools/JavaCompiler;
putfield jdk.jshell.TaskFactory.compiler:Ljavax/tools/JavaCompiler;
4: aload 0
getfield jdk.jshell.TaskFactory.compiler:Ljavax/tools/JavaCompiler;
ifnonnull 6
5: new java.lang.UnsupportedOperationException
dup
ldc "Compiler not available, must be run with full JDK 9."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.JShell
StackMap stack:
ldc "java.specification.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Runtime$Version.parse:(Ljava/lang/String;)Ljava/lang/Runtime$Version;
astore 2
start local 2 7: getstatic jdk.jshell.TaskFactory.INITIAL_SUPPORTED_VER:Ljava/lang/Runtime$Version;
aload 2
invokevirtual java.lang.Runtime$Version.compareToIgnoreOptional:(Ljava/lang/Runtime$Version;)I
ifle 9
8: new java.lang.UnsupportedOperationException
dup
ldc "Wrong compiler, must be run with full JDK 9."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.Runtime$Version
StackMap stack:
aload 0
new jdk.jshell.MemoryFileManager
dup
10: aload 0
getfield jdk.jshell.TaskFactory.compiler:Ljavax/tools/JavaCompiler;
aconst_null
aconst_null
aconst_null
invokeinterface javax.tools.JavaCompiler.getStandardFileManager:(Ljavax/tools/DiagnosticListener;Ljava/util/Locale;Ljava/nio/charset/Charset;)Ljavax/tools/StandardJavaFileManager;
aload 1
invokespecial jdk.jshell.MemoryFileManager.<init>:(Ljavax/tools/StandardJavaFileManager;Ljdk/jshell/JShell;)V
11: putfield jdk.jshell.TaskFactory.fileManager:Ljdk/jshell/MemoryFileManager;
12: aload 0
invokevirtual jdk.jshell.TaskFactory.initTaskPool:()V
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jshell/TaskFactory;
0 14 1 state Ljdk/jshell/JShell;
7 14 2 current Ljava/lang/Runtime$Version;
MethodParameters:
Name Flags
state
void addToClasspath(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield jdk.jshell.TaskFactory.classpath:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.jshell.TaskFactory.classpath:Ljava/lang/String;
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 2
aload 0
getfield jdk.jshell.TaskFactory.classpath:Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 0
invokevirtual jdk.jshell.TaskFactory.fileManager:()Ljdk/jshell/MemoryFileManager;
ldc "-classpath"
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
invokevirtual jdk.jshell.MemoryFileManager.handleOption:(Ljava/lang/String;Ljava/util/Iterator;)Z
pop
4: aload 0
invokevirtual jdk.jshell.TaskFactory.initTaskPool:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/TaskFactory;
0 6 1 path Ljava/lang/String;
2 6 2 args Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
path
jdk.jshell.MemoryFileManager fileManager();
descriptor: ()Ljdk/jshell/MemoryFileManager;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.TaskFactory.fileManager:Ljdk/jshell/MemoryFileManager;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
public <Z> Z parse(java.lang.String, boolean, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$ParseTask, Z>);
descriptor: (Ljava/lang/String;ZLjdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new jdk.jshell.TaskFactory$StringSourceHandler
dup
aload 0
invokespecial jdk.jshell.TaskFactory$StringSourceHandler.<init>:(Ljdk/jshell/TaskFactory;)V
astore 4
start local 4 1: aload 0
aload 1
invokestatic java.util.stream.Stream.of:(Ljava/lang/Object;)Ljava/util/stream/Stream;
2: aload 4
3: ldc "-XDallowStringFolding=false"
ldc "-proc:none"
4: new java.lang.StringBuilder
dup
ldc "-XDneedsReplParserFactory="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
6: aload 0
aload 4
iload 2
invokedynamic apply(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$StringSourceHandler;Z)Ljava/util/function/BiFunction;
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/TaskFactory.lambda$0(Ljdk/jshell/TaskFactory$StringSourceHandler;ZLcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$ParseTask; (7)
(Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$ParseTask;
7: aload 3
8: invokevirtual jdk.jshell.TaskFactory.runTask:(Ljava/util/stream/Stream;Ljdk/jshell/TaskFactory$SourceHandler;Ljava/util/List;Ljava/util/function/BiFunction;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jshell/TaskFactory;
0 9 1 source Ljava/lang/String;
0 9 2 forceExpression Z
0 9 3 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$ParseTask;TZ;>;
1 9 4 sh Ljdk/jshell/TaskFactory$StringSourceHandler;
Signature: <Z:Ljava/lang/Object;>(Ljava/lang/String;ZLjdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$ParseTask;TZ;>;)TZ;
MethodParameters:
Name Flags
source
forceExpression
worker
public <Z> Z analyze(jdk.jshell.OuterWrap, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$AnalyzeTask, Z>);
descriptor: (Ljdk/jshell/OuterWrap;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
aload 2
invokevirtual jdk.jshell.TaskFactory.analyze:(Ljava/util/Collection;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 1 wrap Ljdk/jshell/OuterWrap;
0 1 2 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;
Signature: <Z:Ljava/lang/Object;>(Ljdk/jshell/OuterWrap;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;)TZ;
MethodParameters:
Name Flags
wrap
worker
public <Z> Z analyze(jdk.jshell.OuterWrap, java.util.List<java.lang.String>, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$AnalyzeTask, Z>);
descriptor: (Ljdk/jshell/OuterWrap;Ljava/util/List;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
aload 2
aload 3
invokevirtual jdk.jshell.TaskFactory.analyze:(Ljava/util/Collection;Ljava/util/List;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 1 wrap Ljdk/jshell/OuterWrap;
0 1 2 extraArgs Ljava/util/List<Ljava/lang/String;>;
0 1 3 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;
Signature: <Z:Ljava/lang/Object;>(Ljdk/jshell/OuterWrap;Ljava/util/List<Ljava/lang/String;>;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;)TZ;
MethodParameters:
Name Flags
wrap
extraArgs
worker
public <Z> Z analyze(java.util.Collection<jdk.jshell.OuterWrap>, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$AnalyzeTask, Z>);
descriptor: (Ljava/util/Collection;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
aload 2
invokevirtual jdk.jshell.TaskFactory.analyze:(Ljava/util/Collection;Ljava/util/List;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 1 wraps Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;
0 1 2 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;
Signature: <Z:Ljava/lang/Object;>(Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;)TZ;
MethodParameters:
Name Flags
wraps
worker
public <Z> Z analyze(java.util.Collection<jdk.jshell.OuterWrap>, java.util.List<java.lang.String>, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$AnalyzeTask, Z>);
descriptor: (Ljava/util/Collection;Ljava/util/List;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new jdk.jshell.TaskFactory$WrapSourceHandler
dup
aload 0
invokespecial jdk.jshell.TaskFactory$WrapSourceHandler.<init>:(Ljdk/jshell/TaskFactory;)V
astore 4
start local 4 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 2: aload 5
ldc "--should-stop=at=FLOW"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 5
ldc "-Xlint:unchecked"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 5
ldc "-proc:none"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 5
aload 2
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
6: aload 0
aload 1
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
7: aload 4
8: aload 5
9: aload 0
aload 4
invokedynamic apply(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$WrapSourceHandler;)Ljava/util/function/BiFunction;
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/TaskFactory.lambda$1(Ljdk/jshell/TaskFactory$WrapSourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$AnalyzeTask; (7)
(Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$AnalyzeTask;
10: aload 3
11: invokevirtual jdk.jshell.TaskFactory.runTask:(Ljava/util/stream/Stream;Ljdk/jshell/TaskFactory$SourceHandler;Ljava/util/List;Ljava/util/function/BiFunction;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
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 12 0 this Ljdk/jshell/TaskFactory;
0 12 1 wraps Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;
0 12 2 extraArgs Ljava/util/List<Ljava/lang/String;>;
0 12 3 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;
1 12 4 sh Ljdk/jshell/TaskFactory$WrapSourceHandler;
2 12 5 allOptions Ljava/util/List<Ljava/lang/String;>;
Signature: <Z:Ljava/lang/Object;>(Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;Ljava/util/List<Ljava/lang/String;>;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$AnalyzeTask;TZ;>;)TZ;
MethodParameters:
Name Flags
wraps
extraArgs
worker
public <Z> Z compile(java.util.Collection<jdk.jshell.OuterWrap>, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$CompileTask, Z>);
descriptor: (Ljava/util/Collection;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new jdk.jshell.TaskFactory$WrapSourceHandler
dup
aload 0
invokespecial jdk.jshell.TaskFactory$WrapSourceHandler.<init>:(Ljdk/jshell/TaskFactory;)V
astore 3
start local 3 1: aload 0
aload 1
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
2: aload 3
3: ldc "-Xlint:unchecked"
ldc "-proc:none"
ldc "-parameters"
invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
4: aload 0
aload 3
invokedynamic apply(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$WrapSourceHandler;)Ljava/util/function/BiFunction;
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/TaskFactory.lambda$2(Ljdk/jshell/TaskFactory$WrapSourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$CompileTask; (7)
(Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$CompileTask;
5: aload 2
6: invokevirtual jdk.jshell.TaskFactory.runTask:(Ljava/util/stream/Stream;Ljdk/jshell/TaskFactory$SourceHandler;Ljava/util/List;Ljava/util/function/BiFunction;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jshell/TaskFactory;
0 7 1 wraps Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;
0 7 2 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$CompileTask;TZ;>;
1 7 3 sh Ljdk/jshell/TaskFactory$WrapSourceHandler;
Signature: <Z:Ljava/lang/Object;>(Ljava/util/Collection<Ljdk/jshell/OuterWrap;>;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$CompileTask;TZ;>;)TZ;
MethodParameters:
Name Flags
wraps
worker
private <S, T extends jdk.jshell.TaskFactory$BaseTask, Z> Z runTask(java.util.stream.Stream<S>, jdk.jshell.TaskFactory$SourceHandler<S>, java.util.List<java.lang.String>, java.util.function.BiFunction<com.sun.tools.javac.api.JavacTaskImpl, javax.tools.DiagnosticCollector<javax.tools.JavaFileObject>, T>, jdk.jshell.TaskFactory$Worker<T, Z>);
descriptor: (Ljava/util/stream/Stream;Ljdk/jshell/TaskFactory$SourceHandler;Ljava/util/List;Ljava/util/function/BiFunction;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=11, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.util.ArrayList
dup
aload 3
invokeinterface java.util.List.size:()I
aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.extraCompilerOptions:Ljava/util/List;
invokeinterface java.util.List.size:()I
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 6
start local 6 1: aload 6
aload 3
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: aload 6
aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.extraCompilerOptions:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
3: aload 1
4: aload 0
aload 2
invokedynamic apply(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$SourceHandler;)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/TaskFactory.lambda$3(Ljdk/jshell/TaskFactory$SourceHandler;Ljava/lang/Object;)Ljavax/tools/JavaFileObject; (7)
(Ljava/lang/Object;)Ljavax/tools/JavaFileObject;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: 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.lang.Iterable
6: astore 7
start local 7 7: new javax.tools.DiagnosticCollector
dup
invokespecial javax.tools.DiagnosticCollector.<init>:()V
astore 8
start local 8 8: aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
iconst_2
ldc "Task (%s %s) Options: %s\n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 7
aastore
dup
iconst_2
aload 6
aastore
invokevirtual jdk.jshell.JShell.debug:(ILjava/lang/String;[Ljava/lang/Object;)V
9: aload 0
getfield jdk.jshell.TaskFactory.javacTaskPool:Lcom/sun/tools/javac/api/JavacTaskPool;
aconst_null
aload 0
getfield jdk.jshell.TaskFactory.fileManager:Ljdk/jshell/MemoryFileManager;
aload 8
aload 6
aconst_null
10: aload 7
aload 0
aload 5
aload 4
aload 8
invokedynamic withTask(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$Worker;Ljava/util/function/BiFunction;Ljavax/tools/DiagnosticCollector;)Lcom/sun/tools/javac/api/JavacTaskPool$Worker;
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:
(Lcom/sun/source/util/JavacTask;)Ljava/lang/Object;
jdk/jshell/TaskFactory.lambda$4(Ljdk/jshell/TaskFactory$Worker;Ljava/util/function/BiFunction;Ljavax/tools/DiagnosticCollector;Lcom/sun/source/util/JavacTask;)Ljava/lang/Object; (7)
(Lcom/sun/source/util/JavacTask;)Ljava/lang/Object;
11: invokevirtual com.sun.tools.javac.api.JavacTaskPool.getTask:(Ljava/io/Writer;Ljavax/tools/JavaFileManager;Ljavax/tools/DiagnosticListener;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Lcom/sun/tools/javac/api/JavacTaskPool$Worker;)Ljava/lang/Object;
areturn
end local 8 end local 7 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 12 0 this Ljdk/jshell/TaskFactory;
0 12 1 inputs Ljava/util/stream/Stream<TS;>;
0 12 2 sh Ljdk/jshell/TaskFactory$SourceHandler<TS;>;
0 12 3 options Ljava/util/List<Ljava/lang/String;>;
0 12 4 creator Ljava/util/function/BiFunction<Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;TT;>;
0 12 5 worker Ljdk/jshell/TaskFactory$Worker<TT;TZ;>;
1 12 6 allOptions Ljava/util/List<Ljava/lang/String;>;
7 12 7 compilationUnits Ljava/lang/Iterable<+Ljavax/tools/JavaFileObject;>;
8 12 8 diagnostics Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;
Signature: <S:Ljava/lang/Object;T:Ljdk/jshell/TaskFactory$BaseTask;Z:Ljava/lang/Object;>(Ljava/util/stream/Stream<TS;>;Ljdk/jshell/TaskFactory$SourceHandler<TS;>;Ljava/util/List<Ljava/lang/String;>;Ljava/util/function/BiFunction<Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;TT;>;Ljdk/jshell/TaskFactory$Worker<TT;TZ;>;)TZ;
MethodParameters:
Name Flags
inputs
sh
options
creator
worker
<Z> Z parse(java.lang.String, jdk.jshell.TaskFactory$Worker<jdk.jshell.TaskFactory$ParseTask, Z>);
descriptor: (Ljava/lang/String;Ljdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aload 0
aload 2
aload 1
invokedynamic withTask(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$Worker;Ljava/lang/String;)Ljdk/jshell/TaskFactory$Worker;
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:
(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
jdk/jshell/TaskFactory.lambda$5(Ljdk/jshell/TaskFactory$Worker;Ljava/lang/String;Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object; (7)
(Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object;
invokevirtual jdk.jshell.TaskFactory.parse:(Ljava/lang/String;ZLjdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 1 source Ljava/lang/String;
0 1 2 worker Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$ParseTask;TZ;>;
Signature: <Z:Ljava/lang/Object;>(Ljava/lang/String;Ljdk/jshell/TaskFactory$Worker<Ljdk/jshell/TaskFactory$ParseTask;TZ;>;)TZ;
MethodParameters:
Name Flags
source final
worker
private void initTaskPool();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new com.sun.tools.javac.api.JavacTaskPool
dup
iconst_5
invokespecial com.sun.tools.javac.api.JavacTaskPool.<init>:(I)V
putfield jdk.jshell.TaskFactory.javacTaskPool:Lcom/sun/tools/javac/api/JavacTaskPool;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jshell/TaskFactory;
private jdk.jshell.TaskFactory$ParseTask lambda$0(jdk.jshell.TaskFactory$StringSourceHandler, boolean, com.sun.tools.javac.api.JavacTaskImpl, javax.tools.DiagnosticCollector);
descriptor: (Ljdk/jshell/TaskFactory$StringSourceHandler;ZLcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$ParseTask;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 3 start local 4 0: new jdk.jshell.TaskFactory$ParseTask
dup
aload 0
aload 1
aload 3
aload 4
iload 2
invokespecial jdk.jshell.TaskFactory$ParseTask.<init>:(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$SourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;Z)V
areturn
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 3 jti Lcom/sun/tools/javac/api/JavacTaskImpl;
0 1 4 diagnostics Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;
private jdk.jshell.TaskFactory$AnalyzeTask lambda$1(jdk.jshell.TaskFactory$WrapSourceHandler, com.sun.tools.javac.api.JavacTaskImpl, javax.tools.DiagnosticCollector);
descriptor: (Ljdk/jshell/TaskFactory$WrapSourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$AnalyzeTask;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 2 start local 3 0: new jdk.jshell.TaskFactory$AnalyzeTask
dup
aload 0
aload 1
aload 2
aload 3
invokespecial jdk.jshell.TaskFactory$AnalyzeTask.<init>:(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$SourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)V
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 2 jti Lcom/sun/tools/javac/api/JavacTaskImpl;
0 1 3 diagnostics Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;
private jdk.jshell.TaskFactory$CompileTask lambda$2(jdk.jshell.TaskFactory$WrapSourceHandler, com.sun.tools.javac.api.JavacTaskImpl, javax.tools.DiagnosticCollector);
descriptor: (Ljdk/jshell/TaskFactory$WrapSourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)Ljdk/jshell/TaskFactory$CompileTask;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 2 start local 3 0: new jdk.jshell.TaskFactory$CompileTask
dup
aload 0
aload 1
aload 2
aload 3
invokespecial jdk.jshell.TaskFactory$CompileTask.<init>:(Ljdk/jshell/TaskFactory;Ljdk/jshell/TaskFactory$SourceHandler;Lcom/sun/tools/javac/api/JavacTaskImpl;Ljavax/tools/DiagnosticCollector;)V
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 2 jti Lcom/sun/tools/javac/api/JavacTaskImpl;
0 1 3 diagnostics Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;
private javax.tools.JavaFileObject lambda$3(jdk.jshell.TaskFactory$SourceHandler, java.lang.Object);
descriptor: (Ljdk/jshell/TaskFactory$SourceHandler;Ljava/lang/Object;)Ljavax/tools/JavaFileObject;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 1
aload 0
getfield jdk.jshell.TaskFactory.fileManager:Ljdk/jshell/MemoryFileManager;
aload 2
invokeinterface jdk.jshell.TaskFactory$SourceHandler.sourceToFileObject:(Ljdk/jshell/MemoryFileManager;Ljava/lang/Object;)Ljavax/tools/JavaFileObject;
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/TaskFactory;
0 1 2 in TS;
private java.lang.Object lambda$4(jdk.jshell.TaskFactory$Worker, java.util.function.BiFunction, javax.tools.DiagnosticCollector, com.sun.source.util.JavacTask);
descriptor: (Ljdk/jshell/TaskFactory$Worker;Ljava/util/function/BiFunction;Ljavax/tools/DiagnosticCollector;Lcom/sun/source/util/JavacTask;)Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=15, args_size=5
start local 0 start local 4 0: aload 4
checkcast com.sun.tools.javac.api.JavacTaskImpl
astore 5
start local 5 1: aload 5
invokevirtual com.sun.tools.javac.api.JavacTaskImpl.getContext:()Lcom/sun/tools/javac/util/Context;
astore 6
start local 6 2: aload 6
invokestatic jdk.jshell.TaskFactory$DisableAccessibilityResolve.preRegister:(Lcom/sun/tools/javac/util/Context;)V
3: aload 5
new jdk.jshell.TaskFactory$TaskListenerImpl
dup
aload 6
aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
invokespecial jdk.jshell.TaskFactory$TaskListenerImpl.<init>:(Lcom/sun/tools/javac/util/Context;Ljdk/jshell/JShell;)V
invokevirtual com.sun.tools.javac.api.JavacTaskImpl.addTaskListener:(Lcom/sun/source/util/TaskListener;)V
4: aload 1
aload 2
aload 5
aload 3
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jshell.TaskFactory$BaseTask
invokeinterface jdk.jshell.TaskFactory$Worker.withTask:(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
astore 8
5: aload 6
invokestatic com.sun.tools.javac.code.Symtab.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/code/Symtab;
astore 9
start local 9 6: aload 6
invokestatic com.sun.tools.javac.util.Names.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/util/Names;
astore 10
start local 10 7: aload 9
getfield com.sun.tools.javac.code.Symtab.java_base:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
aload 9
getfield com.sun.tools.javac.code.Symtab.noModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
if_acmpne 8
aload 9
getfield com.sun.tools.javac.code.Symtab.noModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
goto 9
8: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context top java.lang.Object com.sun.tools.javac.code.Symtab com.sun.tools.javac.util.Names
StackMap stack:
aload 9
getfield com.sun.tools.javac.code.Symtab.unnamedModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
9: StackMap locals:
StackMap stack: com.sun.tools.javac.code.Symbol$ModuleSymbol
astore 11
start local 11 10: aload 9
aload 11
aload 10
ldc "REPL"
invokevirtual com.sun.tools.javac.util.Names.fromString:(Ljava/lang/String;)Lcom/sun/tools/javac/util/Name;
invokevirtual com.sun.tools.javac.code.Symtab.getPackage:(Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;Lcom/sun/tools/javac/util/Name;)Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
astore 12
start local 12 11: aload 12
ifnull 19
12: aload 9
invokevirtual com.sun.tools.javac.code.Symtab.getAllClasses:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 14
goto 16
StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context top java.lang.Object com.sun.tools.javac.code.Symtab com.sun.tools.javac.util.Names com.sun.tools.javac.code.Symbol$ModuleSymbol com.sun.tools.javac.code.Symbol$PackageSymbol top java.util.Iterator
StackMap stack:
13: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.javac.code.Symbol$ClassSymbol
astore 13
start local 13 14: aload 13
invokevirtual com.sun.tools.javac.code.Symbol$ClassSymbol.packge:()Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
aload 12
if_acmpne 16
15: aload 9
aload 11
aload 13
invokevirtual com.sun.tools.javac.code.Symbol$ClassSymbol.flatName:()Lcom/sun/tools/javac/util/Name;
invokevirtual com.sun.tools.javac.code.Symtab.removeClass:(Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;Lcom/sun/tools/javac/util/Name;)V
end local 13 16: StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
17: aload 12
aconst_null
putfield com.sun.tools.javac.code.Symbol$PackageSymbol.members_field:Lcom/sun/tools/javac/code/Scope$WriteableScope;
18: aload 12
aload 6
invokestatic com.sun.tools.javac.code.ClassFinder.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/code/ClassFinder;
invokevirtual com.sun.tools.javac.code.ClassFinder.getCompleter:()Lcom/sun/tools/javac/code/Symbol$Completer;
putfield com.sun.tools.javac.code.Symbol$PackageSymbol.completer:Lcom/sun/tools/javac/code/Symbol$Completer;
end local 12 end local 11 end local 10 end local 9 19: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context top java.lang.Object
StackMap stack:
aload 8
areturn
20: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context
StackMap stack: java.lang.Throwable
astore 7
21: aload 6
invokestatic com.sun.tools.javac.code.Symtab.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/code/Symtab;
astore 9
start local 9 22: aload 6
invokestatic com.sun.tools.javac.util.Names.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/util/Names;
astore 10
start local 10 23: aload 9
getfield com.sun.tools.javac.code.Symtab.java_base:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
aload 9
getfield com.sun.tools.javac.code.Symtab.noModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
if_acmpne 24
aload 9
getfield com.sun.tools.javac.code.Symtab.noModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
goto 25
24: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context java.lang.Throwable top com.sun.tools.javac.code.Symtab com.sun.tools.javac.util.Names
StackMap stack:
aload 9
getfield com.sun.tools.javac.code.Symtab.unnamedModule:Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
25: StackMap locals:
StackMap stack: com.sun.tools.javac.code.Symbol$ModuleSymbol
astore 11
start local 11 26: aload 9
aload 11
aload 10
ldc "REPL"
invokevirtual com.sun.tools.javac.util.Names.fromString:(Ljava/lang/String;)Lcom/sun/tools/javac/util/Name;
invokevirtual com.sun.tools.javac.code.Symtab.getPackage:(Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;Lcom/sun/tools/javac/util/Name;)Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
astore 12
start local 12 27: aload 12
ifnull 35
28: aload 9
invokevirtual com.sun.tools.javac.code.Symtab.getAllClasses:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 14
goto 32
StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context java.lang.Throwable top com.sun.tools.javac.code.Symtab com.sun.tools.javac.util.Names com.sun.tools.javac.code.Symbol$ModuleSymbol com.sun.tools.javac.code.Symbol$PackageSymbol top java.util.Iterator
StackMap stack:
29: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.javac.code.Symbol$ClassSymbol
astore 13
start local 13 30: aload 13
invokevirtual com.sun.tools.javac.code.Symbol$ClassSymbol.packge:()Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
aload 12
if_acmpne 32
31: aload 9
aload 11
aload 13
invokevirtual com.sun.tools.javac.code.Symbol$ClassSymbol.flatName:()Lcom/sun/tools/javac/util/Name;
invokevirtual com.sun.tools.javac.code.Symtab.removeClass:(Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;Lcom/sun/tools/javac/util/Name;)V
end local 13 32: StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
33: aload 12
aconst_null
putfield com.sun.tools.javac.code.Symbol$PackageSymbol.members_field:Lcom/sun/tools/javac/code/Scope$WriteableScope;
34: aload 12
aload 6
invokestatic com.sun.tools.javac.code.ClassFinder.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/code/ClassFinder;
invokevirtual com.sun.tools.javac.code.ClassFinder.getCompleter:()Lcom/sun/tools/javac/code/Symbol$Completer;
putfield com.sun.tools.javac.code.Symbol$PackageSymbol.completer:Lcom/sun/tools/javac/code/Symbol$Completer;
end local 12 end local 11 end local 10 end local 9 35: StackMap locals: jdk.jshell.TaskFactory jdk.jshell.TaskFactory$Worker java.util.function.BiFunction javax.tools.DiagnosticCollector com.sun.source.util.JavacTask com.sun.tools.javac.api.JavacTaskImpl com.sun.tools.javac.util.Context java.lang.Throwable
StackMap stack:
aload 7
athrow
end local 6 end local 5 end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/jshell/TaskFactory;
0 36 4 task Lcom/sun/source/util/JavacTask;
1 36 5 jti Lcom/sun/tools/javac/api/JavacTaskImpl;
2 36 6 context Lcom/sun/tools/javac/util/Context;
6 19 9 syms Lcom/sun/tools/javac/code/Symtab;
22 35 9 syms Lcom/sun/tools/javac/code/Symtab;
7 19 10 names Lcom/sun/tools/javac/util/Names;
23 35 10 names Lcom/sun/tools/javac/util/Names;
10 19 11 replModule Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
26 35 11 replModule Lcom/sun/tools/javac/code/Symbol$ModuleSymbol;
11 19 12 repl Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
27 35 12 repl Lcom/sun/tools/javac/code/Symbol$PackageSymbol;
14 16 13 clazz Lcom/sun/tools/javac/code/Symbol$ClassSymbol;
30 32 13 clazz Lcom/sun/tools/javac/code/Symbol$ClassSymbol;
Exception table:
from to target type
4 5 20 any
private java.lang.Object lambda$5(jdk.jshell.TaskFactory$Worker, java.lang.String, jdk.jshell.TaskFactory$ParseTask);
descriptor: (Ljdk/jshell/TaskFactory$Worker;Ljava/lang/String;Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 3 0: aload 3
invokevirtual jdk.jshell.TaskFactory$ParseTask.units:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 4
1: aload 3
invokevirtual jdk.jshell.TaskFactory$ParseTask.units:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
invokeinterface com.sun.source.tree.Tree.getKind:()Lcom/sun/source/tree/Tree$Kind;
getstatic com.sun.source.tree.Tree$Kind.EXPRESSION_STATEMENT:Lcom/sun/source/tree/Tree$Kind;
if_acmpne 4
2: aload 3
invokevirtual jdk.jshell.TaskFactory$ParseTask.getDiagnostics:()Ljdk/jshell/DiagList;
invokevirtual jdk.jshell.DiagList.hasOtherThanNotStatementErrors:()Z
ifeq 4
3: aload 0
aload 2
iconst_1
aload 1
aload 3
invokedynamic withTask(Ljdk/jshell/TaskFactory$Worker;Ljdk/jshell/TaskFactory$ParseTask;)Ljdk/jshell/TaskFactory$Worker;
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:
(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
jdk/jshell/TaskFactory.lambda$6(Ljdk/jshell/TaskFactory$Worker;Ljdk/jshell/TaskFactory$ParseTask;Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object; (6)
(Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object;
invokevirtual jdk.jshell.TaskFactory.parse:(Ljava/lang/String;ZLjdk/jshell/TaskFactory$Worker;)Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 3
invokeinterface jdk.jshell.TaskFactory$Worker.withTask:(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
areturn
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/TaskFactory;
0 5 3 pt Ljdk/jshell/TaskFactory$ParseTask;
private static java.lang.Object lambda$6(jdk.jshell.TaskFactory$Worker, jdk.jshell.TaskFactory$ParseTask, jdk.jshell.TaskFactory$ParseTask);
descriptor: (Ljdk/jshell/TaskFactory$Worker;Ljdk/jshell/TaskFactory$ParseTask;Ljdk/jshell/TaskFactory$ParseTask;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 2
invokevirtual jdk.jshell.TaskFactory$ParseTask.getDiagnostics:()Ljdk/jshell/DiagList;
invokevirtual jdk.jshell.DiagList.hasOtherThanNotStatementErrors:()Z
ifne 2
1: aload 0
aload 2
invokeinterface jdk.jshell.TaskFactory$Worker.withTask:(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface jdk.jshell.TaskFactory$Worker.withTask:(Ljdk/jshell/TaskFactory$BaseTask;)Ljava/lang/Object;
areturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 ept Ljdk/jshell/TaskFactory$ParseTask;
}
SourceFile: "TaskFactory.java"
NestMembers:
jdk.jshell.TaskFactory$AnalyzeTask jdk.jshell.TaskFactory$BaseTask jdk.jshell.TaskFactory$CompileTask jdk.jshell.TaskFactory$DisableAccessibilityResolve jdk.jshell.TaskFactory$DisableAccessibilityResolve$Marker jdk.jshell.TaskFactory$ParseTask jdk.jshell.TaskFactory$SourceHandler jdk.jshell.TaskFactory$StringSourceHandler jdk.jshell.TaskFactory$StringSourceHandler$1 jdk.jshell.TaskFactory$TaskListenerImpl jdk.jshell.TaskFactory$Worker jdk.jshell.TaskFactory$WrapSourceHandler
InnerClasses:
public final Kind = com.sun.source.tree.Tree$Kind of com.sun.source.tree.Tree
public abstract Worker = com.sun.tools.javac.api.JavacTaskPool$Worker of com.sun.tools.javac.api.JavacTaskPool
public ClassSymbol = com.sun.tools.javac.code.Symbol$ClassSymbol of com.sun.tools.javac.code.Symbol
public abstract Completer = com.sun.tools.javac.code.Symbol$Completer of com.sun.tools.javac.code.Symbol
public ModuleSymbol = com.sun.tools.javac.code.Symbol$ModuleSymbol of com.sun.tools.javac.code.Symbol
public PackageSymbol = com.sun.tools.javac.code.Symbol$PackageSymbol of com.sun.tools.javac.code.Symbol
public final Version = java.lang.Runtime$Version of java.lang.Runtime
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
CompileTask = jdk.jshell.TaskFactory$CompileTask of jdk.jshell.TaskFactory
private final DisableAccessibilityResolve = jdk.jshell.TaskFactory$DisableAccessibilityResolve of jdk.jshell.TaskFactory
ParseTask = jdk.jshell.TaskFactory$ParseTask of jdk.jshell.TaskFactory
private abstract SourceHandler = jdk.jshell.TaskFactory$SourceHandler of jdk.jshell.TaskFactory
private StringSourceHandler = jdk.jshell.TaskFactory$StringSourceHandler of jdk.jshell.TaskFactory
private final TaskListenerImpl = jdk.jshell.TaskFactory$TaskListenerImpl of jdk.jshell.TaskFactory
abstract Worker = jdk.jshell.TaskFactory$Worker of jdk.jshell.TaskFactory
private WrapSourceHandler = jdk.jshell.TaskFactory$WrapSourceHandler of jdk.jshell.TaskFactory