com.jeffpalm.basic.bytecode.base
Class LineNumberTableAttribute

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.LineNumberTableAttribute
All Implemented Interfaces:
IAttribute, ICodeGenerator, ILineNumberTableAttribute, IMutableLineNumberTableAttribute, IDumpable

public final class LineNumberTableAttribute
extends java.lang.Object
implements IMutableLineNumberTableAttribute


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jeffpalm.basic.bytecode.ILineNumberTableAttribute
ILineNumberTableAttribute.IEntry
 
Constructor Summary
LineNumberTableAttribute(IConstantPool pool)
           
 
Method Summary
 ILineNumberTableAttribute.IEntry addEntry(int startPC, int lineNumber)
           
 void dump(IAppendable out)
           
protected  void dumpRest(IAppendable out)
           
 ILineNumberTableAttribute.IEntry entries(int i)
           
 void gen(ICodeStream code)
           
protected  void genRest(ICodeStream code)
           
 int length()
           
 int lineNumber(int startPC)
           
 int lineNumberTableLength()
           
 java.lang.String name()
           
 IConstantPool pool()
           
 int startPC(int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jeffpalm.basic.bytecode.IAttribute
name, pool
 
Methods inherited from interface com.jeffpalm.basic.util.IDumpable
dump
 
Methods inherited from interface com.jeffpalm.basic.bytecode.ICodeGenerator
gen
 

Constructor Detail

LineNumberTableAttribute

public LineNumberTableAttribute(IConstantPool pool)
Method Detail

lineNumberTableLength

public int lineNumberTableLength()
Specified by:
lineNumberTableLength in interface ILineNumberTableAttribute

startPC

public int startPC(int lineNumber)
Specified by:
startPC in interface ILineNumberTableAttribute

lineNumber

public int lineNumber(int startPC)
Specified by:
lineNumber in interface ILineNumberTableAttribute

addEntry

public ILineNumberTableAttribute.IEntry addEntry(int startPC,
                                                 int lineNumber)
Specified by:
addEntry in interface IMutableLineNumberTableAttribute

entries

public ILineNumberTableAttribute.IEntry entries(int i)
Specified by:
entries in interface ILineNumberTableAttribute

length

public int length()
Specified by:
length in interface IAttribute

genRest

protected void genRest(ICodeStream code)
                throws java.io.IOException
Throws:
java.io.IOException

dumpRest

protected void dumpRest(IAppendable out)

pool

public final IConstantPool pool()
Specified by:
pool in interface IAttribute

name

public final java.lang.String name()
Specified by:
name in interface IAttribute

gen

public final void gen(ICodeStream code)
               throws java.io.IOException
Specified by:
gen in interface ICodeGenerator
Throws:
java.io.IOException

dump

public final void dump(IAppendable out)
Specified by:
dump in interface IDumpable