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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) protected void
protected void
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
(NegationExpr literal, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected void
format
(NodeDeclaration nodeDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected void
protected void
format
(PredicateDefinition predicateDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected void
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
preprendNewLines
(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, format, 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
-
Constructor Details
-
ProblemFormatter
public ProblemFormatter()
-
-
Method Details
-
format
-
format
-
format
protected void format(ClassDeclaration classDeclaration, 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
-
format
protected void format(Conjunction conjunction, org.eclipse.xtext.formatting2.IFormattableDocument doc) -
format
-
format
-
format
protected void format(NodeDeclaration nodeDeclaration, 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) -
preprendNewLines
protected void preprendNewLines(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)
-