|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.rice.cs.cunit.classFile.constantPool.APoolInfo edu.rice.cs.cunit.classFile.constantPool.AUTFPoolInfo
public abstract class AUTFPoolInfo
Represents UTF data in the constant pool.
Field Summary | |
---|---|
protected java.lang.String |
_strValue
Data. |
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 | |
---|---|
AUTFPoolInfo(int type,
java.io.DataInputStream dis,
ConstantPool cp)
Constructor reading from a stream. |
|
AUTFPoolInfo(int type,
java.lang.String s,
ConstantPool cp)
Constructor. |
Method Summary | |
---|---|
abstract boolean |
equals(java.lang.Object obj)
Compare this object and another one. |
int |
hashCode()
Return a hash code. |
void |
reindex()
Reindex constant pool indices. |
void |
resolve()
Resolve constant pool objects. |
void |
setStrValue(java.lang.String strValue)
Mutator for the data. |
java.lang.String |
toString()
Return a human-readable version of this constant pool object. |
abstract 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 |
---|
execute, inPool, read |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _strValue
Constructor Detail |
---|
public AUTFPoolInfo(int type, java.lang.String s, ConstantPool cp)
type
- constant pool object types
- datapublic AUTFPoolInfo(int type, java.io.DataInputStream dis, ConstantPool cp) throws java.io.IOException
type
- type, either ASCII or UNICODEdis
- input streamcp
- constant pool
java.io.IOException
Method Detail |
---|
public void setStrValue(java.lang.String strValue)
strValue
- new datapublic void write(java.io.DataOutputStream dos) throws java.io.IOException
write
in class APoolInfo
dos
- stream
java.io.IOException
public void resolve()
resolve
in class APoolInfo
public void reindex()
reindex
in class APoolInfo
public abstract java.lang.String toStringVerbose()
toStringVerbose
in class APoolInfo
public java.lang.String toString()
toString
in class APoolInfo
public int hashCode()
hashCode
in class APoolInfo
public abstract boolean equals(java.lang.Object obj)
equals
in class APoolInfo
obj
- other object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |