public class HiddenRegion extends AbstractTextSegment implements IHiddenRegion
EMPTY_REGION
Modifier | Constructor and Description |
---|---|
protected |
HiddenRegion(ITextRegionAccess tokenAccess) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsComment() |
int |
getLength() |
IHiddenRegion |
getNextHiddenRegion() |
ISemanticRegion |
getNextSemanticRegion() |
int |
getOffset() |
java.util.List<IHiddenRegionPart> |
getParts() |
IHiddenRegion |
getPreviousHiddenRegion() |
ISemanticRegion |
getPreviousSemanticRegion() |
ITextRegionAccess |
getTextRegionAccess() |
boolean |
isUndefined() |
protected void |
setNext(ISemanticRegion next) |
protected void |
setPrevious(ISemanticRegion previous) |
java.lang.String |
toString() |
compareTo, contains, contains, equals, getEndOffset, getIndentation, getLineCount, getText, hashCode, isMultiline, merge, splitIntoLines
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEndOffset, getIndentation, getLineCount, getText, isMultiline, splitIntoLines
contains, contains, merge
protected HiddenRegion(ITextRegionAccess tokenAccess)
public boolean containsComment()
containsComment
in interface IHiddenRegion
IHiddenRegion.getParts()
contains at least one IComment
.public int getLength()
getLength
in interface ITextRegion
public IHiddenRegion getNextHiddenRegion()
getNextHiddenRegion
in interface ISequentialRegion
public ISemanticRegion getNextSemanticRegion()
getNextSemanticRegion
in interface ISequentialRegion
public int getOffset()
getOffset
in interface ITextRegion
public java.util.List<IHiddenRegionPart> getParts()
getParts
in interface IHiddenRegion
IWhitespace
s and IComment
s that belong to this IHiddenRegion
.public IHiddenRegion getPreviousHiddenRegion()
getPreviousHiddenRegion
in interface ISequentialRegion
public ISemanticRegion getPreviousSemanticRegion()
getPreviousSemanticRegion
in interface ISequentialRegion
public ITextRegionAccess getTextRegionAccess()
getTextRegionAccess
in interface ITextSegment
public boolean isUndefined()
isUndefined
in interface IHiddenRegion
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.protected void setNext(ISemanticRegion next)
protected void setPrevious(ISemanticRegion previous)
public java.lang.String toString()
toString
in class java.lang.Object