CharacterRangeTable attribute. Delivered as a
CodeElement during traversal of the elements of a CodeModel,
according to the setting of the ClassFile.DebugElementsOption option.
A character range entry is composite:
CharacterRange( Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags )
Another model, CharacterRangeInfo, also models a character range
entry; it has no dependency on a CodeModel and represents of bci
values as ints instead of Labels, and is used as components
of a CharacterRangeTableAttribute.
CharacterRangeInfo, CodeBuilder::characterRange, ClassFile.DebugElementsOption
| Modifier and Type | Field and Description |
|---|---|
| public static final int | FLAG_ASSIGNMENT
The bit mask of ASSIGNMENT |
| public static final int | FLAG_BLOCK
The bit mask of BLOCK |
| public static final int | FLAG_BRANCH_FALSE
The bit mask of BRANCH_FALSE |
| public static final int | FLAG_BRANCH_TRUE
The bit mask of BRANCH_TRUE |
| public static final int | FLAG_CREATE
The bit mask of CREATE |
| public static final int | FLAG_FLOW_CONTROLLER
The bit mask of FLOW_CONTROLLER |
| public static final int | FLAG_FLOW_TARGET
The bit mask of FLOW_TARGET |
| public static final int | FLAG_INVOKE
The bit mask of INVOKE |
| public static final int | FLAG_STATEMENT
The bit mask of STATEMENT |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the encoded end of the character range region (exclusive)Returns the encoded end of the character range region (exclusive). |
| public int | Returns: the encoded start of the character range region (inclusive)Returns the encoded start of the character range region (inclusive). |
| public Label | |
| public int | |
| public static CharacterRange | Returns: a character range pseudo-instructionthe start of the instruction range startScope, Label the end of the instruction range endScope, int the encoded start of the character range region (inclusive) characterRangeStart, int the encoded end of the character range region (exclusive) characterRangeEnd, int a flags word, indicating the kind of range flags)Returns a character range pseudo-instruction. |
| public Label |
| FLAG_ASSIGNMENT | back to summary |
|---|---|
| public static final int FLAG_ASSIGNMENT The bit mask of ASSIGNMENT | |
| FLAG_BLOCK | back to summary |
|---|---|
| public static final int FLAG_BLOCK The bit mask of BLOCK | |
| FLAG_BRANCH_FALSE | back to summary |
|---|---|
| public static final int FLAG_BRANCH_FALSE The bit mask of BRANCH_FALSE | |
| FLAG_BRANCH_TRUE | back to summary |
|---|---|
| public static final int FLAG_BRANCH_TRUE The bit mask of BRANCH_TRUE | |
| FLAG_CREATE | back to summary |
|---|---|
| public static final int FLAG_CREATE The bit mask of CREATE | |
| FLAG_FLOW_CONTROLLER | back to summary |
|---|---|
| public static final int FLAG_FLOW_CONTROLLER The bit mask of FLOW_CONTROLLER | |
| FLAG_FLOW_TARGET | back to summary |
|---|---|
| public static final int FLAG_FLOW_TARGET The bit mask of FLOW_TARGET | |
| FLAG_INVOKE | back to summary |
|---|---|
| public static final int FLAG_INVOKE The bit mask of INVOKE | |
| FLAG_STATEMENT | back to summary |
|---|---|
| public static final int FLAG_STATEMENT The bit mask of STATEMENT | |
| characterRangeEnd | back to summary |
|---|---|
| public int characterRangeEnd() Returns the encoded end of the character range region (exclusive). .
The value is constructed from the line_number/column_number pair as given
by
| |
| characterRangeStart | back to summary |
|---|---|
| public int characterRangeStart() Returns the encoded start of the character range region (inclusive).
The value is constructed from the line_number/column_number pair as given
by
| |
| endScope | back to summary |
|---|---|
| public Label endScope() Returns the end of the instruction range.
| |
| flags | back to summary |
|---|---|
| public int flags() A flags word, indicating the kind of range. Multiple flag bits may be set. Valid flags include:
| |
| of | back to summary |
|---|---|
| public static CharacterRange of(Label startScope, Label endScope, int characterRangeStart, int characterRangeEnd, int flags) Returns a character range pseudo-instruction.
| |
| startScope | back to summary |
|---|---|
| public Label startScope() Returns the start of the instruction range.
| |