|
||||||||||
| 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.LocalVariableTableAttribute
@ContainedInCodeAttribute(containerPropertyName="attributeContainer") public class LocalVariableTableAttribute
Class representing a Local Variable Table Attribute.
| Field Summary | |
|---|---|
protected static Logger |
logger
|
| Fields inherited from class jef.dna.attributes.impl.GenericAttribute |
|---|
attribFactory, attributeNameIndex, dna, instrFactory, length |
| Constructor Summary | |
|---|---|
LocalVariableTableAttribute()
Creates a new instance of LocalVariableTableAttribute |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing CodeAttribute is not modified. |
void |
fromStream(java.io.DataInputStream dis,
Dna dna,
int indexName,
int length)
This method reads the data with which the attribute has to be initialized. |
CodeAttribute |
getAttributeContainer()
Get the reference to the CodeAttribute containing the current
LocalVariableTableAttribute. |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
java.util.List<LocalVariableTableEntry> |
getLocalVariableTable()
Each entry in the local_variable_table array indicates a range of code array offsets within which a local variable has a value. |
int |
getLocalVariableTableLength()
The value of the local_variable_table_length item indicates the number of entries in the local_variable_table array. |
protected void |
innerValidations(ConstantPoolTable cpt)
|
void |
setAttributeContainer(CodeAttribute attribute)
Set the reference to the CodeAttribute containing the current
LocalVariableTableAttribute. |
void |
setLocalVariableTable(java.util.List<LocalVariableTableEntry> table)
|
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 |
| Field Detail |
|---|
protected static Logger logger
| Constructor Detail |
|---|
public LocalVariableTableAttribute()
| Method Detail |
|---|
public int getLocalVariableTableLength()
LocalVariableTableAttribute
getLocalVariableTableLength in interface LocalVariableTableAttributepublic void setLocalVariableTable(java.util.List<LocalVariableTableEntry> table)
public java.util.List<LocalVariableTableEntry> getLocalVariableTable()
LocalVariableTableAttribute
getLocalVariableTable in interface LocalVariableTableAttributeList storing LocalVariableTableEntry instancespublic void setAttributeContainer(CodeAttribute attribute)
LocalVariableTableAttributeCodeAttribute containing the current
LocalVariableTableAttribute.
setAttributeContainer in interface LocalVariableTableAttributeattribute - The containerpublic CodeAttribute getAttributeContainer()
LocalVariableTableAttributeCodeAttribute containing the current
LocalVariableTableAttribute.
getAttributeContainer in interface LocalVariableTableAttribute
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 void fromStream(java.io.DataInputStream dis,
Dna dna,
int indexName,
int length)
throws DnaDeserializationException,
MissingDnaContainerException
Attribute
fromStream in interface Attributedis - The input streamdna - The Dna instance this class belongs toindexName - 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 containerpublic void updateRefs(int offset)
Attribute
updateRefs in interface AttributeupdateRefs in class GenericAttributeoffset - The offset
protected void innerValidations(ConstantPoolTable cpt)
throws AttributeValidationException,
AttributeOutOfRangeException,
MissingDnaContainerException,
MissingCPTableException
innerValidations in class GenericAttributeAttributeValidationException
AttributeOutOfRangeException
MissingDnaContainerException
MissingCPTableException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone() method will return a new instance whose reference to the
containing CodeAttribute is not modified.
clone in interface Attributeclone in class GenericAttributejava.lang.CloneNotSupportedExceptionpublic int getBytesCount()
BytesCountable
getBytesCount in interface BytesCountable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||