public class FormatTextRanges extends java.lang.Object implements FormattingRangesInfo
Constructor and Description |
---|
FormatTextRanges() |
FormatTextRanges(ChangedRangesInfo changedRangesInfo,
java.util.List<TextRange> contextRanges) |
FormatTextRanges(TextRange range,
boolean processHeadingWhitespace) |
Modifier and Type | Method and Description |
---|---|
void |
add(TextRange range,
boolean processHeadingWhitespace) |
FormatTextRanges |
ensureNonEmpty() |
TextRange |
getBoundRange() |
java.util.List<TextRange> |
getExtendedRanges() |
java.util.List<FormatTextRange> |
getRanges() |
java.util.List<TextRange> |
getTextRanges() |
boolean |
isEmpty() |
boolean |
isExtendToContext() |
boolean |
isFullReformat(PsiFile file) |
boolean |
isInDisabledRange(TextRange textRange) |
boolean |
isOnInsertedLine(int offset) |
boolean |
isReadOnly(TextRange range) |
boolean |
isWhitespaceReadOnly(TextRange range) |
void |
setDisabledRanges(java.util.Collection<TextRange> disabledRanges) |
void |
setExtendedRanges(java.util.List<TextRange> extendedRanges) |
void |
setExtendToContext(boolean extendToContext) |
public FormatTextRanges()
public FormatTextRanges(TextRange range, boolean processHeadingWhitespace)
public FormatTextRanges(ChangedRangesInfo changedRangesInfo, java.util.List<TextRange> contextRanges)
public void add(TextRange range, boolean processHeadingWhitespace)
public boolean isWhitespaceReadOnly(TextRange range)
isWhitespaceReadOnly
in interface FormattingRangesInfo
public boolean isReadOnly(TextRange range)
isReadOnly
in interface FormattingRangesInfo
public boolean isOnInsertedLine(int offset)
isOnInsertedLine
in interface FormattingRangesInfo
public java.util.List<FormatTextRange> getRanges()
public FormatTextRanges ensureNonEmpty()
public boolean isEmpty()
public boolean isFullReformat(PsiFile file)
public java.util.List<TextRange> getTextRanges()
public void setExtendedRanges(java.util.List<TextRange> extendedRanges)
public java.util.List<TextRange> getExtendedRanges()
public TextRange getBoundRange()
public boolean isExtendToContext()
public void setExtendToContext(boolean extendToContext)
public void setDisabledRanges(java.util.Collection<TextRange> disabledRanges)
public boolean isInDisabledRange(TextRange textRange)