|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.attributes.impl.LocalVariableTableEntry
public class LocalVariableTableEntry
Class representing a Local Variable instance's table entry.
| Field Summary | |
|---|---|
protected static Logger |
logger
|
| Constructor Summary | |
|---|---|
LocalVariableTableEntry()
Creates a new instance of LocalVariableTableEntry |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing LocalVariableTableAttribute is not modified. |
void |
fromStream(java.io.DataInputStream dis)
Deserializes the given local variable table entry from the provided input stream. |
LocalVariableTableAttribute |
getAttributeContainer()
Set the reference to the LocalVariableTableAttribute containing the current
LocalVariableTableEntry. |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
int |
getDescriptorIndex()
The value of the descriptor_index item must be a valid index into the constant_pool table. |
int |
getIndex()
The given local variable must be at index in the local variable array of the current frame. |
int |
getLength()
Returns the current value of length |
int |
getNameIndex()
The value of the name_index item must be a valid index into the constant_pool table. |
int |
getStartPc()
Returns the current value of the startPc |
void |
setAttributeContainer(LocalVariableTableAttribute attribute)
Set the reference to the LocalVariableTableAttribute containing the current
LocalVariableTableEntry. |
void |
setDescriptorIndex(int descIndex)
The value of the descriptor_index item must be a valid index into the constant_pool table. |
void |
setIndex(int index)
The given local variable must be at index in the local variable array of the current frame. |
void |
setLength(int length)
The given local variable must have a value at indices into the code array in the interval [start_pc, start_pc+length], that is, between start_pc and start_pc+length inclusive. |
void |
setNameIndex(int nameIndex)
The value of the name_index item must be a valid index into the constant_pool table. |
void |
setStartPc(int startPc)
The given local variable must have a value at indices into the code array in the interval [start_pc, start_pc+length], that is, between start_pc and start_pc+length inclusive. |
void |
toStream(java.io.DataOutputStream dos)
Serializes the given local variable table entry to the provided output stream. |
void |
updateRefs(int offset)
Updates all the references to entries into the constant pool table by the given offset |
void |
validate()
Perform validation over the current LocalVariableTableEntry |
protected void |
validateDescriptorIndex()
|
protected void |
validateIndex()
|
protected void |
validateLength()
|
protected void |
validateNameIndex()
|
protected void |
validateStartPc()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger logger
| Constructor Detail |
|---|
public LocalVariableTableEntry()
| Method Detail |
|---|
public void setStartPc(int startPc)
LocalVariableTableEntry
setStartPc in interface LocalVariableTableEntrystartPc - The value of the startPcpublic int getStartPc()
LocalVariableTableEntrystartPc
getStartPc in interface LocalVariableTableEntrystartPcpublic void setLength(int length)
LocalVariableTableEntry
setLength in interface LocalVariableTableEntrylength - The value of lengthpublic int getLength()
LocalVariableTableEntrylength
getLength in interface LocalVariableTableEntrylengthpublic void setNameIndex(int nameIndex)
LocalVariableTableEntry
setNameIndex in interface LocalVariableTableEntrynameIndex - A valid index into the constant pool table as defined abovepublic int getNameIndex()
LocalVariableTableEntry
getNameIndex in interface LocalVariableTableEntrypublic void setDescriptorIndex(int descIndex)
LocalVariableTableEntry
setDescriptorIndex in interface LocalVariableTableEntrydescIndex - A valid index into tha constant pool table as defined abovepublic int getDescriptorIndex()
LocalVariableTableEntry
getDescriptorIndex in interface LocalVariableTableEntrypublic void setIndex(int index)
LocalVariableTableEntry
setIndex in interface LocalVariableTableEntryindex - A valid index as described abovepublic int getIndex()
LocalVariableTableEntry
getIndex in interface LocalVariableTableEntrypublic void setAttributeContainer(LocalVariableTableAttribute attribute)
LocalVariableTableEntryLocalVariableTableAttribute containing the current
LocalVariableTableEntry.
setAttributeContainer in interface LocalVariableTableEntryattribute - The containerpublic LocalVariableTableAttribute getAttributeContainer()
LocalVariableTableEntryLocalVariableTableAttribute containing the current
LocalVariableTableEntry.
getAttributeContainer in interface LocalVariableTableEntry
public void toStream(java.io.DataOutputStream dos)
throws java.io.IOException
LocalVariableTableEntry
toStream in interface LocalVariableTableEntrydos - The stream the current local variable table entry has to be written to
java.io.IOException
public void fromStream(java.io.DataInputStream dis)
throws java.io.IOException
LocalVariableTableEntry
fromStream in interface LocalVariableTableEntrydis - The stream the current local variable table entry has to be read from
java.io.IOExceptionpublic void updateRefs(int offset)
LocalVariableTableEntry
updateRefs in interface LocalVariableTableEntryoffset - The offset for performing the update
public void validate()
throws LocalVariableTableEntryValidationException,
MissingDnaContainerException,
MissingAttributeContainerException
LocalVariableTableEntryLocalVariableTableEntry
validate in interface LocalVariableTableEntryLocalVariableTableEntryValidationException
MissingDnaContainerException
MissingAttributeContainerException
protected void validateStartPc()
throws MissingAttributeContainerException,
MissingDnaContainerException,
LocalVariableTableEntryValidationException
MissingAttributeContainerException
MissingDnaContainerException
LocalVariableTableEntryValidationException
protected void validateLength()
throws MissingAttributeContainerException,
MissingDnaContainerException,
LocalVariableTableEntryValidationException
MissingAttributeContainerException
MissingDnaContainerException
LocalVariableTableEntryValidationException
protected void validateNameIndex()
throws LocalVariableTableEntryValidationException,
MissingDnaContainerException,
MissingAttributeContainerException
LocalVariableTableEntryValidationException
MissingDnaContainerException
MissingAttributeContainerException
protected void validateDescriptorIndex()
throws LocalVariableTableEntryValidationException,
MissingDnaContainerException,
MissingAttributeContainerException
LocalVariableTableEntryValidationException
MissingDnaContainerException
MissingAttributeContainerExceptionprotected void validateIndex()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone() method will return a new instance whose reference to the
containing LocalVariableTableAttribute is not modified.
clone in interface LocalVariableTableEntryclone in class java.lang.Objectjava.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 | |||||||||