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 byte
The constant 0x7 for a constant pool class.static final byte
The constant 0x6 for a constant pool double.static final byte
The constant 0x9 for a constant pool field reference.static final byte
The constant 0x4 for a constant pool float.static final byte
The constant 0x3 for a constant pool int.static final byte
The constant 0xb for a constant pool interface method reference.static final byte
The constant 0x5 for a constant pool long.static final byte
The constant 0xa for a constant pool method reference.static final byte
The constant 0xc for a constant pool name and type.static final byte
The constant 0x8 for a constant pool string.static final byte
The constant 0x1 for a constant pool UTF8.protected int
Global index.Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doWrite
(DataOutputStream dos) Writes this instance to the output stream.abstract boolean
int
Gets the global index.byte
getTag()
Gets the tag.abstract int
hashCode()
protected abstract void
Writes 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:ClassFileEntry
Writes this instance to the output stream.- Specified by:
doWrite
in classClassFileEntry
- Parameters:
dos
- the output stream.- Throws:
IOException
- if an I/O error occurs.
-
equals
- Specified by:
equals
in classClassFileEntry
-
getGlobalIndex
Gets the global index.- Returns:
- the global index.
-
getTag
Gets the tag.- Returns:
- the tag.
-
hashCode
- Specified by:
hashCode
in classClassFileEntry
-
writeBody
Writes this instance to the given output stream.- Parameters:
dos
- the output stream.- Throws:
IOException
- if an I/O error occurs.
-