Class ClassFileEntry
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
- Direct Known Subclasses:
Attribute,ByteCode,ConstantPoolEntry,CPMember
The abstract superclass for all types of class file entries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ClassFileEntry[]An empty ClassFileEntry array. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoWrite(DataOutputStream dos) Writes this instance to the output stream.abstract booleanprotected ClassFileEntry[]Returns an empty array.abstract inthashCode()protected intDelegates to superhashCode().protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.abstract StringtoString()final voidwrite(DataOutputStream dos) Writes this instance to the output stream.
-
Field Details
-
NONE
An empty ClassFileEntry array.
-
-
Constructor Details
-
ClassFileEntry
public ClassFileEntry()
-
-
Method Details
-
doWrite
Writes this instance to the output stream.- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-
equals
-
getNestedClassFileEntries
Returns an empty array.- Returns:
- an empty array.
-
hashCode
-
objectHashCode
Delegates to superhashCode().- Returns:
- super
hashCode().
-
resolve
Allows the constant pool entries to resolve their nested entries.- Parameters:
pool- The class constant pool.
-
toString
-
write
Writes this instance to the output stream.- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-