Package com._1c.g5.v8.dt.ql.formatting
Class QlFormattingConfigBasedStream
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractTokenStream
-
- org.eclipse.xtext.formatting.impl.BaseTokenStream
-
- org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
-
- com._1c.g5.v8.dt.ql.formatting.QlFormattingConfigBasedStream
-
- All Implemented Interfaces:
org.eclipse.xtext.parsetree.reconstr.ITokenStream
,org.eclipse.xtext.parsetree.reconstr.ITokenStreamExtension
public class QlFormattingConfigBasedStream extends org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
Special implementation ofFormattingConfigBasedStream
for Ql language
-
-
Constructor Summary
Constructors Constructor Description QlFormattingConfigBasedStream(org.eclipse.xtext.parsetree.reconstr.ITokenStream out, String initialIndentation, org.eclipse.xtext.formatting.impl.FormattingConfig cfg, org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcher<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementPattern> matcher, org.eclipse.xtext.parsetree.reconstr.IHiddenTokenHelper hiddenTokenHelper, boolean preserveSpaces)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator>
collectLocators(org.eclipse.emf.ecore.EObject ele)
protected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator>
collectLocatorsForComments(Collection<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> semanticLocators, org.eclipse.emf.ecore.EObject left, org.eclipse.emf.ecore.EObject right)
-
-
-
Constructor Detail
-
QlFormattingConfigBasedStream
public QlFormattingConfigBasedStream(org.eclipse.xtext.parsetree.reconstr.ITokenStream out, String initialIndentation, org.eclipse.xtext.formatting.impl.FormattingConfig cfg, org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcher<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementPattern> matcher, org.eclipse.xtext.parsetree.reconstr.IHiddenTokenHelper hiddenTokenHelper, boolean preserveSpaces)
Constructor- Parameters:
out
- actualITokenStream
initialIndentation
- actual initial indentationcfg
- actualFormattingConfig
matcher
- actualIElementMatcherProvider.IElementMatcher
hiddenTokenHelper
- actualIHiddenTokenHelper
preserveSpaces
-true
if need to preserve spaces,false
otherwise
-
-
Method Detail
-
collectLocators
protected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> collectLocators(org.eclipse.emf.ecore.EObject ele)
- Overrides:
collectLocators
in classorg.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
-
collectLocatorsForComments
protected Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> collectLocatorsForComments(Collection<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> semanticLocators, org.eclipse.emf.ecore.EObject left, org.eclipse.emf.ecore.EObject right)
- Overrides:
collectLocatorsForComments
in classorg.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
-
-