Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use CharacterRange
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
CharacterRangeTableAttribute
. Delivered as a CodeElement
during traversal of the elements of a CodeModel
, according to
the setting of the ClassFile.DebugElementsOption
option.
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 |
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.
|