public abstract class CPConstant extends ConstantPoolEntry
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndex
NONE
Constructor and Description |
---|
CPConstant(byte tag,
Object value,
int globalIndex)
Create a new CPConstant
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected Object |
getValue() |
int |
hashCode() |
doWrite, getGlobalIndex, getTag, writeBody
getNestedClassFileEntries, objectHashCode, resolve, toString, write
public CPConstant(byte tag, Object value, int globalIndex)
tag
- TODOvalue
- TODOglobalIndex
- index in CpBandsNullPointerException
- if value is nullpublic boolean equals(Object obj)
equals
in class ConstantPoolEntry
public int hashCode()
hashCode
in class ConstantPoolEntry
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.