java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
Direct Known Subclasses:
Attribute, ByteCode, ConstantPoolEntry, CPMember

public abstract class ClassFileEntry extends Object
The abstract superclass for all types of class file entries.
  • Field Details

    • NONE

      protected static final ClassFileEntry[] NONE
      An empty ClassFileEntry array.
    • resolved

      private boolean resolved
  • Constructor Details

    • ClassFileEntry

      public ClassFileEntry()
  • Method Details

    • doWrite

      protected abstract void doWrite(DataOutputStream dos) throws IOException
      Writes this instance to the output stream.
      Parameters:
      dos - the output stream.
      Throws:
      IOException - if an I/O error occurs.
    • equals

      public abstract boolean equals(Object arg0)
      Overrides:
      equals in class Object
    • getNestedClassFileEntries

      protected ClassFileEntry[] getNestedClassFileEntries()
      Returns an empty array.
      Returns:
      an empty array.
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • objectHashCode

      protected int objectHashCode()
      Delegates to super hashCode().
      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 String toString()
      Overrides:
      toString in class Object
    • write

      public final void write(DataOutputStream dos) throws IOException
      Writes this instance to the output stream.
      Parameters:
      dos - the output stream.
      Throws:
      IOException - if an I/O error occurs.