public abstract class Attribute extends ClassFileEntry
| Modifier and Type | Field and Description |
|---|---|
protected CPUTF8 |
attributeName |
NONE| Modifier and Type | Method and Description |
|---|---|
protected void |
doWrite(DataOutputStream dos) |
boolean |
equals(Object obj) |
protected CPUTF8 |
getAttributeName() |
protected abstract int |
getLength() |
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).
|
protected ClassFileEntry[] |
getNestedClassFileEntries() |
boolean |
hasBCIRenumbering()
Answer true if the receiver needs to have BCI renumbering applied to it; otherwise answer false.
|
int |
hashCode() |
boolean |
isSourceFileAttribute()
Answer true if the receiver is a source file attribute (which gets special handling when the class is built);
otherwise answer false.
|
protected void |
resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.
|
protected abstract void |
writeBody(DataOutputStream dos) |
objectHashCode, toString, writeprotected final CPUTF8 attributeName
protected void doWrite(DataOutputStream dos) throws IOException
doWrite in class ClassFileEntryIOExceptionpublic boolean equals(Object obj)
equals in class ClassFileEntryprotected CPUTF8 getAttributeName()
protected abstract int getLength()
protected int getLengthIncludingHeader()
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries in class ClassFileEntrypublic boolean hasBCIRenumbering()
public boolean isSourceFileAttribute()
public int hashCode()
hashCode in class ClassFileEntryprotected void resolve(ClassConstantPool pool)
ClassFileEntryresolve in class ClassFileEntrypool - TODOprotected abstract void writeBody(DataOutputStream dos) throws IOException
IOExceptionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.