public final class LineNumberTableWriter extends ClassWriter.Element
| Constructor and Description |
|---|
LineNumberTableWriter(ClassWriter w)
Build an empty LineNumberTable.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public LineNumberTableWriter(ClassWriter w)
java.lang.IllegalArgumentException - if w is nullpublic void setRawTable(int[] table)
table - a flattened sequence of (startPC, lineNumber) pairspublic int getSize()
getSize in class ClassWriter.Elementpublic int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.ElementcopyInto in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic static int[] makeRawTable(int[] newLineMap)
throws java.lang.IllegalArgumentException
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)java.lang.IllegalArgumentException - if newLineMap == null