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, write
protected final CPUTF8 attributeName
protected void doWrite(DataOutputStream dos) throws IOException
doWrite
in class ClassFileEntry
IOException
public boolean equals(Object obj)
equals
in class ClassFileEntry
protected CPUTF8 getAttributeName()
protected abstract int getLength()
protected int getLengthIncludingHeader()
protected ClassFileEntry[] getNestedClassFileEntries()
getNestedClassFileEntries
in class ClassFileEntry
public boolean hasBCIRenumbering()
public boolean isSourceFileAttribute()
public int hashCode()
hashCode
in class ClassFileEntry
protected void resolve(ClassConstantPool pool)
ClassFileEntry
resolve
in class ClassFileEntry
pool
- TODOprotected abstract void writeBody(DataOutputStream dos) throws IOException
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.