Commit cf6900a6 authored by Lukáš Marek's avatar Lukáš Marek
Browse files

Parser renamed

parent 77f79edc
......@@ -10,7 +10,7 @@ import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode;
import ch.usi.dag.disl.analyzer.Analyzer;
import ch.usi.dag.disl.parser.Parser;
import ch.usi.dag.disl.parser.AnnotationParser;
import ch.usi.dag.disl.snippet.Snippet;
import ch.usi.dag.disl.snippet.marker.MarkedRegion;
import ch.usi.dag.disl.weaver.Weaver;
......@@ -44,7 +44,7 @@ public class DiSLDriver implements Instrumentation {
// - create snippets
// - create analyzers
Parser parser = new Parser();
AnnotationParser parser = new AnnotationParser();
for(byte [] classAsBytes : compiledClasses) {
parser.parse(classAsBytes);
......
......@@ -4,7 +4,7 @@ import ch.usi.dag.disl.snippet.marker.Marker;
public @interface After {
// NOTE if you want to change names, you need to change Parser class
// NOTE if you want to change names, you need to change AnnotationParser class
Class<Marker> marker();
String scope();
int order() default 100;
......
......@@ -4,7 +4,7 @@ import ch.usi.dag.disl.snippet.marker.Marker;
public @interface Before {
// NOTE if you want to change names, you need to change Parser class
// NOTE if you want to change names, you need to change AnnotationParser class
Class<Marker> marker();
String scope();
int order() default 100;
......
......@@ -24,7 +24,7 @@ import ch.usi.dag.disl.snippet.scope.ScopeImpl;
* The parser takes annotated java file as input and creates Snippet and
* Analyzer classes
*/
public class Parser {
public class AnnotationParser {
private List<Snippet> snippets = new LinkedList<Snippet>();
private List<Analyzer> analyzers = new LinkedList<Analyzer>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment