package abstractSyntaxTree.Class; import TypeCheck.TypeCheckResult; import abstractSyntaxTree.Program; import org.objectweb.asm.ClassWriter; import java.util.HashMap; import java.util.List; public class MethodDecl implements IClass { // name private HashMap>> methodContext; private HashMap> typeContext; //TODO: Move this into the typeCheck private HashMap localVars; // (type, identifier) // add content here public MethodDecl(HashMap>> methodContext, HashMap> typeContext){ this.methodContext = methodContext; this.typeContext = typeContext; } public TypeCheckResult typeCheck(List fieldsOrMethods) throws Exception { // write localvars // jede methode als block statement aufrufen return null; } @Override public void codeGen(ClassWriter cw) { } }