17 lines
534 B
Java
17 lines
534 B
Java
package abstractSyntaxTree.Class;
|
|
|
|
import TypeCheck.TypeCheckResult;
|
|
import org.objectweb.asm.ClassWriter;
|
|
import org.objectweb.asm.TypeReference;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
|
|
public interface IClass {
|
|
// visit method for code generation
|
|
|
|
TypeCheckResult typeCheck(HashMap<String, HashMap<String, HashMap<String, List<String>>>> methodContext, HashMap<String, HashMap<String, String>> typeContext, List<MethodDecl> fieldsOrMethods) throws Exception;
|
|
void codeGen(ClassWriter cw) throws Exception;
|
|
|
|
}
|