|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserp.bytecode.lowlevel.Entry
serp.bytecode.lowlevel.NameAndTypeEntry
public class NameAndTypeEntry
Entry containing indexes referencing a name and a descriptor. Used to describe fields and methods of other classes referenced by opcodes.
Field Summary |
---|
Fields inherited from class serp.bytecode.lowlevel.Entry |
---|
CLASS, DOUBLE, FIELD, FLOAT, INT, INTERFACEMETHOD, LONG, METHOD, NAMEANDTYPE, STRING, UTF8 |
Constructor Summary | |
---|---|
NameAndTypeEntry()
Default constructor. |
|
NameAndTypeEntry(int nameIndex,
int descriptorIndex)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class serp.bytecode.lowlevel.Entry |
---|
create, getIndex, getPool, isWide, read, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameAndTypeEntry()
public NameAndTypeEntry(int nameIndex, int descriptorIndex)
nameIndex
- the constant pool index of the
UTF8Entry
containing the name of this entitydescriptorIndex
- the constant pool index of the
UTF8Entry
containing the descriptor for this entityMethod Detail |
---|
public int getType()
Entry
getType
in class 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |