Class ProblemFormatter

java.lang.Object
org.eclipse.xtext.formatting2.AbstractFormatter2
org.eclipse.xtext.formatting2.AbstractJavaFormatter
tools.refinery.language.formatting2.ProblemFormatter
All Implemented Interfaces:
org.eclipse.xtext.formatting2.IFormatter2

public class ProblemFormatter extends org.eclipse.xtext.formatting2.AbstractJavaFormatter
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.xtext.formatting2.AbstractJavaFormatter

    org.eclipse.xtext.formatting2.AbstractJavaFormatter.EObjectErrorHandler
  • Field Summary

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

    textRegionExtensions
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    appendNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)
     
    void
    format(Object child, org.eclipse.xtext.formatting2.IFormattableDocument document)
     
    protected void
    format(AnnotationArgument annotationArgument, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(AnnotationContainer annotationContainer, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Annotation annotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Assertion assertion, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Atom atom, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(ClassDeclaration classDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Conjunction conjunction, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(EnumDeclaration enumDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Multiplicity multiplicity, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(NegationExpr literal, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(NodeDeclaration nodeDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Parameter parameter, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(PredicateDefinition predicateDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(Problem problem, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(ReferenceDeclaration referenceDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    format(TopLevelAnnotation topLevelAnnotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    formatList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, String separator, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    formatParenthesizedList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, org.eclipse.xtext.formatting2.IFormattableDocument doc)
     
    protected void
    prependNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)
     
    protected void
    singleNewLine(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)
     
    protected void
    surroundNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)
     
    protected void
    twoNewLines(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)
     

    Methods inherited from class org.eclipse.xtext.formatting2.AbstractJavaFormatter

    allRegionsFor, allSemanticRegions, autowrap, createPolymorhicDispatcher, formatUsingPolymorphicDispatcher, grammarElement, highPriority, immediatelyFollowing, immediatelyPreceding, indent, isMultiline, lowPriority, newLine, nextHiddenRegion, noAutowrap, noIndentation, noSpace, oneSpace, previousHiddenRegion, regionFor, regionForEObject, semanticRegions

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProblemFormatter

      public ProblemFormatter()
  • Method Details

    • format

      public void format(Object child, org.eclipse.xtext.formatting2.IFormattableDocument document)
      Overrides:
      format in class org.eclipse.xtext.formatting2.AbstractJavaFormatter
    • format

      protected void format(Problem problem, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Assertion assertion, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(ClassDeclaration classDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(ReferenceDeclaration referenceDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Multiplicity multiplicity, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(EnumDeclaration enumDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(PredicateDefinition predicateDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Parameter parameter, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Conjunction conjunction, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(NegationExpr literal, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Atom atom, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(NodeDeclaration nodeDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(TopLevelAnnotation topLevelAnnotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(Annotation annotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(AnnotationArgument annotationArgument, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • format

      protected void format(AnnotationContainer annotationContainer, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • formatParenthesizedList

      protected void formatParenthesizedList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • formatList

      protected void formatList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, String separator, org.eclipse.xtext.formatting2.IFormattableDocument doc)
    • singleNewLine

      protected void singleNewLine(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)
    • twoNewLines

      protected void twoNewLines(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)
    • surroundNewLines

      protected void surroundNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)
    • prependNewLines

      protected void prependNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)
    • appendNewLines

      protected void appendNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)