Add parse(String) to Compiler

This commit is contained in:
JanUlrich 2017-07-05 18:46:08 +02:00
parent 2167a4288e
commit adda1db195

View File

@ -78,4 +78,10 @@ public class JavaTXCompiler {
return ret;
}
public SourceFile parse(String source) throws IOException, ClassNotFoundException {
SourceFile ret = new JavaTXParser().parse(source);
sourceFiles.add(ret);
return ret;
}
}