From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../TestApp/src/Parser/JavascriptParser.java | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Master/Agile Software Development/TestApp/src/Parser/JavascriptParser.java (limited to 'Master/Agile Software Development/TestApp/src/Parser/JavascriptParser.java') diff --git a/Master/Agile Software Development/TestApp/src/Parser/JavascriptParser.java b/Master/Agile Software Development/TestApp/src/Parser/JavascriptParser.java new file mode 100644 index 0000000..4cfe0ec --- /dev/null +++ b/Master/Agile Software Development/TestApp/src/Parser/JavascriptParser.java @@ -0,0 +1,44 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package Parser; + +import testapp.data.ExternalJavascriptItem; +import testapp.data.Item; +import java.util.logging.*; + +public class JavascriptParser { + private Item rootNode; + + private static final Logger logger = Logger.getLogger(JavascriptParser.class.getName()); + + + public JavascriptParser(Item rootNode) { + this.rootNode=rootNode; + } + + public ExternalJavascriptItem parse(String url) { + // Todo: http client to recieve url and put contents into code + String code=new String(); + return parseCode(code, url); + } + + public ExternalJavascriptItem parseCode(String code, String url) { + // the only evil js code should be + //document.write('