Class RightTemplatesFormattingConfigBasedStream

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

    public class RightTemplatesFormattingConfigBasedStream
    extends org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
    Special FormattingConfigBasedStream for Templates grammar formatter.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  RightTemplatesFormattingConfigBasedStream.RightTemplatesLine
      Special FormattingConfigBasedStream.Line for Templates grammar formatter.
      protected class  RightTemplatesFormattingConfigBasedStream.RightTemplatesLineEntry
      Special FormattingConfigBasedStream.LineEntry for Templates grammar formatter.
      • 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, preserveSpaces
      • Fields inherited from class org.eclipse.xtext.formatting.impl.BaseTokenStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      RightTemplatesFormattingConfigBasedStream​(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)
      Initialize
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine()  
      protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(int leftover)  
      protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(List<org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry> entries)  
      protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(List<org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry> initialEntries, int leftover)  
      org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry createLineEntry​(org.eclipse.emf.ecore.EObject grammarElement, String value, boolean isHidden, Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> beforeLocators, String leadingWS, int indent, org.eclipse.xtext.ParserRule hiddenTokenDefition)
      • Methods inherited from class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream

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

      • RightTemplatesFormattingConfigBasedStream

        public RightTemplatesFormattingConfigBasedStream​(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)
        Initialize
    • Method Detail

      • createLineEntry

        public org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry createLineEntry​(org.eclipse.emf.ecore.EObject grammarElement,
                                                                                                       String value,
                                                                                                       boolean isHidden,
                                                                                                       Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> beforeLocators,
                                                                                                       String leadingWS,
                                                                                                       int indent,
                                                                                                       org.eclipse.xtext.ParserRule hiddenTokenDefition)
        Overrides:
        createLineEntry in class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
      • createLine

        protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine()
        Overrides:
        createLine in class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
      • createLine

        protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(int leftover)
        Overrides:
        createLine in class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
      • createLine

        protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(List<org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry> entries)
        Overrides:
        createLine in class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream
      • createLine

        protected org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.Line createLine​(List<org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry> initialEntries,
                                                                                                int leftover)
        Overrides:
        createLine in class org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream