public interface IHiddenRegion extends ISequentialRegion
Represents and groups all IWhitespace
and comments
between two semantic regions
. May be empty.
IComment
,
IWhitespace
,
ISemanticRegion
,
ITextRegionAccess
EMPTY_REGION
Modifier and Type | Method and Description |
---|---|
boolean |
containsComment() |
java.util.List<ITextSegment> |
getAlternatingMergedSpaceAndComments() |
java.util.List<ITextSegment> |
getMergedSpaces() |
java.util.List<IHiddenRegionPart> |
getParts() |
boolean |
isUndefined() |
getNextHiddenRegion, getNextSemanticRegion, getPreviousHiddenRegion, getPreviousSemanticRegion, immediatelyFollowing, immediatelyPreceding
getEndOffset, getLineCount, getLineRegions, getText, getTextRegionAccess, isMultiline, merge, replaceWith
contains, contains, getLength, getOffset
boolean containsComment()
getParts()
contains at least one IComment
.java.util.List<IHiddenRegionPart> getParts()
white spaces
and comments
that belong to this
IHiddenRegion
.boolean isUndefined()
IHiddenRegion
. This is the case if
there is no node model for this HiddenRegion. There may be no node model during serialization if a
semantic model has been constructed or modified programmatically.java.util.List<ITextSegment> getAlternatingMergedSpaceAndComments()
java.util.List<ITextSegment> getMergedSpaces()