|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InfoStructure
This class gathers all the methods common to both the MethodInfoStructure and the FielsInfoStructure interfaces.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method will clone all the current Field/MethodInfoStructure's inner
properties but the reference the containing Dna instance. |
void |
fromStream(java.io.DataInputStream dis,
Dna dna)
Initialize the current InfoStructure from the provided stream. |
int |
getAccessFlags()
Get the method's access flags defining which access modifiers are applied to the current method. |
int |
getAttributeCount()
Get the number of the additional attributes of the current method. |
java.util.List<Attribute> |
getAttributes()
Instances contained within the input List have to be valid implementations
of the interfaces defined in the package dna.attributes. |
int |
getDescriptorIndex()
Set a valid index pointing to a constant pool table's entry of type ConstantUtf8 representing the description of the current method. |
Dna |
getDna()
Get a reference to the Dna instance this infoStructure entity
belongs to. |
int |
getNameIndex()
Set a valid index pointing to a constant pool table's entry of type ConstantUtf8. |
void |
setAccessFlags(int accessFlags)
Set the method's access flags defining which access modifiers are applied to the current method |
void |
setAttributeCount(int count)
Set the number of the additional attributes of the current method. |
void |
setAttributes(java.util.List<Attribute> attributes)
Instances contained within the input List have to be valid implementations
of the interfaces defined in the package dna.attributes. |
void |
setDescriptorIndex(int index)
Set a valid index pointing to a constant pool table's entry of type ConstantUtf8 representing the description of the current method. |
void |
setDna(Dna dnaContainer)
Set a reference to the Dna instance this infoStructure entity
belongs to. |
void |
setNameIndex(int nameIndex)
Set a valid index pointing to constant pool table's entry of type ConstantUtf8. |
void |
toStream(java.io.DataOutputStream dos)
Serialize the InfoStructure to a stream. |
void |
updateRefs(int offset)
This method reorganizes all the references to constant pool table entries |
boolean |
validate()
This method has to perform a validation process over the FieldInfo according
to what specified by the JVM Official Specification. |
| Method Detail |
|---|
void setNameIndex(int nameIndex)
,
or a valid method name in the Java progr. language.
nameIndex - The index pointin to a constant pool table entryint getNameIndex()
,
or a valid method name in the Java progr. language.
void setAccessFlags(int accessFlags)
accessFlags - The mask of flags as defined by the Java VM Specification section 4.6int getAccessFlags()
void setDescriptorIndex(int index)
index - A valid index as described aboveint getDescriptorIndex()
void setAttributeCount(int count)
count - The number of this method's attributesint getAttributeCount()
void setAttributes(java.util.List<Attribute> attributes)
List have to be valid implementations
of the interfaces defined in the package dna.attributes.
attributes - The attributes associated with the current methodjava.util.List<Attribute> getAttributes()
List have to be valid implementations
of the interfaces defined in the package dna.attributes.
void updateRefs(int offset)
offset - offsetvoid setDna(Dna dnaContainer)
Dna instance this infoStructure entity
belongs to.
dna - The Dna "container"Dna getDna()
Dna instance this infoStructure entity
belongs to.
Dna "container"
boolean validate()
throws FieldInfoValidationException,
InfoStructureAttributeOutOfRangeException,
MissingDnaContainerException,
MissingCPTableException
FieldInfo according
to what specified by the JVM Official Specification.
FieldInfoValidationException - Something failed with the validation process; further information are stored
within the raised exception. This exception might be a
FieldInfo|MethodInfo|AttributeInfoValidationException
InfoStructureAttributeOutOfRangeException - The InfoStructure contains some attribute pointing to an invalid index of the
Constant Pool Table
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 toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
InfoStructure to a stream.
dos - The output stream to write to
DnaSerializationException
void fromStream(java.io.DataInputStream dis,
Dna dna)
throws DnaDeserializationException,
MissingDnaContainerException
InfoStructure from the provided stream. The provided
Dna instance, if not null, will replace the one set by a
formerly invoked setDna() method. Otherwise, should the both the provided
Dna instance and the one set by the setDna method be
null, this method will throw a MissingDnaContainerException.
dis - The input stream the InfoStructure should be read fromdna - The Dna instance which will contain this InfoStructure
instance
DnaDeserializationException
MissingDnaContainerException
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Field/MethodInfoStructure's inner
properties but the reference the containing Dna instance.
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||