TechTrader Bytecode Toolkit

com.techtrader.modules.tools.bytecode
Class LineNumber

java.lang.Object
  |
  +--com.techtrader.modules.tools.bytecode.LineNumber

public class LineNumber
extends Object

Represents a linenumber; used for error reporting. TODO: Allow high-level setting of line numbers for Instruction groups.

Author:
Abe White

Constructor Summary
protected LineNumber(LineNumberTableAttribute owner)
          Protected constructor.
 
Method Summary
 void acceptVisit(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(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(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(DataInput in)
                 throws IOException

writeData

protected void writeData(DataOutput out)
                  throws IOException

acceptVisit

public void acceptVisit(BCVisitor visit)

TechTrader Bytecode Toolkit