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 forIWhitespaceandIComment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HiddenRegionPartAssociationgetAssociation()org.eclipse.emf.ecore.EObjectgetGrammarElement()IHiddenRegiongetHiddenRegion()IHiddenRegionPartgetNextHiddenPart()IHiddenRegionPartgetPreviousHiddenPart()-
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
IWhitespaceorIComment. This should be anTerminalRulefor tokens the grammar defined as 'hidden'. May be another grammar element if the construction of theITextRegionAccesshas been customized.
-
getHiddenRegion
IHiddenRegion getHiddenRegion()
- Returns:
- the
IHiddenRegionthisIWhitespaceorICommentis a member of.
-
getNextHiddenPart
IHiddenRegionPart getNextHiddenPart()
- Returns:
- The next following
IWhitespaceorICommentinside the sameIHiddenRegion. Null if the currentIHiddenRegionPartis the last element inside itsIHiddenRegion.
-
getPreviousHiddenPart
IHiddenRegionPart getPreviousHiddenPart()
- Returns:
- The leading
IWhitespaceorICommentinside the sameIHiddenRegion. Null if the currentIHiddenRegionPartis 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.
-
-