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
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: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/jshell/TaskFactory;
0 13 1 state Ljdk/jshell/JShell;
7 13 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: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/TaskFactory;
0 5 1 path Ljava/lang/String;
2 5 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;
jdk.jshell.TaskFactory$ParseTask parse(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/jshell/TaskFactory$ParseTask;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new jdk.jshell.TaskFactory$ParseTask
dup
aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.taskFactory:Ljdk/jshell/TaskFactory;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
aload 1
iconst_0
invokespecial jdk.jshell.TaskFactory$ParseTask.<init>:(Ljdk/jshell/TaskFactory;Ljava/lang/String;Z)V
astore 2
start local 2 1: aload 2
invokevirtual jdk.jshell.TaskFactory$ParseTask.units:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 7
2: aload 2
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 7
3: aload 2
invokevirtual jdk.jshell.TaskFactory$ParseTask.getDiagnostics:()Ljdk/jshell/DiagList;
invokevirtual jdk.jshell.DiagList.hasOtherThanNotStatementErrors:()Z
ifeq 7
4: new jdk.jshell.TaskFactory$ParseTask
dup
aload 0
getfield jdk.jshell.TaskFactory.state:Ljdk/jshell/JShell;
getfield jdk.jshell.JShell.taskFactory:Ljdk/jshell/TaskFactory;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
aload 1
iconst_1
invokespecial jdk.jshell.TaskFactory$ParseTask.<init>:(Ljdk/jshell/TaskFactory;Ljava/lang/String;Z)V
astore 3
start local 3 5: aload 3
invokevirtual jdk.jshell.TaskFactory$ParseTask.getDiagnostics:()Ljdk/jshell/DiagList;
invokevirtual jdk.jshell.DiagList.hasOtherThanNotStatementErrors:()Z
ifne 7
6: aload 3
areturn
end local 3 7: StackMap locals: jdk.jshell.TaskFactory$ParseTask
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/TaskFactory;
0 8 1 source Ljava/lang/String;
1 8 2 pt Ljdk/jshell/TaskFactory$ParseTask;
5 7 3 ept Ljdk/jshell/TaskFactory$ParseTask;
MethodParameters:
Name Flags
source final
static jdk.jshell.MemoryFileManager access$0(jdk.jshell.TaskFactory);
descriptor: (Ljdk/jshell/TaskFactory;)Ljdk/jshell/MemoryFileManager;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield jdk.jshell.TaskFactory.fileManager:Ljdk/jshell/MemoryFileManager;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "TaskFactory.java"
NestMembers:
jdk.jshell.TaskFactory$AnalyzeTask jdk.jshell.TaskFactory$BaseTask jdk.jshell.TaskFactory$CompileTask jdk.jshell.TaskFactory$ParseTask jdk.jshell.TaskFactory$SourceHandler jdk.jshell.TaskFactory$StringSourceHandler jdk.jshell.TaskFactory$StringSourceHandler$1 jdk.jshell.TaskFactory$WrapSourceHandler
InnerClasses:
public final Kind = com.sun.source.tree.Tree$Kind of com.sun.source.tree.Tree
public final Version = java.lang.Runtime$Version of java.lang.Runtime
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
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 WrapSourceHandler = jdk.jshell.TaskFactory$WrapSourceHandler of jdk.jshell.TaskFactory