public interface AttributeList
| Modifier and Type | Method and Description |
|---|---|
int |
byteLength()
Get the total length of this list in bytes, when part of a
class file.
|
Attribute |
findFirst(java.lang.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.
|
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 attributenon-null; the attribute in questionint byteLength()
attributes_count length indicator.>= 2; the total length, in bytesAttribute findFirst(java.lang.String name)
name - non-null; attribute namenull-ok; first attribute in the list with the given name,
or null if there is noneCopyright © 2020. All Rights Reserved.