|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeCT.ClassWriter.Element
com.ibm.wala.shrikeCT.LineNumberTableWriter
public final class LineNumberTableWriter
This class helps emit LineNumberTable attributes.
| Constructor Summary | |
|---|---|
LineNumberTableWriter(ClassWriter w)
Build an empty LineNumberTable. |
|
| Method Summary | |
|---|---|
int |
copyInto(byte[] buf,
int offset)
Copy the bytes into 'buf' at offset 'offset'. |
int |
getSize()
|
static int[] |
makeRawTable(int[] newLineMap)
|
void |
setRawTable(int[] table)
Set the raw table entries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineNumberTableWriter(ClassWriter w)
java.lang.IllegalArgumentException - if w is null| Method Detail |
|---|
public void setRawTable(int[] table)
table - a flattened sequence of (startPC, lineNumber) pairspublic int getSize()
getSize in class ClassWriter.Element
public int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.Element
copyInto in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic static int[] makeRawTable(int[] newLineMap)
newLineMap - an array indexed by bytecode offset, mapping each bytecode offset
to its line number (or 0 if there is no line or it's not known)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||