protected int resolveLabel(LabelNode label) { if (labels.containsKey(label)) { return labels.get(label); } else { int newLabelIndex = labels.size() + 1; labels.put(label, newLabelIndex); return newLabelIndex; } }
public LocalVariable addLocalVariable(String variable, LabelNode label, Class clazz) { LocalVariable result; localVariables.put( variable, result = new LocalVariable(variable, localVariables.size(), label, clazz)); return result; }