public class ManualRangeMarker extends java.lang.Object implements Segment
getUpdatedRange(DocumentEvent, FrozenDocument)
.
Can hold PSI-based range and be updated when the document is committed.BY_START_OFFSET_THEN_END_OFFSET, EMPTY_ARRAY
Constructor and Description |
---|
ManualRangeMarker(int start,
int end,
boolean greedyLeft,
boolean greedyRight,
boolean surviveOnExternalChange,
com.intellij.openapi.editor.impl.PersistentRangeMarker.LinesCols linesCols) |
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset() |
int |
getStartOffset() |
ManualRangeMarker |
getUpdatedRange(DocumentEvent event,
FrozenDocument documentBefore) |
java.lang.String |
toString() |
public ManualRangeMarker(int start, int end, boolean greedyLeft, boolean greedyRight, boolean surviveOnExternalChange, com.intellij.openapi.editor.impl.PersistentRangeMarker.LinesCols linesCols)
public ManualRangeMarker getUpdatedRange(DocumentEvent event, FrozenDocument documentBefore)
public int getStartOffset()
getStartOffset
in interface Segment
public int getEndOffset()
getEndOffset
in interface Segment
public java.lang.String toString()
toString
in class java.lang.Object