Class QlDcsFormatter

  • All Implemented Interfaces:
    org.eclipse.xtext.formatting.IFormatter, org.eclipse.xtext.formatting.IFormatterExtension

    public class QlDcsFormatter
    extends QlFormatter
    This class contains custom formatting description. see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting on how and when to use it Also see org.eclipse.xtext.xtext.XtextFormattingTokenSerializer as an example
    • Constructor Detail

      • QlDcsFormatter

        public QlDcsFormatter()
    • Method Detail

      • createFormatterStream

        public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream​(String indent,
                                                                                       org.eclipse.xtext.parsetree.reconstr.ITokenStream out,
                                                                                       boolean preserveWhitespaces)
        Specified by:
        createFormatterStream in interface org.eclipse.xtext.formatting.IFormatter
        Overrides:
        createFormatterStream in class QlFormatter
      • createFormatterStream

        public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream​(org.eclipse.emf.ecore.EObject context,
                                                                                       String indent,
                                                                                       org.eclipse.xtext.parsetree.reconstr.ITokenStream out,
                                                                                       boolean preserveWhitespaces)
        Specified by:
        createFormatterStream in interface org.eclipse.xtext.formatting.IFormatterExtension
        Overrides:
        createFormatterStream in class QlFormatter
      • createFormattingConfig

        protected org.eclipse.xtext.formatting.impl.FormattingConfig createFormattingConfig()
        Overrides:
        createFormattingConfig in class QlFormatter
      • configureFormatting

        protected void configureFormatting​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Formating all part of query
        Overrides:
        configureFormatting in class QlFormatter
        Parameters:
        c - configuration
      • commonFormatRule

        protected void commonFormatRule​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Common rule of formatting (for punctuation)
        Overrides:
        commonFormatRule in class QlFormatter
        Parameters:
        c - configuration
      • formatQuerySchema

        protected void formatQuerySchema​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Rule formatting around anything query
        Overrides:
        formatQuerySchema in class QlFormatter
        Parameters:
        c - configuration
      • formatQuerySchemaSource

        protected void formatQuerySchemaSource​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Rule formatting for source of query
        Overrides:
        formatQuerySchemaSource in class QlFormatter
        Parameters:
        c - configuration
      • formatTopSelector

        protected void formatTopSelector​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Description copied from class: QlFormatter
        Rule formatting top operator selector
        Overrides:
        formatTopSelector in class QlFormatter
        Parameters:
        c - configuration
      • formatOtherSelector

        protected void formatOtherSelector​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Description copied from class: QlFormatter
        Rule formatting other operator selector
        Overrides:
        formatOtherSelector in class QlFormatter
        Parameters:
        c - configuration
      • formatQuerySchemaSelectQuery

        protected void formatQuerySchemaSelectQuery​(org.eclipse.xtext.formatting.impl.FormattingConfig c)
        Description copied from class: QlFormatter
        Rule formatting select query
        Overrides:
        formatQuerySchemaSelectQuery in class QlFormatter
        Parameters:
        c - configuration