Class ClassFileEntry
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- Direct Known Subclasses:
Attribute,ByteCode,ConstantPoolEntry,CPMember
public abstract class ClassFileEntry extends java.lang.Object
The abstract superclass for all types of class file entries.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ClassFileEntry[]NONEAn empty ClassFileEntry array.
-
Constructor Summary
Constructors Constructor Description ClassFileEntry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoWrite(java.io.DataOutputStream dos)Writes this instance to the output stream.abstract booleanequals(java.lang.Object arg0)protected ClassFileEntry[]getNestedClassFileEntries()Returns an empty array.abstract inthashCode()protected intobjectHashCode()Delegates to superhashCode().protected voidresolve(ClassConstantPool pool)Allows the constant pool entries to resolve their nested entries.abstract java.lang.StringtoString()voidwrite(java.io.DataOutputStream dos)Writes this instance to the output stream.
-
-
-
Field Detail
-
NONE
protected static final ClassFileEntry[] NONE
An empty ClassFileEntry array.
-
-
Constructor Detail
-
ClassFileEntry
public ClassFileEntry()
-
-
Method Detail
-
doWrite
protected abstract void doWrite(java.io.DataOutputStream dos) throws java.io.IOException
Writes this instance to the output stream.- Parameters:
dos- the output stream.- Throws:
java.io.IOException- if an I/O error occurs.
-
equals
public abstract boolean equals(java.lang.Object arg0)
- Overrides:
equalsin classjava.lang.Object
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
Returns an empty array.- Returns:
- an empty array.
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
objectHashCode
protected int objectHashCode()
Delegates to superhashCode().- Returns:
- super
hashCode().
-
resolve
protected void resolve(ClassConstantPool pool)
Allows the constant pool entries to resolve their nested entries.- Parameters:
pool- The class constant pool.
-
toString
public abstract java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
write
public final void write(java.io.DataOutputStream dos) throws java.io.IOException
Writes this instance to the output stream.- Parameters:
dos- the output stream.- Throws:
java.io.IOException- if an I/O error occurs.
-
-