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)
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 IllegalArgumentException
ClassWriter.ElementcopyInto in class ClassWriter.ElementIllegalArgumentExceptionpublic static int[] makeRawTable(int[] newLineMap)
throws 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)IllegalArgumentException - if newLineMap == nullCopyright © 2019. All rights reserved.