Class RightTemplatesFormattingConfigBasedStream.RightTemplatesLineEntry

  • Enclosing class:
    RightTemplatesFormattingConfigBasedStream

    protected class RightTemplatesFormattingConfigBasedStream.RightTemplatesLineEntry
    extends Object
    Special FormattingConfigBasedStream.LineEntry for Templates grammar formatter.
    For getting more attributes of FormattingConfigBasedStream.LineEntry
    • Constructor Detail

      • RightTemplatesLineEntry

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

      • getGrammarElm

        public org.eclipse.emf.ecore.EObject getGrammarElm()
        Gets grammar rule object
        Returns:
        corresponding grammar rule object
      • getLeadinWs

        public String getLeadinWs()
        Gets leading spaces
        Returns:
        leading spaces
      • getCountExistingLeadingNewlines

        public int getCountExistingLeadingNewlines()
        Gets count new line before FormattingConfigBasedStream.LineEntry
        Returns:
        count new lines
      • getLeadingLocators

        public Set<org.eclipse.xtext.formatting.impl.AbstractFormattingConfig.ElementLocator> getLeadingLocators()
        Gets all AbstractFormattingConfig.ElementLocator for FormattingConfigBasedStream.LineEntry
        Returns:
        set of AbstractFormattingConfig.ElementLocator