constants.put(module_md5, "module_md5");
}
for (Map.Entry<EObject, String> ent : constants.entrySet()) {
EObject term = ent.getKey();
Type type = getConstantType(term);
ETuple tup;
if (((tup=term.testTuple()) != null || term.testCons() != null)
&& term != ERT.NIL
&& !type.equals(ESTRING_TYPE)
&& !( tup != null && tup.arity()==5 && tup.elm(1) == ETuple.am_Elixir_Regex)
) {
EBinary bin = ErlConvert.term_to_binary(term, EList.make(ErlConvert.am_compressed));
bin.emit_const(mv);
mv.visitMethodInsn(INVOKESTATIC,
Type.getType(ErlConvert.class).getInternalName(),
"binary_to_term",
EUtil.getSignature(1, false));
mv.visitTypeInsn(CHECKCAST, type.getInternalName());
} else {
term.emit_const(mv);
}
mv.visitFieldInsn(Opcodes.PUTSTATIC, self_type.getInternalName(),
ent.getValue(), type
.getDescriptor());