|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class LineNumber

java.lang.Objectcom.techtrader.modules.tools.bytecode.LineNumber
- public class LineNumber
- extends java.lang.Object
Represents a linenumber; used for error reporting. TODO: Allow high-level setting of line numbers for Instruction groups.
| Field Summary | |
private int |
_lineNumber
|
private LineNumberTableAttribute |
_owner
|
private int |
_startPc
|
| Constructor Summary | |
protected |
LineNumber(LineNumberTableAttribute owner)
Protected constructor. |
| Method Summary | |
void |
acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
|
int |
getLineNumber()
Get the line number this entity represents. |
LineNumberTableAttribute |
getOwner()
Line numbers are stored in a LineNumberTableAttribute. |
int |
getStartPc()
Get the index into the code byte array at which this line starts. |
protected void |
invalidate()
Invaildate the line number after it is removed from the LineNumberTableAttribute. |
protected void |
readData(java.io.DataInput in)
|
void |
setLineNumber(int lineNumber)
Get the line number this entity represents. |
void |
setStartPc(int startPc)
Set the index into the code byte array at which this line starts. |
protected void |
writeData(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_startPc
private int _startPc
_lineNumber
private int _lineNumber
_owner
private LineNumberTableAttribute _owner
| Constructor Detail |
LineNumber
protected LineNumber(LineNumberTableAttribute owner)
- Protected constructor.
| Method Detail |
getOwner
public LineNumberTableAttribute getOwner()
- Line numbers are stored in a LineNumberTableAttribute.
invalidate
protected void invalidate()
- Invaildate the line number after it is removed from the
LineNumberTableAttribute.
getStartPc
public int getStartPc()
- Get the index into the code byte array at which this line starts.
setStartPc
public void setStartPc(int startPc)
- Set the index into the code byte array at which this line starts.
getLineNumber
public int getLineNumber()
- Get the line number this entity represents.
setLineNumber
public void setLineNumber(int lineNumber)
- Get the line number this entity represents.
readData
protected void readData(java.io.DataInput in) throws java.io.IOException
writeData
protected void writeData(java.io.DataOutput out) throws java.io.IOException
acceptVisit
public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.techtrader.modules.tools.bytecode.LineNumber