Package burp.api.montoya.ui
Interface Selection
-
public interface SelectionThis interface provides helpful information and functionality relating to a user's selection within the user interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteArraycontents()Rangeoffsets()static Selectionselection(int startIndexInclusive, int endIndexExclusive)A helper method to create an instance ofSelectionwithout content data.static Selectionselection(ByteArray selectionContents)A helper method to create an instance ofSelectionwithout positional data.static Selectionselection(ByteArray selectionContents, int startIndexInclusive, int endIndexExclusive)A helper method to create an instance ofSelection.
-
-
-
Method Detail
-
selection
static Selection selection(ByteArray selectionContents)
A helper method to create an instance ofSelectionwithout positional data.- Parameters:
selectionContents- The contents of the selection.- Returns:
- A new instance of
Selection
-
selection
static Selection selection(int startIndexInclusive, int endIndexExclusive)
A helper method to create an instance ofSelectionwithout content data.- Parameters:
startIndexInclusive- The start position of the selection range.endIndexExclusive- The end position of the selection range.- Returns:
- A new instance of
Selection
-
selection
static Selection selection(ByteArray selectionContents, int startIndexInclusive, int endIndexExclusive)
A helper method to create an instance ofSelection.- Parameters:
selectionContents- The contents of the selection.startIndexInclusive- The start position of the selection range.endIndexExclusive- The end position of the selection range.- Returns:
- A new instance of
Selection
-
contents
ByteArray contents()
- Returns:
- The contents that are derived from within the user's selection range.
-
offsets
Range offsets()
- Returns:
- The positional data of where the user has selected.
-
-