Class ConstantPoolEntry
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- kala.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 byteCP_Classstatic byteCP_Doublestatic byteCP_Fieldrefstatic byteCP_Floatstatic byteCP_Integerstatic byteCP_InterfaceMethodrefstatic byteCP_Longstatic byteCP_Methodrefstatic byteCP_NameAndTypestatic byteCP_Stringstatic byteCP_UTF8protected intglobalIndex(package private) bytetag-
Fields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
-
Constructor Summary
Constructors Constructor Description ConstantPoolEntry(byte tag, int globalIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoWrite(java.io.DataOutputStream dos)abstract booleanequals(java.lang.Object obj)intgetGlobalIndex()bytegetTag()abstract inthashCode()protected abstract voidwriteBody(java.io.DataOutputStream dos)-
Methods inherited from class kala.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
-
tag
byte tag
-
globalIndex
protected int globalIndex
-
-
Method Detail
-
doWrite
public void doWrite(java.io.DataOutputStream dos) throws java.io.IOException- Specified by:
doWritein classClassFileEntry- Throws:
java.io.IOException
-
equals
public abstract boolean equals(java.lang.Object obj)
- Specified by:
equalsin classClassFileEntry
-
getGlobalIndex
public int getGlobalIndex()
-
getTag
public byte getTag()
-
hashCode
public abstract int hashCode()
- Specified by:
hashCodein classClassFileEntry
-
writeBody
protected abstract void writeBody(java.io.DataOutputStream dos) throws java.io.IOException- Throws:
java.io.IOException
-
-