// generate in-line compares for mapping
for (int i = 0; i < tnames.size(); i++) {
int index = s_mappedClasses.find(tnames.get(i));
if (index >= 0) {
mb.appendLoadLocal(1);
mb.appendLoadConstant((String)tnames.get(i));
mb.appendCallVirtual("java.lang.String.equals",
"(Ljava/lang/Object;)Z");
BranchWrapper onfail = mb.appendIFEQ(this);
mb.appendLoadConstant(index);
mb.appendReturn(Type.INT);