Interface IHiddenRegionPart
-
- All Superinterfaces:
java.lang.Comparable<ITextSegment>
,org.eclipse.xtext.util.ITextRegion
,ITextSegment
- All Known Subinterfaces:
IComment
,IWhitespace
- All Known Implementing Classes:
NodeComment
,NodeHidden
,NodeWhitespace
,StringComment
,StringHidden
,StringWhitespace
public interface IHiddenRegionPart extends ITextSegment
Common interface forIWhitespace
andIComment
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HiddenRegionPartAssociation
getAssociation()
org.eclipse.emf.ecore.EObject
getGrammarElement()
IHiddenRegion
getHiddenRegion()
IHiddenRegionPart
getNextHiddenPart()
IHiddenRegionPart
getPreviousHiddenPart()
-
Methods inherited from interface org.eclipse.xtext.util.ITextRegion
contains, contains, getLength, getOffset
-
Methods inherited from interface org.eclipse.xtext.formatting2.regionaccess.ITextSegment
getEndOffset, getLineCount, getLineRegions, getText, getTextRegionAccess, isMultiline, merge, replaceWith
-
-
-
-
Method Detail
-
getGrammarElement
org.eclipse.emf.ecore.EObject getGrammarElement()
- Returns:
- The grammar element the parser used to parse this
IWhitespace
orIComment
. This should be anTerminalRule
for tokens the grammar defined as 'hidden'. May be another grammar element if the construction of theITextRegionAccess
has been customized.
-
getHiddenRegion
IHiddenRegion getHiddenRegion()
- Returns:
- the
IHiddenRegion
thisIWhitespace
orIComment
is a member of.
-
getNextHiddenPart
IHiddenRegionPart getNextHiddenPart()
- Returns:
- The next following
IWhitespace
orIComment
inside the sameIHiddenRegion
. Null if the currentIHiddenRegionPart
is the last element inside itsIHiddenRegion
.
-
getPreviousHiddenPart
IHiddenRegionPart getPreviousHiddenPart()
- Returns:
- The leading
IWhitespace
orIComment
inside the sameIHiddenRegion
. Null if the currentIHiddenRegionPart
is the first element inside itsIHiddenRegion
.
-
getAssociation
HiddenRegionPartAssociation getAssociation()
- Returns:
- A hint whether the whitespace or comment belongs to the previous or next semantic element or neither of them.
- Since:
- 2.14
- See Also:
for custom behaviour.
-
-