Code attribute. This
models a single entry in the LineNumberTable
attribute. Delivered as a CodeElement during traversal of the
elements of a CodeModel, according to the setting of the ClassFile.LineNumbersOption option.
A line number entry is composite:
Another model, LineNumberInfo, also models a line number entry; it
has no dependency on a CodeModel and represents of bci values as
ints instead of order of pseudo-instructions in the elements of a
CodeModel, and is used as components of a LineNumberTableAttribute.
API Note
Line numbers are represented with custom pseudo-instructions to avoid using labels, which usually indicate branching targets for the control flow.
LineNumberInfo, CodeBuilder::lineNumber, ClassFile.LineNumbersOption
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static LineNumber | Returns: a line number pseudo-instructionthe line number line)Returns a line number pseudo-instruction. |
| line | back to summary |
|---|---|
| public int line() Returns the line number.
| |
| of | back to summary |
|---|---|
| public static LineNumber of(int line) Returns a line number pseudo-instruction.
| |