public class StringHidden extends StringRegion implements IHiddenRegionPart
EMPTY_REGION
Modifier | Constructor and Description |
---|---|
protected |
StringHidden(AbstractHiddenRegion hidden,
AbstractRule rule,
int offset,
int lenght) |
Modifier and Type | Method and Description |
---|---|
AbstractRule |
getGrammarElement() |
IHiddenRegion |
getHiddenRegion() |
IHiddenRegionPart |
getNextHiddenPart() |
IHiddenRegionPart |
getPreviousHiddenPart() |
getLength, getOffset, getTextRegionAccess, toString
compareTo, contains, contains, equals, getEndOffset, getLineCount, getLineRegions, getText, hashCode, isMultiline, merge, replaceWith
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEndOffset, getLineCount, getLineRegions, getText, getTextRegionAccess, isMultiline, merge, replaceWith
contains, contains, getLength, getOffset
protected StringHidden(AbstractHiddenRegion hidden, AbstractRule rule, int offset, int lenght)
public AbstractRule getGrammarElement()
getGrammarElement
in interface IHiddenRegionPart
IWhitespace
or IComment
. This should be
an TerminalRule
for tokens the grammar defined as 'hidden'. May be another grammar element if the
construction of the ITextRegionAccess
has been customized.public IHiddenRegion getHiddenRegion()
getHiddenRegion
in interface IHiddenRegionPart
IHiddenRegion
this IWhitespace
or IComment
is a member of.public IHiddenRegionPart getNextHiddenPart()
getNextHiddenPart
in interface IHiddenRegionPart
IWhitespace
or IComment
inside the same IHiddenRegion
. Null if
the current IHiddenRegionPart
is the last element inside its IHiddenRegion
.public IHiddenRegionPart getPreviousHiddenPart()
getPreviousHiddenPart
in interface IHiddenRegionPart
IWhitespace
or IComment
inside the same IHiddenRegion
. Null if the
current IHiddenRegionPart
is the first element inside its IHiddenRegion
.