FileDocCategorySizeDatePackage
AttributeList.javaAPI DocAndroid 1.5 API2396Wed May 06 22:41:02 BST 2009com.android.dx.cf.iface

AttributeList

public interface AttributeList
Interface for lists of attributes.

Fields Summary
Constructors Summary
Methods Summary
public intbyteLength()
Get the total length of this list in bytes, when part of a class file. The returned value includes the two bytes for the attributes_count length indicator.

return
>= 2; the total length, in bytes

public AttributefindFirst(java.lang.String name)
Get the first attribute in the list with the given name, if any.

param
name non-null; attribute name
return
null-ok; first attribute in the list with the given name, or null if there is none

public AttributefindNext(Attribute attrib)
Get the next attribute in the list after the given one, with the same name, if any.

param
attrib non-null; attribute to start looking after
return
null-ok; next attribute after attrib with the same name as attrib

public Attributeget(int n)
Get the nth attribute.

param
n n >= 0, n < size(); which attribute
return
non-null; the attribute in question

public booleanisMutable()
Get whether this instance is mutable. Note that the AttributeList interface itself doesn't provide any means of mutation, but that doesn't mean that there isn't a non-interface way of mutating an instance.

return
true iff this instance is somehow mutable

public intsize()
Get the number of attributes in the list.

return
the size