|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.attributes.impl.LineNumberTableEntry
public class LineNumberTableEntry
Class representing a Line Number Table instance's entry.
| Field Summary | |
|---|---|
protected static Logger |
logger
|
| Constructor Summary | |
|---|---|
LineNumberTableEntry()
Creates a new instance of LineNumberTableEntry |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing LineNumberTableAttribute is not modified. |
void |
fromStream(java.io.DataInputStream dis)
Reads the line number table entry from the given input stream. |
LineNumberTableAttribute |
getAttributeContainer()
Get the LineNumberTableAttribute containing the current
LineNumberTableEntry |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
int |
getLineNumber()
The value of the line_number item must give the corresponding line number in the original source file |
int |
getStartPc()
The value of the start_pc item must indicate the index into the code array at which the code for a new line in the original source file begins. |
void |
setAttributeContainer(LineNumberTableAttribute attr)
Set the LineNumberTableAttribute containing the current
LineNumberTableEntry |
void |
setLineNumber(int lineNumber)
The value of the line_number item must give the corresponding line number in the original source file |
void |
setStartPc(int startPc)
The value of the start_pc item must indicate the index into the code array at which the code for a new line in the original source file begins. |
void |
toStream(java.io.DataOutputStream dos)
Writes the line number table entry to the given output stream. |
void |
validate()
Performs the validation of the current LineNumberTableEntry. |
| 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 LineNumberTableEntry()
| Method Detail |
|---|
public void setStartPc(int startPc)
LineNumberTableEntry
setStartPc in interface LineNumberTableEntrystartPc - A valid value as defined abovepublic int getStartPc()
LineNumberTableEntry
getStartPc in interface LineNumberTableEntrypublic void setLineNumber(int lineNumber)
LineNumberTableEntry
setLineNumber in interface LineNumberTableEntrylineNumber - The line number valuepublic int getLineNumber()
LineNumberTableEntry
getLineNumber in interface LineNumberTableEntrypublic void setAttributeContainer(LineNumberTableAttribute attr)
LineNumberTableEntryLineNumberTableAttribute containing the current
LineNumberTableEntry
setAttributeContainer in interface LineNumberTableEntryattr - The containerpublic LineNumberTableAttribute getAttributeContainer()
LineNumberTableEntryLineNumberTableAttribute containing the current
LineNumberTableEntry
getAttributeContainer in interface LineNumberTableEntry
public void toStream(java.io.DataOutputStream dos)
throws java.io.IOException
LineNumberTableEntry
toStream in interface LineNumberTableEntrydos - The output stream the line number table entry has to be written to
java.io.IOException - Something went wrong with the given stream
public void fromStream(java.io.DataInputStream dis)
throws java.io.IOException
LineNumberTableEntry
fromStream in interface LineNumberTableEntrydis - The input stream the line number table entry has to be read from
java.io.IOException - Something went wrong with the given stream
public void validate()
throws MissingAttributeContainerException,
LineNumberTableEntryValidationException
LineNumberTableEntryLineNumberTableEntry.
- Specified by:
validate in interface LineNumberTableEntry
- Throws:
MissingAttributeContainerException
LineNumberTableEntryValidationException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone() method will return a new instance whose reference to the
containing LineNumberTableAttribute is not modified.
clone in interface LineNumberTableEntryclone 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 | |||||||||