public abstract class ComplexEntry extends Entry
ClassEntry
of the
class that owns the entity and a NameAndTypeEntry
describing
the entity.CLASS, DOUBLE, FIELD, FLOAT, INT, INTERFACEMETHOD, INVOKEDYNAMIC, LONG, METHOD, METHODHANDLE, METHODTYPE, NAMEANDTYPE, STRING, UTF8
Constructor and Description |
---|
ComplexEntry()
Default constructor.
|
ComplexEntry(int classIndex,
int nameAndTypeIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClassEntry |
getClassEntry()
Return the referenced
ClassEntry . |
int |
getClassIndex()
Return the constant pool index of the
ClassEntry describing
the owning class of this entity. |
NameAndTypeEntry |
getNameAndTypeEntry()
Return the referenced
NameAndTypeEntry . |
int |
getNameAndTypeIndex()
Return the constant pool index of the
NameAndTypeEntry
describing this entity. |
void |
setClassIndex(int classIndex)
Set the constant pool index of the
ClassEntry describing
the owning class of this entity. |
void |
setNameAndTypeIndex(int nameAndTypeIndex)
Set the constant pool index of the
NameAndTypeEntry
describing this entity. |
create, getIndex, getPool, getType, isWide, read, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptVisit
public ComplexEntry()
public ComplexEntry(int classIndex, int nameAndTypeIndex)
classIndex
- the constant pool index of the
ClassEntry
describing the owner of this entitynameAndTypeIndex
- the constant pool index of the
NameAndTypeEntry
describing this entitypublic int getClassIndex()
ClassEntry
describing
the owning class of this entity. Defaults to 0.public void setClassIndex(int classIndex)
ClassEntry
describing
the owning class of this entity.public ClassEntry getClassEntry()
ClassEntry
. This method can only
be run for entries that have been added to a constant pool.public int getNameAndTypeIndex()
NameAndTypeEntry
describing this entity.public void setNameAndTypeIndex(int nameAndTypeIndex)
NameAndTypeEntry
describing this entity.public NameAndTypeEntry getNameAndTypeEntry()
NameAndTypeEntry
. This method can only
be run for entries that have been added to a constant pool.Copyright © 2002–2019. All rights reserved.