|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.classFile.constantPool.APoolInfo
edu.rice.cs.cunit.classFile.constantPool.NameAndTypePoolInfo
public class NameAndTypePoolInfo
Represents a name-and-type object in the constant pool.
| Field Summary | |
|---|---|
protected AUTFPoolInfo |
_descriptor
Type descriptor information. |
protected short |
_descriptorIndex
Type descriptor index. |
protected AUTFPoolInfo |
_name
Name information. |
protected short |
_nameIndex
Name index. |
| Fields inherited from class edu.rice.cs.cunit.classFile.constantPool.APoolInfo |
|---|
_constantPool, _type, CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_Long, CONSTANT_Methodref, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8_ASCII, CONSTANT_Utf8_Unicode |
| Constructor Summary | |
|---|---|
NameAndTypePoolInfo(AUTFPoolInfo name,
AUTFPoolInfo descriptor,
ConstantPool cp)
Constructor. |
|
NameAndTypePoolInfo(java.io.DataInputStream dis,
ConstantPool cp)
Constructor reading from a stream. |
|
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object obj)
Compare this object and another one. |
|
|
execute(IPoolInfoVisitor<R,D> visitor,
D data)
Execute a visitor. |
|
AUTFPoolInfo |
getDescriptor()
Accessor for the type descriptor information. |
|
AUTFPoolInfo |
getName()
Accessor for the name information. |
|
int |
hashCode()
Return a hash code. |
|
void |
reindex()
Reindex constant pool indices. |
|
void |
resolve()
Resolve constant pool objects. |
|
void |
setDescriptor(AUTFPoolInfo descriptor)
Mutator for the type descriptor information. |
|
void |
setName(AUTFPoolInfo name)
Mutator for the name information. |
|
java.lang.String |
toString()
Return a human-readable version of this constant pool object. |
|
java.lang.String |
toStringVerbose()
Return a human-readable version of this constant pool object. |
|
void |
write(java.io.DataOutputStream dos)
Write this constant pool object into the stream, including the type byte. |
|
| Methods inherited from class edu.rice.cs.cunit.classFile.constantPool.APoolInfo |
|---|
inPool, read |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AUTFPoolInfo _name
protected AUTFPoolInfo _descriptor
protected short _nameIndex
protected short _descriptorIndex
| Constructor Detail |
|---|
public NameAndTypePoolInfo(AUTFPoolInfo name,
AUTFPoolInfo descriptor,
ConstantPool cp)
name - name informationdescriptor - type descriptor information
public NameAndTypePoolInfo(java.io.DataInputStream dis,
ConstantPool cp)
throws java.io.IOException
dis - input streamcp - constant pool
java.io.IOException| Method Detail |
|---|
public AUTFPoolInfo getName()
public void setName(AUTFPoolInfo name)
name - new name informationpublic AUTFPoolInfo getDescriptor()
public void setDescriptor(AUTFPoolInfo descriptor)
descriptor - type descriptor information
public void write(java.io.DataOutputStream dos)
throws java.io.IOException
write in class APoolInfodos - stream
java.io.IOExceptionpublic void resolve()
resolve in class APoolInfopublic void reindex()
reindex in class APoolInfopublic java.lang.String toStringVerbose()
toStringVerbose in class APoolInfopublic java.lang.String toString()
toString in class APoolInfopublic int hashCode()
hashCode in class APoolInfopublic boolean equals(java.lang.Object obj)
equals in class APoolInfoobj - other object
public <R,D> R execute(IPoolInfoVisitor<R,D> visitor,
D data)
execute in class APoolInfovisitor - visitordata - visitor-specific parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||