CharacterRangeTableAttribute.
Each character range entry associates a range of indices in the code array
with a range of character positions in the source file. A character position
in the source file is represented by a line number and a column number, and
its value is encoded as lineNumber << 10 + columnNumber. Note that
column numbers are not the same as byte indices in a column as multibyte
characters may be present in the source file.
Each character range entry includes a
flag which indicates what kind of range is described: statement, assignment,
method call, etc.
CharacterRangeTableAttribute#characterRangeTable(), CharacterRange
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the encoded end of character positions in the source file, exclusiveReturns the encoded end of character positions in the source file, exclusive. |
| public int | Returns: the encoded start of character positions in the source file, inclusiveReturns the encoded start of character positions in the source file, inclusive. |
| public int | Returns: the end of indices in the code array, exclusiveReturns the end of indices in the code array, exclusive. |
| public int | Returns: the flags of this character range entryReturns the flags of this character range entry. |
| public static CharacterRangeInfo | Returns: a character range entrythe start of indices in the code array, inclusive startPc, int the end of indices in the code array, exclusive endPc, int the encoded start of character positions in
the source file, inclusive characterRangeStart, int the encoded end of character positions in the
source file, exclusive characterRangeEnd, int the flags of this entry flags)Returns a character range entry. |
| public int | Returns: the start of indices in the code array, inclusiveReturns the start of indices in the code array, inclusive. |
| characterRangeEnd | back to summary |
|---|---|
| public int characterRangeEnd() Returns the encoded end of character positions in the source file, exclusive.
| |
| characterRangeStart | back to summary |
|---|---|
| public int characterRangeStart() Returns the encoded start of character positions in the source file, inclusive.
| |
| endPc | back to summary |
|---|---|
| public int endPc() Returns the end of indices in the code array, exclusive.
| |
| flags | back to summary |
|---|---|
| public int flags() Returns the flags of this character range entry. The value of the flags item describes the kind of range. Multiple flags may be set within flags.
All bits of the flags item not assigned above are reserved for future use. They should be set to zero in generated class files and should be ignored by Java virtual machine implementations.
| |
| of | back to summary |
|---|---|
| public static CharacterRangeInfo of(int startPc, int endPc, int characterRangeStart, int characterRangeEnd, int flags) Returns a character range entry. API Note The created entry cannot be written to a
| |
| startPc | back to summary |
|---|---|
| public int startPc() Returns the start of indices in the code array, inclusive.
| |