jef.dna.infoStructures.impl
Class MethodInfo

java.lang.Object
  extended by jef.dna.infoStructures.impl.InfoStructureAncestor
      extended by jef.dna.infoStructures.impl.MethodInfo
All Implemented Interfaces:
java.lang.Cloneable, InfoStructure, MethodInfoStructure

public class MethodInfo
extends InfoStructureAncestor
implements MethodInfoStructure

Class representing a Method Info structure.


Field Summary
 
Fields inherited from class jef.dna.infoStructures.impl.InfoStructureAncestor
accessFlags, attribFactory, attributeCount, attributes, descriptorIndex, dna, nameIndex
 
Constructor Summary
MethodInfo()
          Constructor.
 
Method Summary
 java.lang.Object clone()
          The clone() method will return a new instance whose reference to the containing Dna instance is set to null.
 void fromStream(java.io.DataInputStream dis, Dna dna)
          Initialize the current InfoStructure from the provided stream.
 void toStream(java.io.DataOutputStream dos)
          Serialize the InfoStructure to a stream.
protected  void validateAccessFlags(ConstantPoolTable cpt)
           
 
Methods inherited from class jef.dna.infoStructures.impl.InfoStructureAncestor
getAccessFlags, getAttributeCount, getAttributes, getDescriptorIndex, getDna, getNameIndex, setAccessFlags, setAttributeCount, setAttributes, setDescriptorIndex, setDna, setNameIndex, updateRefs, validate, validateAttributeCount, validateAttributes, validateDescriptorIndex, validateNameIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jef.dna.infoStructures.InfoStructure
getAccessFlags, getAttributeCount, getAttributes, getDescriptorIndex, getDna, getNameIndex, setAccessFlags, setAttributeCount, setAttributes, setDescriptorIndex, setDna, setNameIndex, updateRefs, validate
 

Constructor Detail

MethodInfo

public MethodInfo()
Constructor.

Method Detail

toStream

public void toStream(java.io.DataOutputStream dos)
              throws DnaSerializationException
Description copied from interface: InfoStructure
Serialize the InfoStructure to a stream.

Specified by:
toStream in interface InfoStructure
Specified by:
toStream in class InfoStructureAncestor
Parameters:
dos - The output stream to write to
Throws:
DnaSerializationException

fromStream

public void fromStream(java.io.DataInputStream dis,
                       Dna dna)
                throws DnaDeserializationException,
                       MissingDnaContainerException
Description copied from interface: InfoStructure
Initialize the current 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.

Specified by:
fromStream in interface InfoStructure
Specified by:
fromStream in class InfoStructureAncestor
Parameters:
dis - The input stream the InfoStructure should be read from
dna - The Dna instance which will contain this InfoStructure instance
Throws:
DnaDeserializationException
MissingDnaContainerException

validateAccessFlags

protected void validateAccessFlags(ConstantPoolTable cpt)
                            throws FieldInfoValidationException
Specified by:
validateAccessFlags in class InfoStructureAncestor
Throws:
FieldInfoValidationException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone() method will return a new instance whose reference to the containing Dna instance is set to null. It is up to you appropriately setting it to the correct value.

Specified by:
clone in interface InfoStructure
Overrides:
clone in class InfoStructureAncestor
Throws:
java.lang.CloneNotSupportedException