2024-05-02 11:12:39 +00:00
|
|
|
package abstractSyntaxTree.Class;
|
|
|
|
|
2024-05-08 08:10:44 +00:00
|
|
|
import TypeCheck.TypeCheckResult;
|
2024-05-08 12:15:11 +00:00
|
|
|
import org.objectweb.asm.ClassWriter;
|
2024-05-08 12:28:01 +00:00
|
|
|
import org.objectweb.asm.TypeReference;
|
2024-05-08 08:10:44 +00:00
|
|
|
|
|
|
|
import java.util.List;
|
2024-05-02 11:12:39 +00:00
|
|
|
|
2024-05-08 08:10:44 +00:00
|
|
|
public interface IClass {
|
2024-05-02 11:12:39 +00:00
|
|
|
// visit method for code generation
|
2024-05-08 12:15:11 +00:00
|
|
|
|
2024-05-08 12:28:01 +00:00
|
|
|
TypeCheckResult typeCheck() throws Exception;
|
|
|
|
void codeGen(ClassWriter cw) throws Exception;
|
2024-05-08 12:15:11 +00:00
|
|
|
|
2024-05-02 11:12:39 +00:00
|
|
|
}
|