Home | History | Annotate | Download | only in editor

Lines Matching refs:attributes

27  * This class can add and delete attributes to and from classes, fields,
28 * methods, and code attributes. Attributes to be added must be filled out
30 * attributes of the same type are always replaced.
43 * Creates a new AttributeAdder that will edit attributes in the given
54 * Creates a new AttributeAdder that will edit attributes in the given
66 * Creates a new AttributeAdder that will edit attributes in the given
92 targetAttribute.attributes,
96 targetAttribute.attributes =
98 targetAttribute.attributes,
109 targetMember.attributes,
113 targetMember.attributes =
115 targetMember.attributes,
126 targetClass.attributes,
130 targetClass.attributes =
132 targetClass.attributes,
151 targetAttribute.attributes,
158 targetMember.attributes,
165 targetClass.attributes,
178 Attribute[] attributes,
183 attributes,
190 attributes[index] = attribute;
197 * Appends the given attribute to the given array of attributes, creating a
201 Attribute[] attributes,
205 if (attributes.length <= attributesCount)
207 // Create a new array and copy the attributes into it.
209 System.arraycopy(attributes, 0,
212 attributes = newAttributes;
216 attributes[attributesCount] = attribute;
218 return attributes;
223 * Deletes the attributes with the given name from the given array of
224 * attributes, returning the new number of attributes.
227 Attribute[] attributes,
232 attributes,
239 // Shift the other attributes in the array.
240 System.arraycopy(attributes, index + 1,
241 attributes, index,
245 attributes[--attributesCount] = null;
253 * array of attributes.
256 Attribute[] attributes,
261 if (attributes[index].getAttributeName(targetClass).equals(attributeName))