From adda1db1954ff2ce29f22163f1e356e1762443af Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 5 Jul 2017 18:46:08 +0200 Subject: [PATCH] Add parse(String) to Compiler --- src/de/dhbwstuttgart/core/JavaTXCompiler.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/de/dhbwstuttgart/core/JavaTXCompiler.java index aa07361c..70503e1a 100644 --- a/src/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -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; + } + }