Commit 680c956d authored by Yudi Zheng's avatar Yudi Zheng
Browse files

Some stub class files of DiSL.

parent 6f5faf6a
package ch.usi.dag.disl;
import org.objectweb.asm.tree.ClassNode;
//FIXME When integrating with jborat, add the implement field
// and the override annotation.
public class DiSLInstrumentation {
public void instrument(ClassNode clazz) {
// Four steps to instrument classes:
// Parser.parse();
// Marker.mark(method);
// Analyzer.analyse(clazz);
// Weaver.weave(clazz);
}
}
package ch.usi.dag.disl.analyzer;
import org.objectweb.asm.tree.ClassNode;
// Provide static analysis of the java class.
public class Analyzer {
public static void analyse(ClassNode clazz){
}
}
package ch.usi.dag.disl.parser;
// The parser takes annotated java files as input and outputs some
// specification for the other three steps.
public class Parser {
public static void parse() {
}
}
package ch.usi.dag.disl.weaver;
import org.objectweb.asm.tree.ClassNode;
// The weaver instruments byte-codes into java class.
public class Weaver {
public static void weave(ClassNode clazz) {
}
}
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