Interface ITextRegionExtensions
-
- All Known Implementing Classes:
AbstractRegionAccess,NodeModelBasedRegionAccess,StringBasedRegionAccess,StringBasedTextRegionAccessDiff
public interface ITextRegionExtensionsThis class is a facade on top of anITextRegionAccess. It provides convenience methods to be used by formatters that are implemented in the Xtend programming language.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISemanticRegionsFinderallRegionsFor(org.eclipse.emf.ecore.EObject semanticElement)java.lang.Iterable<ISemanticRegion>allSemanticRegions(org.eclipse.emf.ecore.EObject semanticElement)ITextRegionAccessgetTextRegionAccess()org.eclipse.emf.ecore.EObjectgrammarElement(org.eclipse.emf.ecore.EObject semanticElement)ISemanticRegionFinderimmediatelyFollowing(org.eclipse.emf.ecore.EObject semanticElement)ISemanticRegionFinderimmediatelyPreceding(org.eclipse.emf.ecore.EObject semanticElement)booleanisMultiline(org.eclipse.emf.ecore.EObject semanticElement)IHiddenRegionnextHiddenRegion(org.eclipse.emf.ecore.EObject semanticElement)IHiddenRegionpreviousHiddenRegion(org.eclipse.emf.ecore.EObject semanticElement)ISemanticRegionsFinderregionFor(org.eclipse.emf.ecore.EObject semanticElement)IEObjectRegionregionForEObject(org.eclipse.emf.ecore.EObject semanticElement)java.lang.Iterable<ISemanticRegion>semanticRegions(org.eclipse.emf.ecore.EObject semanticElement)
-
-
-
Method Detail
-
allRegionsFor
ISemanticRegionsFinder allRegionsFor(org.eclipse.emf.ecore.EObject semanticElement)
-
allSemanticRegions
java.lang.Iterable<ISemanticRegion> allSemanticRegions(org.eclipse.emf.ecore.EObject semanticElement)
-
getTextRegionAccess
ITextRegionAccess getTextRegionAccess()
-
grammarElement
org.eclipse.emf.ecore.EObject grammarElement(org.eclipse.emf.ecore.EObject semanticElement)
- Returns:
- the
RuleCallor the assignedActionthat led to the construction of this EObject. For the model's root element, theParserRuleis returned.
-
immediatelyFollowing
ISemanticRegionFinder immediatelyFollowing(org.eclipse.emf.ecore.EObject semanticElement)
-
immediatelyPreceding
ISemanticRegionFinder immediatelyPreceding(org.eclipse.emf.ecore.EObject semanticElement)
-
isMultiline
boolean isMultiline(org.eclipse.emf.ecore.EObject semanticElement)
- Returns:
- true, if the EObject's text range contains a line-wrap ("\n"). The EObject's text range reaches from the beginning of its first semantic region to the end of its last semantic region.
-
nextHiddenRegion
IHiddenRegion nextHiddenRegion(org.eclipse.emf.ecore.EObject semanticElement)
- Returns:
- the
IHiddenRegionthat follows after the EObject's lastISemanticRegion. - See Also:
previousHiddenRegion(EObject)
-
previousHiddenRegion
IHiddenRegion previousHiddenRegion(org.eclipse.emf.ecore.EObject semanticElement)
- Returns:
- the
IHiddenRegionthat precedes the EObject's firstISemanticRegion. - See Also:
nextHiddenRegion(EObject)
-
regionFor
ISemanticRegionsFinder regionFor(org.eclipse.emf.ecore.EObject semanticElement)
-
regionForEObject
IEObjectRegion regionForEObject(org.eclipse.emf.ecore.EObject semanticElement)
- Returns:
- a text region that reaches from the beginning of its first semantic region to the end of its last semantic region.
-
semanticRegions
java.lang.Iterable<ISemanticRegion> semanticRegions(org.eclipse.emf.ecore.EObject semanticElement)
-
-