/* methodindices */
code = _m_symbols.getCode();
if (_symbols.size() > 0) {
int register = pool.addMethodRef(pool.addClass("anvil/core/Register"),
"register", "(Ljava/lang/String;)I");
BindingEnumeration e = _symbols.keysAndElements();
while(e.hasMoreElements()) {
int index = ((Integer)e.nextKey()).intValue();
String name = (String)e.nextElement();
Field field = clazz.createField("r_"+name, "I", ACC_PUBLIC|ACC_STATIC|ACC_FINAL);
code.astring(name);
code.invokestatic(register);
code.putstatic(field);
}
}
code.vreturn();
/* reflectionfields */
if (_reflections.size() > 0) {
BindingEnumeration e = _reflections.keysAndElements();
while(e.hasMoreElements()) {
int index = ((Integer)e.nextElement()).intValue();
clazz.createField("java$"+index, "Lanvil/core/reflect/Reflection;", ACC_PUBLIC|ACC_STATIC);
}
}
popClass();
try {
clazz.write(_smith);
return true;
} catch (IOException e) {
e.printStackTrace();
return false;
}
}