java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.BoundCharacterRange
- All Implemented Interfaces:
ClassfileElement,CodeElement,CharacterRange,PseudoInstruction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the encoded end of the character range region (exclusive).intReturns the encoded start of the character range region (inclusive).endScope()Returns the end of the instruction range.intflags()A flags word, indicating the kind of range.Returns the start of the instruction range.toString()voidwriteTo(DirectCodeBuilder builder) Methods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeTo
-
Constructor Details
-
BoundCharacterRange
-
-
Method Details
-
characterRangeStart
public int characterRangeStart()Description copied from interface:CharacterRangeReturns the encoded start of the character range region (inclusive). The value is constructed from the line_number/column_number pair as given byline_number << 10 + column_number, where the source file is viewed as an array of (possibly multi-byte) characters.- Specified by:
characterRangeStartin interfaceCharacterRange- Returns:
- the encoded start of the character range region (inclusive)
-
characterRangeEnd
public int characterRangeEnd()Description copied from interface:CharacterRangeReturns the encoded end of the character range region (exclusive).. The value is constructed from the line_number/column_number pair as given byline_number << 10 + column_number, where the source file is viewed as an array of (possibly multi-byte) characters.- Specified by:
characterRangeEndin interfaceCharacterRange- Returns:
- the encoded end of the character range region (exclusive)
-
flags
public int flags()Description copied from interface:CharacterRangeA flags word, indicating the kind of range. Multiple flag bits may be set. Valid flags includeClassfile.CRT_STATEMENT,Classfile.CRT_BLOCK,Classfile.CRT_ASSIGNMENT,Classfile.CRT_FLOW_CONTROLLER,Classfile.CRT_FLOW_TARGET,Classfile.CRT_INVOKE,Classfile.CRT_CREATE,Classfile.CRT_BRANCH_TRUE,Classfile.CRT_BRANCH_FALSE.- Specified by:
flagsin interfaceCharacterRange- Returns:
- the flags
- See Also:
-
startScope
Description copied from interface:CharacterRangeReturns the start of the instruction range.- Specified by:
startScopein interfaceCharacterRange- Returns:
- the start of the instruction range
-
endScope
Description copied from interface:CharacterRangeReturns the end of the instruction range.- Specified by:
endScopein interfaceCharacterRange- Returns:
- the end of the instruction range
-
writeTo
- Overrides:
writeToin classAbstractElement
-
toString
-