public class NameAndTypeEntry extends Entry
Constructor and Description |
---|
NameAndTypeEntry()
Default constructor.
|
NameAndTypeEntry(int nameIndex,
int descriptorIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a
BCVisitor , calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
UTF8Entry |
getDescriptorEntry()
Return the descriptor's referenced
UTF8Entry . |
int |
getDescriptorIndex()
Return the constant pool index of the
UTF8Entry
containing the descriptor for this entity. |
UTF8Entry |
getNameEntry()
Return the name's referenced
UTF8Entry . |
int |
getNameIndex()
Return the constant pool index of the
UTF8Entry
containing the name of this entity. |
int |
getType()
Return the type code for this entry type.
|
void |
setDescriptorIndex(int descriptorIndex)
Set the constant pool index of a
UTF8Entry
containing the descriptor for this entity. |
void |
setNameIndex(int nameIndex)
Set the constant pool index of the
UTF8Entry
containing the name of this entity. |
public NameAndTypeEntry()
public NameAndTypeEntry(int nameIndex, int descriptorIndex)
public int getType()
Entry
public int getNameIndex()
UTF8Entry
containing the name of this entity.public void setNameIndex(int nameIndex)
UTF8Entry
containing the name of this entity.public UTF8Entry getNameEntry()
UTF8Entry
. This method can only
be run for entries that have been added to a constant pool.public int getDescriptorIndex()
UTF8Entry
containing the descriptor for this entity.public void setDescriptorIndex(int descriptorIndex)
UTF8Entry
containing the descriptor for this entity.public UTF8Entry getDescriptorEntry()
UTF8Entry
. This method
can only be run for entries that have been added to a constant pool.public void acceptVisit(BCVisitor visit)
VisitAcceptor
BCVisitor
, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.Copyright © 2002–2015. All rights reserved.