|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 LineNumberTableEntry
startPc
- A valid value as defined abovepublic int getStartPc()
LineNumberTableEntry
getStartPc
in interface LineNumberTableEntry
public void setLineNumber(int lineNumber)
LineNumberTableEntry
setLineNumber
in interface LineNumberTableEntry
lineNumber
- The line number valuepublic int getLineNumber()
LineNumberTableEntry
getLineNumber
in interface LineNumberTableEntry
public void setAttributeContainer(LineNumberTableAttribute attr)
LineNumberTableEntry
LineNumberTableAttribute
containing the current
LineNumberTableEntry
setAttributeContainer
in interface LineNumberTableEntry
attr
- The containerpublic LineNumberTableAttribute getAttributeContainer()
LineNumberTableEntry
LineNumberTableAttribute
containing the current
LineNumberTableEntry
getAttributeContainer
in interface LineNumberTableEntry
public void toStream(java.io.DataOutputStream dos) throws java.io.IOException
LineNumberTableEntry
toStream
in interface LineNumberTableEntry
dos
- The output stream the line number table entry has to be written to
java.io.IOException
- Something went wrong with the given streampublic void fromStream(java.io.DataInputStream dis) throws java.io.IOException
LineNumberTableEntry
fromStream
in interface LineNumberTableEntry
dis
- The input stream the line number table entry has to be read from
java.io.IOException
- Something went wrong with the given streampublic void validate() throws MissingAttributeContainerException, LineNumberTableEntryValidationException
LineNumberTableEntry
LineNumberTableEntry.
- Specified by:
validate
in interface LineNumberTableEntry
- Throws:
MissingAttributeContainerException
LineNumberTableEntryValidationException
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- The
clone()
method will return a new instance whose reference to the
containing LineNumberTableAttribute
is not modified.
- Specified by:
clone
in interface LineNumberTableEntry
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
getBytesCount
public int getBytesCount()
- Description copied from interface:
BytesCountable
- This method must return the overall number of bytes
required by the component implementing this interface.
- Specified by:
getBytesCount
in interface BytesCountable
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD