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
-
public class CPClass extends ConstantPoolEntry
Constant pool entry for a class
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringname-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()protected ClassFileEntry[]getNestedClassFileEntries()Returns an empty array.inthashCode()protected voidresolve(ClassConstantPool pool)Allows the constant pool entries to resolve their nested entries.java.lang.StringtoString()protected voidwriteBody(java.io.DataOutputStream dos)Writes this instance to the given output stream.-
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 Detail
-
name
public java.lang.String name
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin classConstantPoolEntry
-
getName
public java.lang.String getName()
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
Description copied from class:ClassFileEntryReturns an empty array.- Overrides:
getNestedClassFileEntriesin classClassFileEntry- Returns:
- an empty array.
-
hashCode
public int hashCode()
- Specified by:
hashCodein classConstantPoolEntry
-
resolve
protected void resolve(ClassConstantPool pool)
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries.- Overrides:
resolvein classClassFileEntry- Parameters:
pool- The class constant pool.
-
toString
public java.lang.String toString()
- Specified by:
toStringin classClassFileEntry
-
writeBody
protected void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
Description copied from class:ConstantPoolEntryWrites this instance to the given output stream.- Specified by:
writeBodyin classConstantPoolEntry- Parameters:
dos- the output stream.- Throws:
java.io.IOException- if an I/O error occurs.
-
-