Add an attribute to this method. Currently, the JVM knows about the `Code', `ConstantValue', `Synthetic' and `Exceptions' attributes. Other attributes will be ignored by the JVM but do no harm.parama attribute to be added attribute_vec.add(a);
attribute_vec.add(a);
try { return super.clone(); } catch(CloneNotSupportedException e) { System.err.println(e); return null; }
returnall attributes of this method. Attribute[] attributes = new Attribute[attribute_vec.size()]; attribute_vec.toArray(attributes); return attributes;
Attribute[] attributes = new Attribute[attribute_vec.size()]; attribute_vec.toArray(attributes); return attributes;
return cp;
returnname of method/field. return name;
return name;
returnsignature of method/field.
return type;
Remove an attribute. attribute_vec.remove(a);
attribute_vec.remove(a);
Remove all attributes. attribute_vec.clear();
attribute_vec.clear();
this.cp = cp;
this.name = name;
this.type = type;