Class ConstantPoolEntry
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
- Direct Known Subclasses:
CPClass, CPConstant, CPFieldRef, CPNameAndType, CPRef, CPUTF8
Abstracts constant pool entries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteThe constant 0x7 for a constant pool class.static final byteThe constant 0x6 for a constant pool double.static final byteThe constant 0x9 for a constant pool field reference.static final byteThe constant 0x4 for a constant pool float.static final byteThe constant 0x3 for a constant pool int.static final byteThe constant 0xb for a constant pool interface method reference.static final byteThe constant 0x5 for a constant pool long.static final byteThe constant 0xa for a constant pool method reference.static final byteThe constant 0xc for a constant pool name and type.static final byteThe constant 0x8 for a constant pool string.static final byteThe constant 0x1 for a constant pool UTF8.protected intGlobal index.Fields inherited from class ClassFileEntry
NONE -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWrite(DataOutputStream dos) Writes this instance to the output stream.abstract booleanintGets the global index.bytegetTag()Gets the tag.abstract inthashCode()protected abstract voidWrites this instance to the given output stream.Methods inherited from class ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, toString, write
-
Field Details
-
CP_Class
-
CP_Double
-
CP_Fieldref
The constant 0x9 for a constant pool field reference.- See Also:
-
CP_Float
-
CP_Integer
-
CP_InterfaceMethodref
The constant 0xb for a constant pool interface method reference.- See Also:
-
CP_Long
-
CP_Methodref
The constant 0xa for a constant pool method reference.- See Also:
-
CP_NameAndType
The constant 0xc for a constant pool name and type.- See Also:
-
CP_String
-
CP_UTF8
-
globalIndex
Global index.
-
-
Method Details
-
doWrite
Description copied from class:ClassFileEntryWrites this instance to the output stream.- Specified by:
doWritein classClassFileEntry- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-
equals
- Specified by:
equalsin classClassFileEntry
-
getGlobalIndex
-
getTag
-
hashCode
- Specified by:
hashCodein classClassFileEntry
-
writeBody
Writes this instance to the given output stream.- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-