|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeList
Interface for lists of attributes.
| Method Summary | |
|---|---|
int |
byteLength()
Get the total length of this list in bytes, when part of a class file. |
Attribute |
findFirst(String name)
Get the first attribute in the list with the given name, if any. |
Attribute |
findNext(Attribute attrib)
Get the next attribute in the list after the given one, with the same name, if any. |
Attribute |
get(int n)
Get the nth attribute. |
boolean |
isMutable()
Get whether this instance is mutable. |
int |
size()
Get the number of attributes in the list. |
| Method Detail |
|---|
boolean isMutable()
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.
true iff this instance is somehow mutableint size()
Attribute get(int n)
nth attribute.
n - n >= 0, n < size(); which attribute
non-null; the attribute in questionint byteLength()
attributes_count length indicator.
>= 2; the total length, in bytesAttribute findFirst(String name)
name - non-null; attribute name
null-ok; first attribute in the list with the given name,
or null if there is noneAttribute findNext(Attribute attrib)
attrib - non-null; attribute to start looking after
null-ok; next attribute after attrib with the
same name as attrib
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||