| Modifier and Type | Field and Description |
|---|---|
| protected final CPUTF8 | |
| private int |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doWrite(final DataOutputStream dos)
Implements abstract org. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Implements abstract org. |
| protected CPUTF8 | |
| protected abstract int | |
| protected int | Returns: int adjusted lengthAnswer the length of the receiver including its header (the u2 for the attribute name and the u4 for the attribute length). |
| protected ClassFileEntry[] | |
| public boolean | Returns: boolean BCI renumbering requiredAnswer true if the receiver needs to have BCI renumbering applied to it; otherwise answer false. |
| public int | hashCode()
Implements abstract org. |
| public boolean | Returns: boolean source file attributeAnswer true if the receiver is a source file attribute (which gets special handling when the class is built); otherwise answer false. |
| protected void | resolve(final ClassConstantPool
TODO pool)Overrides org. |
| protected abstract void |
| attributeName | back to summary |
|---|---|
| protected final CPUTF8 attributeName | |
| attributeNameIndex | back to summary |
|---|---|
| private int attributeNameIndex | |
| Attribute | back to summary |
|---|---|
| public Attribute(final CPUTF8 attributeName) | |
| doWrite | back to summary |
|---|---|
| protected void doWrite(final DataOutputStream dos) throws IOException Implements abstract org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Implements abstract org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAttributeName | back to summary |
|---|---|
| protected CPUTF8 getAttributeName() | |
| getLength | back to summary |
|---|---|
| protected abstract int getLength() | |
| getLengthIncludingHeader | back to summary |
|---|---|
| protected int getLengthIncludingHeader() Answer the length of the receiver including its header (the u2 for the attribute name and the u4 for the attribute length). This is relevant when attributes are nested within other attributes - the outer attribute needs to take the inner attribute headers into account when calculating its length.
| |
| getNestedClassFileEntries | back to summary |
|---|---|
| protected ClassFileEntry[] getNestedClassFileEntries() Overrides org.
| |
| hasBCIRenumbering | back to summary |
|---|---|
| public boolean hasBCIRenumbering() Answer true if the receiver needs to have BCI renumbering applied to it; otherwise answer false.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isSourceFileAttribute | back to summary |
|---|---|
| public boolean isSourceFileAttribute() Answer true if the receiver is a source file attribute (which gets special handling when the class is built); otherwise answer false.
| |
| resolve | back to summary |
|---|---|
| protected void resolve(final ClassConstantPool pool) Overrides org. Doc from org. Allows the constant pool entries to resolve their nested entries.
| |
| writeBody | back to summary |
|---|---|
| protected abstract void writeBody(DataOutputStream dos) throws IOException | |