Class AbstractHiddenRegionFormatter
- java.lang.Object
-
- org.eclipse.xtext.formatting2.internal.AbstractHiddenRegionFormatter
-
- All Implemented Interfaces:
IHiddenRegionFormatter
- Direct Known Subclasses:
DoubleHiddenRegionFormatter,SingleHiddenRegionFormatter
public abstract class AbstractHiddenRegionFormatter extends java.lang.Object implements IHiddenRegionFormatter
- Since:
- 2.9
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.formatting2.IHiddenRegionFormatter
HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AbstractHiddenRegionFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhighPriority()When merging, treat this configuration with a high priority.voidlowPriority()When merging, treat this configuration with a low priority.voidnewLine()Forces a line break in this hidden region.voidnoSpace()Format this hidden region with using no space (zero characters).voidoneSpace()One space is added at this hidden region.voidsetNewLines(int newLines)Forces the number of newlines in this hidden region.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.formatting2.IHiddenRegionFormatter
autowrap, autowrap, getRequest, indent, noAutowrap, noIndentation, setNewLines, setOnAutowrap, setPriority, setSpace
-
-
-
-
Method Detail
-
highPriority
public void highPriority()
Description copied from interface:IHiddenRegionFormatterWhen merging, treat this configuration with a high priority.- Specified by:
highPriorityin interfaceIHiddenRegionFormatter- See Also:
IHiddenRegionFormatter.lowPriority(),IHiddenRegionFormatter.HIGH_PRIORITY
-
lowPriority
public void lowPriority()
Description copied from interface:IHiddenRegionFormatterWhen merging, treat this configuration with a low priority.- Specified by:
lowPriorityin interfaceIHiddenRegionFormatter- See Also:
IHiddenRegionFormatter.highPriority(),IHiddenRegionFormatter.LOW_PRIORITY
-
newLine
public void newLine()
Description copied from interface:IHiddenRegionFormatterForces a line break in this hidden region. Same assetNewLines(1).- Specified by:
newLinein interfaceIHiddenRegionFormatter
-
noSpace
public void noSpace()
Description copied from interface:IHiddenRegionFormatterFormat this hidden region with using no space (zero characters). Same assetSpace("").- Specified by:
noSpacein interfaceIHiddenRegionFormatter
-
oneSpace
public void oneSpace()
Description copied from interface:IHiddenRegionFormatterOne space is added at this hidden region. Same assetSpace(" ").- Specified by:
oneSpacein interfaceIHiddenRegionFormatter
-
setNewLines
public void setNewLines(int newLines)
Description copied from interface:IHiddenRegionFormatterForces the number of newlines in this hidden region. Same assetNewLines(nl, nl, nl)- Specified by:
setNewLinesin interfaceIHiddenRegionFormatter
-
-