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
public abstract class ConstantPoolEntry extends ClassFileEntry
Abstract superclass for constant pool entries
-
-
Field Summary
Fields Modifier and Type Field Description static byte
CP_Class
static byte
CP_Double
static byte
CP_Fieldref
static byte
CP_Float
static byte
CP_Integer
static byte
CP_InterfaceMethodref
static byte
CP_Long
static byte
CP_Methodref
static byte
CP_NameAndType
static byte
CP_String
static byte
CP_UTF8
protected int
globalIndex
-
Fields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doWrite(java.io.DataOutputStream dos)
abstract boolean
equals(java.lang.Object obj)
int
getGlobalIndex()
byte
getTag()
abstract int
hashCode()
protected abstract void
writeBody(java.io.DataOutputStream dos)
-
Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, toString, write
-
-
-
-
Field Detail
-
CP_Class
public static final byte CP_Class
- See Also:
- Constant Field Values
-
CP_Double
public static final byte CP_Double
- See Also:
- Constant Field Values
-
CP_Fieldref
public static final byte CP_Fieldref
- See Also:
- Constant Field Values
-
CP_Float
public static final byte CP_Float
- See Also:
- Constant Field Values
-
CP_Integer
public static final byte CP_Integer
- See Also:
- Constant Field Values
-
CP_InterfaceMethodref
public static final byte CP_InterfaceMethodref
- See Also:
- Constant Field Values
-
CP_Long
public static final byte CP_Long
- See Also:
- Constant Field Values
-
CP_Methodref
public static final byte CP_Methodref
- See Also:
- Constant Field Values
-
CP_NameAndType
public static final byte CP_NameAndType
- See Also:
- Constant Field Values
-
CP_String
public static final byte CP_String
- See Also:
- Constant Field Values
-
CP_UTF8
public static final byte CP_UTF8
- See Also:
- Constant Field Values
-
globalIndex
protected int globalIndex
-
-
Method Detail
-
equals
public abstract boolean equals(java.lang.Object obj)
- Specified by:
equals
in classClassFileEntry
-
getTag
public byte getTag()
-
hashCode
public abstract int hashCode()
- Specified by:
hashCode
in classClassFileEntry
-
doWrite
public void doWrite(java.io.DataOutputStream dos) throws java.io.IOException
- Specified by:
doWrite
in classClassFileEntry
- Throws:
java.io.IOException
-
writeBody
protected abstract void writeBody(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
getGlobalIndex
public int getGlobalIndex()
-
-