/** * Adds a Code attribute. * * <p>The added attribute must share the same constant pool table as this <code>method_info</code> * structure. */ public void setCodeAttribute(CodeAttribute cattr) { removeCodeAttribute(); if (attribute == null) attribute = new LinkedList(); attribute.add(cattr); }