Top Fields Constructors Methods
jdk.internal.classfile.impl

public final Class BoundCharacterRange

extends AbstractElement
implements CharacterRange
Class Inheritance
All Implemented Interfaces
java.lang.classfile.instruction.CharacterRange, java.lang.classfile.PseudoInstruction, java.lang.classfile.CodeElement, java.lang.classfile.ClassFileElement
Imports
java.lang.classfile.Label, java.lang.classfile.instruction.CharacterRange

Field Summary

Modifier and TypeField and Description
private final CodeImpl
private final int

Constructor Summary

AccessConstructor and Description
public
BoundCharacterRange(CodeImpl code, int offset)

Method Summary

Modifier and TypeMethod and Description
public int
characterRangeEnd()

Implements java.lang.classfile.instruction.CharacterRange.characterRangeEnd.

Returns the encoded end of the character range region (exclusive).

public int
characterRangeStart()

Implements java.lang.classfile.instruction.CharacterRange.characterRangeStart.

Returns the encoded start of the character range region (inclusive).

pack-priv int
public Label
endScope()

Implements java.lang.classfile.instruction.CharacterRange.endScope.

Returns the end of the instruction range.

public int
flags()

Implements java.lang.classfile.instruction.CharacterRange.flags.

A flags word, indicating the kind of range.

pack-priv int
public Label
startScope()

Implements java.lang.classfile.instruction.CharacterRange.startScope.

Returns the start of the instruction range.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
Inherited from jdk.internal.classfile.impl.AbstractElement:
writeTowriteTowriteTo

Field Detail

codeback to summary
private final CodeImpl code
offsetback to summary
private final int offset

Constructor Detail

BoundCharacterRangeback to summary
public BoundCharacterRange(CodeImpl code, int offset)

Method Detail

characterRangeEndback to summary
public int characterRangeEnd()

Implements java.lang.classfile.instruction.CharacterRange.characterRangeEnd.

Doc from java.lang.classfile.instruction.CharacterRange.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 line_number << 10 + column_number, where the source file is viewed as an array of (possibly multi-byte) characters.

Returns:int

the encoded end of the character range region (exclusive)

Annotations
@Override
characterRangeStartback to summary
public int characterRangeStart()

Implements java.lang.classfile.instruction.CharacterRange.characterRangeStart.

Doc from java.lang.classfile.instruction.CharacterRange.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 line_number << 10 + column_number, where the source file is viewed as an array of (possibly multi-byte) characters.

Returns:int

the encoded start of the character range region (inclusive)

Annotations
@Override
endPcback to summary
pack-priv int endPc()
endScopeback to summary
public Label endScope()

Implements java.lang.classfile.instruction.CharacterRange.endScope.

Doc from java.lang.classfile.instruction.CharacterRange.endScope.

Returns the end of the instruction range.

Returns:Label

the end of the instruction range

Annotations
@Override
flagsback to summary
public int flags()

Implements java.lang.classfile.instruction.CharacterRange.flags.

Doc from java.lang.classfile.instruction.CharacterRange.flags.

A flags word, indicating the kind of range. Multiple flag bits may be set. Valid flags include:

Returns:int

the flags

Annotations
@Override
startPcback to summary
pack-priv int startPc()
startScopeback to summary
public Label startScope()

Implements java.lang.classfile.instruction.CharacterRange.startScope.

Doc from java.lang.classfile.instruction.CharacterRange.startScope.

Returns the start of the instruction range.

Returns:Label

the start of the instruction range

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
writeToback to summary
public void writeTo(DirectCodeBuilder builder)

Overrides jdk.internal.classfile.impl.AbstractElement.writeTo.

Annotations
@Override