Class CPConstant
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
org.apache.commons.compress.harmony.unpack200.bytecode.CPConstant
- Direct Known Subclasses:
CPConstantNumber
,CPString
Abstract superclass for constant pool constant entries such as numbers or Strings
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndex
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
Constructor Summary
ConstructorDescriptionCPConstant
(byte tag, Object value, int globalIndex) Constructs a new CPConstant. -
Method Summary
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTag, writeBody
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, toString, write
-
Constructor Details
-
CPConstant
Constructs a new CPConstant.- Parameters:
tag
- TODOvalue
- TODOglobalIndex
- index in CpBands- Throws:
NullPointerException
- if value is null
-
-
Method Details
-
equals
- Specified by:
equals
in classConstantPoolEntry
-
getValue
-
hashCode
- Specified by:
hashCode
in classConstantPoolEntry
-