|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.attributes.impl.GenericAttribute
jef.dna.attributes.impl.EnclosingMethod
public class EnclosingMethod
| Field Summary |
|---|
| Fields inherited from class jef.dna.attributes.impl.GenericAttribute |
|---|
attribFactory, attributeNameIndex, className, dna, instrFactory, length, logger |
| Constructor Summary | |
|---|---|
EnclosingMethod()
Creates a new instance of EnclosingMethod |
|
| 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,
int nameIndex,
int length)
This method reads the data with which the attribute has to be initialized. |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
int |
getClassIndex()
Thevalue of theclass_index item must be a valid index into the constant_pool table. |
int |
getMethodIndex()
If the current class is not immediately enclosed by a method or constructor, then the value of themethod_index item must be zero. |
protected void |
innerValidations(ConstantPoolTable cpt)
|
void |
setClassIndex(int cIndx)
Thevalue of theclass_index item must be a valid index into the constant_pool table. |
void |
setMethodIndex(int mIndx)
If the current class is not immediately enclosed by a method or constructor, then the value of themethod_index item must be zero. |
void |
toStream(java.io.DataOutputStream dos)
This method writes the attribute to the provided output stream. |
void |
updateRefs(int offset)
This method updates all the references pointing to constant pool table's entries this attributes holds. |
| Methods inherited from class jef.dna.attributes.impl.GenericAttribute |
|---|
getDna, getLength, getNameIndex, setDna, setNameIndex, validate, validateNameIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jef.dna.attributes.Attribute |
|---|
getDna, getLength, getNameIndex, setDna, setNameIndex, validate |
| Constructor Detail |
|---|
public EnclosingMethod()
| Method Detail |
|---|
public void updateRefs(int offset)
Attribute
updateRefs in interface AttributeupdateRefs in class GenericAttributeoffset - The offset
public void fromStream(java.io.DataInputStream dis,
Dna dna,
int nameIndex,
int length)
throws DnaDeserializationException,
MissingDnaContainerException
Attribute
fromStream in interface Attributedis - The input streamdna - The Dna instance this class belongs tonameIndex - The value of the name indexlength - The length of the attribute
DnaDeserializationException - Errors while reading the attribute from the stream
MissingDnaContainerException - There is no reference to the current Dna container
public void toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
Attribute
toStream in interface Attributedos - The output stream
DnaSerializationException - Errors while writing the attribute to the output stream
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
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.
clone in interface Attributeclone in class GenericAttributejava.lang.CloneNotSupportedException
protected void innerValidations(ConstantPoolTable cpt)
throws AttributeValidationException,
AttributeOutOfRangeException,
MissingDnaContainerException,
MissingCPTableException
innerValidations in class GenericAttributeAttributeValidationException
AttributeOutOfRangeException
MissingDnaContainerException
MissingCPTableExceptionpublic int getBytesCount()
BytesCountable
getBytesCount in interface BytesCountablepublic void setClassIndex(int cIndx)
EnclosingMethodAttribute
setClassIndex in interface EnclosingMethodAttributepublic int getClassIndex()
EnclosingMethodAttribute
getClassIndex in interface EnclosingMethodAttributepublic void setMethodIndex(int mIndx)
EnclosingMethodAttribute
setMethodIndex in interface EnclosingMethodAttributepublic int getMethodIndex()
EnclosingMethodAttribute
getMethodIndex in interface EnclosingMethodAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||