|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConstantInfo
This interface defines the basic method every Constant Info class has to implement
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the current ConstantInfo. |
void |
fromStream(java.io.DataInputStream dis)
Reads the Constant Info fields from the given input stream |
ConstantPoolTable |
getCpt()
Get a reference to the ConstantPoolTable instance this
constantInfo entity belongs to. |
int |
getTag()
Gets the unique tag identifing each Constant Info structure |
java.lang.String |
getType()
Return the String identifying the CONSTANT_info data structure. |
void |
setCpt(ConstantPoolTable cpt)
Set a reference to the ConstantPoolTable instance this
constantInfo entity belongs to. |
void |
setTag(int tag)
Sets the unique tag identifing each Constant Info structure |
void |
toStream(java.io.DataOutputStream dos)
Writes to the given output stream the ConstantInfo object |
void |
updateRefs(int offset)
Update all the references to entries in the constant pool table by adding the specified offset. |
boolean |
validate()
This method has to perform a validation process over the ConstantInfo
according to what specified by the JVM Official Specification. |
| Method Detail |
|---|
void setTag(int tag)
tag - The unique tag (see JVM Specification for details)int getTag()
void updateRefs(int offset)
offset - The offset to be appliedvoid setCpt(ConstantPoolTable cpt)
ConstantPoolTable instance this
constantInfo entity belongs to.
cpt - The ConstantPoolTableConstantPoolTable getCpt()
ConstantPoolTable instance this
constantInfo entity belongs to.
ConstantPoolTablejava.lang.String getType()
String identifying the CONSTANT_info data structure.
CONSTANT_info
boolean validate()
throws ConstantInfoValidationException,
ConstantInfoAttributeOutOfRangeException,
MissingDnaContainerException,
MissingCPTableException
ConstantInfo
according to what specified by the JVM Official Specification.
ConstantInfoValidationException - Something failed with the validation process; further information are stored
within the raised exception
ConstantInfoAttributeOutOfRangeException - This exception is thrown when a ConstantInfo contains a reference
to an invalid Constant Pool Table entry
MissingDnaContainerException - The validation process cannot be accomplished since any of the examined entities
is missing its own Dna container
MissingCPTableException - The validation process cannot be accomplished since there is no reference to the
ConstantPoolTable in the current Dna instance
void fromStream(java.io.DataInputStream dis)
throws DnaDeserializationException
dis - The DataInputStream for reading the Constant Info fields
DnaDeserializationException
void toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
dos - The DataOutputStream to write the object to
DnaSerializationException
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
ConstantInfo.
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||