public void compileConstructor(ByteCompiler context)
{
ClassRoom clazz = context.getClassRoom();
ConstantPool pool = clazz.getPool();
Method constructor = clazz.createConstructor("()V", ACC_PUBLIC);
_constructor = constructor;
Code code = constructor.getCode();
StringBuffer clsid = new StringBuffer();
clsid.append("$Id: ");
clsid.append(_address.getPathinfo());
clsid.append(" 1.0 ");
LocalizationPreferences prefs = _address.getZone().getLocalizationPreferences();
Calendar cal = Calendar.getInstance(prefs.getTimezoneInstance(), prefs.getLocaleInstance());
anvil.util.Conversions.toString(clsid, cal);
Field clsidfield = clazz.createField("_id", "Ljava/lang/String;", ACC_PUBLIC|ACC_STATIC|ACC_FINAL);
clsidfield.setConstantValue(pool.addString(clsid.toString()));
context.pushCode(code);
code.self();
code.invokespecial(pool.addMethodRef("anvil/script/compiler/CompiledModule",
"<init>", "()V"));
context.popCode();
Method versionmethod = clazz.createMethod("getVersion", "()I", ACC_PUBLIC);
code = versionmethod.getCode();
context.pushCode(code);
code.iconst(_envelope.getVersion());
code.ireturn();
clazz.createField("_module", "Lanvil/script/compiler/CompiledModule;", ACC_PUBLIC|ACC_STATIC);