Class StoexFormatter

  • All Implemented Interfaces:
    org.eclipse.xtext.formatting2.IFormatter2

    public class StoexFormatter
    extends org.eclipse.xtext.formatting2.AbstractFormatter2
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2

        textRegionExtensions
    • Constructor Summary

      Constructors 
      Constructor Description
      StoexFormatter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _format​(BoolSample sample, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(BoxedPDF boxedPDF, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(DoubleSample sample, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(IntSample sample, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(ProbabilityMassFunction<Sample<?>> probabilityMassFunction, org.eclipse.xtext.formatting2.IFormattableDocument document)
      def dispatch void format(UnitPower unitPower, extension IFormattableDocument document) { unitPower.regionFor.keyword(unitPowAccess.circumflexAccentKeyword_1_1).prepend[oneSpace].append[oneSpace] unitPower.regionFor.keyword(unitPowAccess.leftParenthesisKeyword_0_1_0).append[oneSpace] unitPower.regionFor.keyword(unitPowAccess.rightParenthesisKeyword_0_1_2).prepend[oneSpace] }
      protected void _format​(Sample<?> sample, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(StringSample sample, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(BooleanOperatorExpression booleanOperatorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(CompareExpression compareExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(FunctionLiteral functionLiteral, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(IfElseExpression ifElseExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(NamespaceReference namespaceReference, org.eclipse.xtext.formatting2.IFormattableDocument document)
      def dispatch void format(UnitMultiplication unitMultiplication, extension IFormattableDocument document) { unitMultiplication.regionFor.keyword(unitMultiAccess.asteriskKeyword_1_1).prepend[oneSpace].append[oneSpace] } def dispatch void format(UnitDivision unitDivision, extension IFormattableDocument document) { unitDivision.regionFor.keyword(unitDivAccess.solidusKeyword_1_1).prepend[oneSpace].append[oneSpace] }
      protected void _format​(NegativeExpression negativeExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(NotExpression notExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(Parenthesis parenthesis, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(PowerExpression powerExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(ProbabilityFunctionLiteral probabilityFunctionLiteral, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(ProductExpression productExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(TermExpression termExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      protected void _format​(Variable variable, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      void format​(Object functionLiteral, org.eclipse.xtext.formatting2.IFormattableDocument document)  
      • Methods inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2

        _format, _format, _format, _format, createCommentReplacer, createFormattableRootDocument, createFormattableSubDocument, createHiddenRegionFormatter, createHiddenRegionFormatter, createHiddenRegionFormatting, createHiddenRegionFormattingMerger, createHiddenRegionReplacer, createTextReplacerContext, createTextReplacerMerger, createWhitespaceReplacer, format, getPreference, getPreferences, getRequest, getTextRegionAccess, handleTraceMissing, initalize, initialize, isInRequestedRange, postProcess, reset, shouldFormat
    • Constructor Detail

      • StoexFormatter

        public StoexFormatter()
    • Method Detail

      • _format

        protected void _format​(IfElseExpression ifElseExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(BooleanOperatorExpression booleanOperatorExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(CompareExpression compareExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(NegativeExpression negativeExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(NotExpression notExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(PowerExpression powerExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(ProductExpression productExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(TermExpression termExpression,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(ProbabilityMassFunction<Sample<?>> probabilityMassFunction,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
        def dispatch void format(UnitPower unitPower, extension IFormattableDocument document) { unitPower.regionFor.keyword(unitPowAccess.circumflexAccentKeyword_1_1).prepend[oneSpace].append[oneSpace] unitPower.regionFor.keyword(unitPowAccess.leftParenthesisKeyword_0_1_0).append[oneSpace] unitPower.regionFor.keyword(unitPowAccess.rightParenthesisKeyword_0_1_2).prepend[oneSpace] }
      • _format

        protected void _format​(Sample<?> sample,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(IntSample sample,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(DoubleSample sample,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(StringSample sample,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(BoolSample sample,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(BoxedPDF boxedPDF,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(NamespaceReference namespaceReference,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
        def dispatch void format(UnitMultiplication unitMultiplication, extension IFormattableDocument document) { unitMultiplication.regionFor.keyword(unitMultiAccess.asteriskKeyword_1_1).prepend[oneSpace].append[oneSpace] } def dispatch void format(UnitDivision unitDivision, extension IFormattableDocument document) { unitDivision.regionFor.keyword(unitDivAccess.solidusKeyword_1_1).prepend[oneSpace].append[oneSpace] }
      • _format

        protected void _format​(Variable variable,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(FunctionLiteral functionLiteral,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(Parenthesis parenthesis,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • _format

        protected void _format​(ProbabilityFunctionLiteral probabilityFunctionLiteral,
                               @Extension
                               org.eclipse.xtext.formatting2.IFormattableDocument document)
      • format

        public void format​(Object functionLiteral,
                           org.eclipse.xtext.formatting2.IFormattableDocument document)
        Specified by:
        format in class org.eclipse.xtext.formatting2.AbstractFormatter2