Class CPClass
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.CPClass
Constant pool entry for a class
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
protected ClassFileEntry[]
int
hashCode()
protected void
resolve
(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.toString()
protected void
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTag
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
name
-
-
Constructor Details
-
CPClass
Creates a new CPClass- Parameters:
name
- TODOglobalIndex
- index in CpBands- Throws:
NullPointerException
- if name is null
-
-
Method Details
-
equals
- Specified by:
equals
in classConstantPoolEntry
-
getName
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntries
in classClassFileEntry
-
hashCode
- Specified by:
hashCode
in classConstantPoolEntry
-
resolve
Description copied from class:ClassFileEntry
Allows the constant pool entries to resolve their nested entries.- Overrides:
resolve
in classClassFileEntry
- Parameters:
pool
- TODO
-
toString
- Specified by:
toString
in classClassFileEntry
-
writeBody
- Specified by:
writeBody
in classConstantPoolEntry
- Throws:
IOException
-