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 org.apache.commons.compress.harmony.unpack200.bytecode.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 org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, toString, write
-
Field Details
-
CP_Class
The constant 0x7 for a constant pool class.- See Also:
-
CP_Double
The constant 0x6 for a constant pool double.- See Also:
-
CP_Fieldref
The constant 0x9 for a constant pool field reference.- See Also:
-
CP_Float
The constant 0x4 for a constant pool float.- See Also:
-
CP_Integer
The constant 0x3 for a constant pool int.- See Also:
-
CP_InterfaceMethodref
The constant 0xb for a constant pool interface method reference.- See Also:
-
CP_Long
The constant 0x5 for a constant pool long.- See Also:
-
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
The constant 0x8 for a constant pool string.- See Also:
-
CP_UTF8
The constant 0x1 for a constant pool UTF8.- See Also:
-
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
Gets the global index.- Returns:
- the global index.
-
getTag
Gets the tag.- Returns:
- the tag.
-
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.
-