public BytecodeValue getCompleteClass() {
BytecodeContext context = new BytecodeContextImpl(coreContext);
BytecodeFunction init = (BytecodeFunction) context.getValue("$init");
init.run(new ArrayList<BytecodeValue>(), context);
for(Definition def : defs) {
context = def.accept(new BytecodeDefVisitor(context));
}
return new BytecodeClass(context);
}