Class ExpressionsFormattingConfigBasedStream

  • All Implemented Interfaces:
    org.eclipse.xtext.parsetree.reconstr.ITokenStream, org.eclipse.xtext.parsetree.reconstr.ITokenStreamExtension

    public class ExpressionsFormattingConfigBasedStream
    extends org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
    Special implementation of FormattingConfigBasedStream for DCS Expressions language
    • 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 
      Modifier and Type Field Description
      protected ExpressionsGrammarAccess grammarAccess  
      • Fields inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream

        activeRangeLocators, cfg, currentLine, hiddenTokenHelper, indentationLevel, indentationPrefix, last, matcher, preservedWS, preserveSpaces
      • Fields inherited from class org.eclipse.xtext.formatting.impl.BaseTokenStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionsFormattingConfigBasedStream​(ExpressionsGrammarAccess grammarAcces, 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)  
      • Methods inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream

        addLineEntry, collectLocatorsForComments, createLine, createLine, createLine, createLine, createLineEntry, findTopmostHiddenTokenDef, flush, getLineSeparator, init, writeHidden, writeSemantic
    • Constructor Detail

      • ExpressionsFormattingConfigBasedStream

        public ExpressionsFormattingConfigBasedStream​(ExpressionsGrammarAccess grammarAcces,
                                                      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:
        grammarAcces - actual ExpressionsGrammarAccess, can't be null
        out - actual ITokenStream, can't be null
        initialIndentation - actual initial indentation, can't be null
        cfg - actual FormattingConfig, can't be null
        matcher - actual IElementMatcherProvider.IElementMatcher, can't be null
        hiddenTokenHelper - actual IHiddenTokenHelper , can't be null
        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 class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream