|
||||||||||
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.AClassNameTypePoolInfo
public abstract class AClassNameTypePoolInfo
Represents an object in the constant pool described by class and name-and-type.
Field Summary | |
---|---|
protected ClassPoolInfo |
_classInfo
Class information. |
protected int |
_classInfoIndex
Class index. |
protected NameAndTypePoolInfo |
_nameAndType
NameAndType information. |
protected int |
_nameAndTypeIndex
NameAndType 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 | |
---|---|
AClassNameTypePoolInfo(int type,
ClassPoolInfo clas,
NameAndTypePoolInfo nameAndType,
ConstantPool cp)
Create a new object. |
|
AClassNameTypePoolInfo(int type,
java.io.DataInputStream dis,
ConstantPool cp)
Constructor reading from a stream. |
Method Summary | |
---|---|
ClassPoolInfo |
getClassInfo()
Accessor for the class information. |
NameAndTypePoolInfo |
getNameAndType()
Accessor for the NameAndType information. |
int |
hashCode()
Return a hash code. |
void |
reindex()
Reindex constant pool indices. |
void |
resolve()
Resolve constant pool objects. |
void |
setClassInfo(ClassPoolInfo classInfo)
Mutator for the class information. |
void |
setNameAndType(NameAndTypePoolInfo nameAndType)
Mutator for the NameAndType information. |
java.lang.String |
toString()
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 |
---|
equals, execute, inPool, read, toStringVerbose |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ClassPoolInfo _classInfo
protected NameAndTypePoolInfo _nameAndType
protected int _classInfoIndex
protected int _nameAndTypeIndex
Constructor Detail |
---|
public AClassNameTypePoolInfo(int type, ClassPoolInfo clas, NameAndTypePoolInfo nameAndType, ConstantPool cp)
type
- type, either FIELD, METHOD or CONSTANT_InterfaceMethodrefclas
- class informationnameAndType
- NameAndType informationcp
- constant poolpublic AClassNameTypePoolInfo(int type, java.io.DataInputStream dis, ConstantPool cp) throws java.io.IOException
type
- type, either FIELD, METHOD or CONSTANT_InterfaceMethodrefdis
- input streamcp
- constant pool
java.io.IOException
Method Detail |
---|
public ClassPoolInfo getClassInfo()
public void setClassInfo(ClassPoolInfo classInfo)
classInfo
- new class informationpublic NameAndTypePoolInfo getNameAndType()
public void setNameAndType(NameAndTypePoolInfo nameAndType)
nameAndType
- new NameAndTypeInformationpublic 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 java.lang.String toString()
toString
in class APoolInfo
public int hashCode()
hashCode
in class APoolInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |