|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 LocalVariableTableEntry
startPc
- The value of the startPc
public int getStartPc()
LocalVariableTableEntry
startPc
getStartPc
in interface LocalVariableTableEntry
startPc
public void setLength(int length)
LocalVariableTableEntry
setLength
in interface LocalVariableTableEntry
length
- The value of length
public int getLength()
LocalVariableTableEntry
length
getLength
in interface LocalVariableTableEntry
length
public void setNameIndex(int nameIndex)
LocalVariableTableEntry
setNameIndex
in interface LocalVariableTableEntry
nameIndex
- A valid index into the constant pool table as defined abovepublic int getNameIndex()
LocalVariableTableEntry
getNameIndex
in interface LocalVariableTableEntry
public void setDescriptorIndex(int descIndex)
LocalVariableTableEntry
setDescriptorIndex
in interface LocalVariableTableEntry
descIndex
- A valid index into tha constant pool table as defined abovepublic int getDescriptorIndex()
LocalVariableTableEntry
getDescriptorIndex
in interface LocalVariableTableEntry
public void setIndex(int index)
LocalVariableTableEntry
setIndex
in interface LocalVariableTableEntry
index
- A valid index as described abovepublic int getIndex()
LocalVariableTableEntry
getIndex
in interface LocalVariableTableEntry
public void setAttributeContainer(LocalVariableTableAttribute attribute)
LocalVariableTableEntry
LocalVariableTableAttribute
containing the current
LocalVariableTableEntry
.
setAttributeContainer
in interface LocalVariableTableEntry
attribute
- The containerpublic LocalVariableTableAttribute getAttributeContainer()
LocalVariableTableEntry
LocalVariableTableAttribute
containing the current
LocalVariableTableEntry
.
getAttributeContainer
in interface LocalVariableTableEntry
public void toStream(java.io.DataOutputStream dos) throws java.io.IOException
LocalVariableTableEntry
toStream
in interface LocalVariableTableEntry
dos
- 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 LocalVariableTableEntry
dis
- The stream the current local variable table entry has to be read from
java.io.IOException
public void updateRefs(int offset)
LocalVariableTableEntry
updateRefs
in interface LocalVariableTableEntry
offset
- The offset for performing the updatepublic void validate() throws LocalVariableTableEntryValidationException, MissingDnaContainerException, MissingAttributeContainerException
LocalVariableTableEntry
LocalVariableTableEntry
validate
in interface LocalVariableTableEntry
LocalVariableTableEntryValidationException
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
MissingAttributeContainerException
protected 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 LocalVariableTableEntry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int getBytesCount()
BytesCountable
getBytesCount
in interface BytesCountable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |