Class RuleFormattingConfigBasedStream
java.lang.Object
org.eclipse.xtext.formatting.impl.AbstractTokenStream
org.eclipse.xtext.formatting.impl.BaseTokenStream
org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
org.openhab.core.model.rule.formatting.RuleFormattingConfigBasedStream
- All Implemented Interfaces:
org.eclipse.xtext.parsetree.reconstr.ITokenStream,org.eclipse.xtext.parsetree.reconstr.ITokenStreamExtension
@NonNullByDefault
public class RuleFormattingConfigBasedStream
extends org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
This class exists only to override indentation logic.
- Author:
- Ravi Nadahar - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line, org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry -
Field Summary
Fields inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
activeRangeLocators, cfg, currentLine, hiddenTokenHelper, indentationLevel, indentationPrefix, last, matcher, preservedWS, preserveSpacesFields inherited from class org.eclipse.xtext.formatting.impl.BaseTokenStream
out -
Constructor Summary
ConstructorsConstructorDescriptionRuleFormattingConfigBasedStream(@Nullable org.eclipse.xtext.parsetree.reconstr.ITokenStream out, @Nullable String initialIndentation, org.eclipse.xtext.formatting.impl.FormattingConfig cfg, org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcher<@Nullable org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementPattern> matcher, org.eclipse.xtext.parsetree.reconstr.IHiddenTokenHelper hiddenTokenHelper, boolean preserveSpaces) -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> collectLocators(org.eclipse.emf.ecore.EObject ele) Methods inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
addLineEntry, collectLocatorsForComments, createLine, createLine, createLine, createLine, createLineEntry, findTopmostHiddenTokenDef, flush, getLineSeparator, harmonizeLineSeparator, init, writeHidden, writeSemantic
-
Constructor Details
-
RuleFormattingConfigBasedStream
public RuleFormattingConfigBasedStream(@Nullable org.eclipse.xtext.parsetree.reconstr.ITokenStream out, @Nullable String initialIndentation, org.eclipse.xtext.formatting.impl.FormattingConfig cfg, org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcher<@Nullable org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementPattern> matcher, org.eclipse.xtext.parsetree.reconstr.IHiddenTokenHelper hiddenTokenHelper, boolean preserveSpaces)
-
-
Method Details
-
collectLocators
@NonNullByDefault({}) protected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> collectLocators(org.eclipse.emf.ecore.EObject ele) - Overrides:
collectLocatorsin classorg.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
-