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
Abstract superclass for constant pool entries
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byteprotected int(package private) byteFields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWrite(DataOutputStream dos) abstract booleanintbytegetTag()abstract inthashCode()protected abstract voidMethods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, toString, write
-
Field Details
-
CP_Class
public static final byte CP_Class- See Also:
-
CP_Double
public static final byte CP_Double- See Also:
-
CP_Fieldref
public static final byte CP_Fieldref- See Also:
-
CP_Float
public static final byte CP_Float- See Also:
-
CP_Integer
public static final byte CP_Integer- See Also:
-
CP_InterfaceMethodref
public static final byte CP_InterfaceMethodref- See Also:
-
CP_Long
public static final byte CP_Long- See Also:
-
CP_Methodref
public static final byte CP_Methodref- See Also:
-
CP_NameAndType
public static final byte CP_NameAndType- See Also:
-
CP_String
public static final byte CP_String- See Also:
-
CP_UTF8
public static final byte CP_UTF8- See Also:
-
tag
byte tag -
globalIndex
protected int globalIndex
-
-
Constructor Details
-
ConstantPoolEntry
ConstantPoolEntry(byte tag, int globalIndex)
-
-
Method Details
-
doWrite
- Specified by:
doWritein classClassFileEntry- Throws:
IOException
-
equals
- Specified by:
equalsin classClassFileEntry
-
getGlobalIndex
public int getGlobalIndex() -
getTag
public byte getTag() -
hashCode
public abstract int hashCode()- Specified by:
hashCodein classClassFileEntry
-
writeBody
- Throws:
IOException
-