Package com.e1c.g5.v8.dt.formatter.bsl
Class BslFormatter2
java.lang.Object
org.eclipse.xtext.formatting2.AbstractFormatter2
com.e1c.g5.v8.dt.formatter.bsl.BslFormatter2
- All Implemented Interfaces:
org.eclipse.xtext.formatting2.IFormatter2
public class BslFormatter2
extends org.eclipse.xtext.formatting2.AbstractFormatter2
This class implements ProvidableFormatter with recursive formatting on given Object. It is implied that any model
object manages its explicit children as if they were solid and calls specific format methods on them depending on
their instance.
It is implied that for explicit instance of class A formatA() called after formatB() (if it exists), where B extends
EObject and is super type of A
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<org.eclipse.emf.ecore.EObject>EObjects that are parsed with errorsprotected DelegateOptionProviderThe delegate option provider that is used to get preferencesprotected ServiceProviderThe service provider for this formatter containing objects that are needed to perform proper formattingFields inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2
textRegionExtensions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.xtext.formatting2.ITextReplacercreateCommentReplacer(org.eclipse.xtext.formatting2.regionaccess.IComment comment) org.eclipse.xtext.formatting2.IFormattableDocumentorg.eclipse.xtext.formatting2.IHiddenRegionFormattingorg.eclipse.xtext.formatting2.ITextReplacercreateHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting) protected org.eclipse.xtext.formatting2.IAutowrapFormatterCreatesIAutowrapFormatterFormatter that indents line that was wrappedorg.eclipse.xtext.formatting2.ITextReplacerContextcreateTextReplacerContext(org.eclipse.xtext.formatting2.IFormattableDocument document) org.eclipse.xtext.formatting2.ITextReplacercreateWhitespaceReplacer(org.eclipse.xtext.formatting2.regionaccess.ITextSegment hiddens, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting) protected BslWhitespaceReplacercreateWhitespaceReplacer(org.eclipse.xtext.formatting2.regionaccess.ITextSegment hiddens, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting, boolean forceWrap) Creates WhitespaceReplacer that has to be able to perform forceWrapvoidprotected voidformatAddHandlerStatement(AddHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsAddHandlerStatementobjectprotected voidformatBinaryExpression(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBinaryExpressionobjectprotected voidformatBinaryExpressionSimply(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) Formats expression with simple indent on wrapprotected voidformatBinaryExpressionWithGroupWrapAndAligment(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document, int offset, int groupID, com.e1c.g5.v8.dt.formatter.bsl.BslFormatter2.binaryOperationPriority priority, com.e1c.g5.v8.dt.formatter.bsl.BslFormatter2.binaryOperationKind operationKind) Formats binary expression with group offsetprotected voidformatBinaryPreprocessorExpression(BinaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBinaryPreprocessorExpressionobjectprotected voidformatBooleanLiteral(BooleanLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBooleanLiteralobjectprotected voidformatBracketPreprocessorExpression(BracketPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBracketPreprocessorExpressionobjectprotected voidformatBreakStatement(BreakStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBreakStatementobjectprotected voidformatConditional(Conditional conditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsConditionalobjectprotected voidformatContinueStatement(ContinueStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsContinueStatementobjectprotected voidformatDateLiteral(DateLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDateLiteralobjectprotected voidformatDeclareStatement(DeclareStatement declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDeclareStatementobjectprotected voidformatDeclareStatementImpl(DeclareStatementImpl declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDeclareStatementImplobjectprotected voidformatDynamicFeatureAccess(DynamicFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDynamicFeatureAccessobjectprotected voidformatEmptyStatement(EmptyStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsEmptyStatementobjectprotected voidformatExecuteStatement(ExecuteStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExecuteStatementobjectprotected voidformatExplicitVariable(ExplicitVariable explicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExplicitVariableobjectprotected voidformatExpression(Expression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExpressionobjectprotected voidformatExtendedCollectionType(ExtendedCollectionType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExtendedCollectionTypeobjectprotected voidformatExtendedType(ExtendedType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExtendedTypeobjectprotected voidformatFeatureAccess(FeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFeatureAccessobjectprotected voidformatForEachStatement(ForEachStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForEachStatementobjectprotected voidformatFormalParam(FormalParam formalParam, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFormalParamobjectprotected voidformatForStatement(ForStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForStatementobjectprotected voidformatForToStatement(ForToStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForToStatementobjectprotected voidformatFunction(Function function, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting on function generally done informatMethod(Method, IFormattableDocument).protected voidformatFunctionStyleCreator(FunctionStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFunctionStyleCreatorobjectprotected voidformatGotoStatement(GotoStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsGotoStatementobjectprotected voidformatIfPreprocessor(IfPreprocessor ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorobjectprotected voidformatIfPreprocessorDeclareStatement(IfPreprocessorDeclareStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorDeclareStatementobjectprotected voidformatIfPreprocessorExpression(IfPreprocessorExpression ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorExpressionobjectprotected voidformatIfPreprocessorStatement(IfPreprocessorStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorStatementobjectprotected voidformatIfStatement(IfStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfStatementobjectprotected voidformatImplicitVariable(ImplicitVariable implicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsImplicitVariableobjectprotected voidformatIndexAccess(IndexAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIndexAccessobjectprotected voidformatInvocation(Invocation expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsInvocationobjectprotected voidformatLabel(Label label, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLabelobjectprotected voidformatLabeledStatement(LabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLabeledStatementobjectprotected voidformatLiteral(Literal literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLiteralobjectprotected voidformatLoopStatement(LoopStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLoopStatementobjectprotected voidformatMethod(Method method, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsMethodobject.protected voidformatModule(Module module, org.eclipse.xtext.formatting2.IFormattableDocument document) Formats regions between Module components and calls format on themprotected voidformatNullLiteral(NullLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsNullLiteralobjectprotected voidformatNumberLiteral(NumberLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsNumberLiteralobjectprotected voidformatOperatorStyleCreator(OperatorStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsOperatorStyleCreatorobjectprotected voidformatPragma(Pragma pragma, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPragmaobjectprotected voidformatPreprocessor(Preprocessor preprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorobjectprotected voidformatPreprocessorConditional(PreprocessorConditional preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorConditionalobjectprotected voidformatPreprocessorConditionalImpl(PreprocessorConditionalImpl preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorConditionalImplobjectprotected voidformatPreprocessorElseIfConditional(PreprocessorIfConditional preprocessorElseIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorIfConditionalobject, but unlikeformatPreprocessorIfConditional(PreprocessorIfConditional, IFormattableDocument)formats preprocessor keywordprotected voidformatPreprocessorExpression(PreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorExpressionobjectprotected voidformatPreprocessorIfConditional(PreprocessorIfConditional preprocessorIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorIfConditionalobjectprotected voidformatPreprocessorItem(PreprocessorItem preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemobjectprotected voidformatPreprocessorItemAllTypeStatements(PreprocessorItemAllTypeStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemAllTypeStatementsobjectprotected voidformatPreprocessorItemAllTypeStatementsImpl(PreprocessorItemAllTypeStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemAllTypeStatementsImplobjectprotected voidformatPreprocessorItemDeclareStatement(PreprocessorItemDeclareStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemDeclareStatementobjectprotected voidformatPreprocessorItemDeclareStatementImpl(PreprocessorItemDeclareStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemDeclareStatementImplobjectprotected voidformatPreprocessorItemExpression(PreprocessorItemExpression preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemExpressionobjectprotected voidformatPreprocessorItemMethodStatement(PreprocessorItemMethodStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemMethodStatementobjectprotected voidformatPreprocessorItemMethodStatementImpl(PreprocessorItemMethodStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemMethodStatementImplobjectprotected voidformatPreprocessorItemModule(PreprocessorItemModule preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemModuleobjectprotected voidformatPreprocessorItemModuleImpl(PreprocessorItemModuleImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemModuleImplobjectprotected voidformatPreprocessorItemStatements(PreprocessorItemStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemStatementsobjectprotected voidformatPreprocessorItemStatementsImpl(PreprocessorItemStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemStatementsImplobjectprotected voidformatPreprocessorLiteralExpression(PreprocessorLiteralExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorLiteralExpressionobjectprotected voidformatProcedure(Procedure procedure, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting on procedure generally done informatMethod(Method, IFormattableDocument).protected voidformatPropertyType(PropertyType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPropertyTypeobjectprotected voidformatRaiseStatement(RaiseStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsRaiseStatementobjectprotected voidformatRegionPreprocessor(RegionPreprocessor regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting all objects of RegionPreprocessor instance.protected voidformatRegionPreprocessorDeclareStatement(RegionPreprocessorDeclareStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument).protected voidformatRegionPreprocessorExpression(RegionPreprocessorExpression regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument).protected voidformatRegionPreprocessorStatement(RegionPreprocessorStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument).protected voidformatRemoveHandlerStatement(RemoveHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsRemoveHandlerStatementobjectprotected voidformatReturnStatement(ReturnStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsReturnStatementobjectprotected voidformatSimpleStatement(SimpleStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsSimpleStatementobjectprotected voidformatStatement(Statement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorStatementItemModuleImplobjectprotected voidformatStaticFeatureAccess(StaticFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsStaticFeatureAccessobjectprotected voidformatStringLiteral(StringLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsStringLiteralobjectprotected voidformatTryExceptStatement(TryExceptStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsTryExceptStatementobjectprotected voidformatType(Type type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsTypeobjectprotected voidformatTypeImpl(TypeImpl type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsTypeImplobjectprotected voidformatUnaryExpression(UnaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnaryExpressionobjectprotected voidformatUnaryPreprocessorExpression(UnaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnaryPreprocessorExpressionobjectprotected voidformatUndefinedLiteral(UndefinedLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUndefinedLiteralobjectprotected voidformatUnlabeledStatement(UnlabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnlabeledStatementobjectprotected voidformatVariable(Variable variable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsVariableobjectprotected voidformatWhileStatement(WhileStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsWhileStatementobjectprotected voidformatXtextResource(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsXtextResourceProbably just gets resourse'sModuleand calls format on it.protected BooleangetBooleanPreference(String preferenceKey) Get boolean preference from option provider with a given preferenceKeyprotected IntegergetIntegerPreference(String preferenceKey) Get integer preference from option provider with a given preferenceKeyprotected StringgetStringPreference(String preferenceKey) Get string preference from option provider with a given preferenceKeyprotected voidinitialize(org.eclipse.xtext.formatting2.FormatterRequest request) protected voidreset()Methods inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2
_format, _format, _format, _format, createFormattableSubDocument, createHiddenRegionFormatter, createHiddenRegionFormatter, createHiddenRegionFormattingMerger, createTextReplacerMerger, format, getPreference, getPreferences, getRequest, getTextRegionAccess, handleTraceMissing, initalize, isInRequestedRange, postProcess, shouldFormat
-
Field Details
-
serviceProvider
The service provider for this formatter containing objects that are needed to perform proper formatting -
errors
EObjects that are parsed with errors -
optionProvider
The delegate option provider that is used to get preferences
-
-
Constructor Details
-
BslFormatter2
public BslFormatter2()
-
-
Method Details
-
format
- Specified by:
formatin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createWhitespaceReplacer
public org.eclipse.xtext.formatting2.ITextReplacer createWhitespaceReplacer(org.eclipse.xtext.formatting2.regionaccess.ITextSegment hiddens, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting) - Overrides:
createWhitespaceReplacerin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createCommentReplacer
public org.eclipse.xtext.formatting2.ITextReplacer createCommentReplacer(org.eclipse.xtext.formatting2.regionaccess.IComment comment) - Overrides:
createCommentReplacerin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createHiddenRegionReplacer
public org.eclipse.xtext.formatting2.ITextReplacer createHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting) - Overrides:
createHiddenRegionReplacerin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createFormattableRootDocument
public org.eclipse.xtext.formatting2.IFormattableDocument createFormattableRootDocument()- Overrides:
createFormattableRootDocumentin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createHiddenRegionFormatting
public org.eclipse.xtext.formatting2.IHiddenRegionFormatting createHiddenRegionFormatting()- Overrides:
createHiddenRegionFormattingin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createTextReplacerContext
public org.eclipse.xtext.formatting2.ITextReplacerContext createTextReplacerContext(org.eclipse.xtext.formatting2.IFormattableDocument document) - Overrides:
createTextReplacerContextin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
formatXtextResource
protected void formatXtextResource(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsXtextResourceProbably just gets resourse'sModuleand calls format on it. It must run#findAllUnproducingAndErrors(EObject)to collect errors properly. Or do it by itself- Parameters:
resource- The resource to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatModule
protected void formatModule(Module module, org.eclipse.xtext.formatting2.IFormattableDocument document) Formats regions between Module components and calls format on them- Parameters:
module- The module to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatMethod
protected void formatMethod(Method method, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsMethodobject.- Parameters:
method- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatProcedure
protected void formatProcedure(Procedure procedure, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting on procedure generally done informatMethod(Method, IFormattableDocument). This is hook-up for some specific formatting.- Parameters:
procedure- The procedure to format, cannot benulldocument- The document to accumulate text edits, cannot benull- See Also:
-
formatFunction
protected void formatFunction(Function function, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting on function generally done informatMethod(Method, IFormattableDocument). This is hook-up for some specific formatting.- Parameters:
function- The function to format, cannot benulldocument- The formattable document to add text replaces to, cannot benull- See Also:
-
formatPreprocessor
protected void formatPreprocessor(Preprocessor preprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorobject- Parameters:
preprocessor- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItem
protected void formatPreprocessorItem(PreprocessorItem preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemExpression
protected void formatPreprocessorItemExpression(PreprocessorItemExpression preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemExpressionobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemDeclareStatement
protected void formatPreprocessorItemDeclareStatement(PreprocessorItemDeclareStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemDeclareStatementobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemDeclareStatementImpl
protected void formatPreprocessorItemDeclareStatementImpl(PreprocessorItemDeclareStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemDeclareStatementImplobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemStatements
protected void formatPreprocessorItemStatements(PreprocessorItemStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemStatementsobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemMethodStatement
protected void formatPreprocessorItemMethodStatement(PreprocessorItemMethodStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemMethodStatementobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemModule
protected void formatPreprocessorItemModule(PreprocessorItemModule preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemModuleobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemAllTypeStatements
protected void formatPreprocessorItemAllTypeStatements(PreprocessorItemAllTypeStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemAllTypeStatementsobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemStatementsImpl
protected void formatPreprocessorItemStatementsImpl(PreprocessorItemStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemStatementsImplobject- Parameters:
preprocessorItem- The object to formatdocument- The document to accumulate text edits
-
formatPreprocessorItemAllTypeStatementsImpl
protected void formatPreprocessorItemAllTypeStatementsImpl(PreprocessorItemAllTypeStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemAllTypeStatementsImplobject- Parameters:
preprocessorItem- The object to formatdocument- The document to accumulate text edits
-
formatPreprocessorItemMethodStatementImpl
protected void formatPreprocessorItemMethodStatementImpl(PreprocessorItemMethodStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemMethodStatementImplobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemModuleImpl
protected void formatPreprocessorItemModuleImpl(PreprocessorItemModuleImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorItemModuleImplobject- Parameters:
preprocessorItem- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorConditional
protected void formatPreprocessorConditional(PreprocessorConditional preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorConditionalobject- Parameters:
preprocessorConditional- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorIfConditional
protected void formatPreprocessorIfConditional(PreprocessorIfConditional preprocessorIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorIfConditionalobject- Parameters:
preprocessorIfConditional- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorElseIfConditional
protected void formatPreprocessorElseIfConditional(PreprocessorIfConditional preprocessorElseIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorIfConditionalobject, but unlikeformatPreprocessorIfConditional(PreprocessorIfConditional, IFormattableDocument)formats preprocessor keyword- Parameters:
preprocessorElseIfConditional- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorExpression
protected void formatPreprocessorExpression(PreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorExpressionobject- Parameters:
preprocessorExpression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBinaryPreprocessorExpression
protected void formatBinaryPreprocessorExpression(BinaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBinaryPreprocessorExpressionobject- Parameters:
preprocessorExpression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBracketPreprocessorExpression
protected void formatBracketPreprocessorExpression(BracketPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBracketPreprocessorExpressionobject- Parameters:
preprocessorExpression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorLiteralExpression
protected void formatPreprocessorLiteralExpression(PreprocessorLiteralExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorLiteralExpressionobject- Parameters:
preprocessorExpression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatUnaryPreprocessorExpression
protected void formatUnaryPreprocessorExpression(UnaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnaryPreprocessorExpressionobject- Parameters:
preprocessorExpression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPreprocessorConditionalImpl
protected void formatPreprocessorConditionalImpl(PreprocessorConditionalImpl preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorConditionalImplobject- Parameters:
preprocessorConditional- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatDeclareStatement
protected void formatDeclareStatement(DeclareStatement declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDeclareStatementobject- Parameters:
declareStatement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatStatement
protected void formatStatement(Statement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPreprocessorStatementItemModuleImplobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatVariable
protected void formatVariable(Variable variable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsVariableobject- Parameters:
variable- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatExplicitVariable
protected void formatExplicitVariable(ExplicitVariable explicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExplicitVariableobject- Parameters:
explicitVariable- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatImplicitVariable
protected void formatImplicitVariable(ImplicitVariable implicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsImplicitVariableobject- Parameters:
implicitVariable- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatFormalParam
protected void formatFormalParam(FormalParam formalParam, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFormalParamobject- Parameters:
formalParam- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatLabel
protected void formatLabel(Label label, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLabelobject- Parameters:
label- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatExpression
protected void formatExpression(Expression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExpressionobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBinaryExpression
protected void formatBinaryExpression(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBinaryExpressionobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBinaryExpressionWithGroupWrapAndAligment
protected void formatBinaryExpressionWithGroupWrapAndAligment(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document, int offset, int groupID, com.e1c.g5.v8.dt.formatter.bsl.BslFormatter2.binaryOperationPriority priority, com.e1c.g5.v8.dt.formatter.bsl.BslFormatter2.binaryOperationKind operationKind) Formats binary expression with group offset- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benulloffset- The offset for alignment wrapgroupID- The groupID for group wrappriority- The operation priorityoperationKind- The kind of operation. eg. arithmetic or logical operations
-
formatBinaryExpressionSimply
protected void formatBinaryExpressionSimply(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) Formats expression with simple indent on wrap- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatFeatureAccess
protected void formatFeatureAccess(FeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFeatureAccessobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatStaticFeatureAccess
protected void formatStaticFeatureAccess(StaticFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsStaticFeatureAccessobject- Parameters:
expression- The object to formatdocument- The document to accumulate text edits
-
formatDynamicFeatureAccess
protected void formatDynamicFeatureAccess(DynamicFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDynamicFeatureAccessobject- Parameters:
expression- The object to formatdocument- The document to accumulate text edits
-
formatFunctionStyleCreator
protected void formatFunctionStyleCreator(FunctionStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsFunctionStyleCreatorobject- Parameters:
expression- The object to formatdocument- The document to accumulate text edits
-
formatIndexAccess
protected void formatIndexAccess(IndexAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIndexAccessobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatInvocation
protected void formatInvocation(Invocation expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsInvocationobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatOperatorStyleCreator
protected void formatOperatorStyleCreator(OperatorStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsOperatorStyleCreatorobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatType
FormatsTypeobject- Parameters:
type- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatExtendedCollectionType
protected void formatExtendedCollectionType(ExtendedCollectionType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExtendedCollectionTypeobject- Parameters:
type- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPropertyType
protected void formatPropertyType(PropertyType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPropertyTypeobject- Parameters:
type- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatExtendedType
protected void formatExtendedType(ExtendedType type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExtendedTypeobject- Parameters:
type- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatTypeImpl
protected void formatTypeImpl(TypeImpl type, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsTypeImplobject- Parameters:
type- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatUnaryExpression
protected void formatUnaryExpression(UnaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnaryExpressionobject- Parameters:
expression- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatRegionPreprocessor
protected void formatRegionPreprocessor(RegionPreprocessor regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting all objects of RegionPreprocessor instance. For specific formatting delegates toformatRegionPreprocessorDeclareStatement(RegionPreprocessorDeclareStatement, IFormattableDocument)formatRegionPreprocessorExpression(RegionPreprocessorExpression, IFormattableDocument)formatRegionPreprocessorStatement(RegionPreprocessorStatement, IFormattableDocument).- Parameters:
regionPreprocessor- The preprocessor region to format, cannot benulldocument- The formattable document to add text replaces to, cannot benull
-
formatRegionPreprocessorExpression
protected void formatRegionPreprocessorExpression(RegionPreprocessorExpression regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument). This is hook-up for some specific formatting on this object.- Parameters:
regionPreprocessor- The preprocessor region to format, cannot benulldocument- The formattable document to add text replaces to, cannot benull- See Also:
-
formatRegionPreprocessorDeclareStatement
protected void formatRegionPreprocessorDeclareStatement(RegionPreprocessorDeclareStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument). This is hook-up for some specific formatting on this object.- Parameters:
regionPreprocessor- The preprocessor region to format, cannot benulldocument- The formattable document to add text replaces on, cannot benull- See Also:
-
formatRegionPreprocessorStatement
protected void formatRegionPreprocessorStatement(RegionPreprocessorStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument). This is hook-up for some specific formatting on this object.- Parameters:
regionPreprocessor- The preprocessor region to format, cannot benulldocument- The formattable document to add text replaces on, cannot benull- See Also:
-
formatIfPreprocessor
protected void formatIfPreprocessor(IfPreprocessor ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorobject- Parameters:
ifPreprocessor- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorDeclareStatement
protected void formatIfPreprocessorDeclareStatement(IfPreprocessorDeclareStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorDeclareStatementobject- Parameters:
ifPreprocessor- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorExpression
protected void formatIfPreprocessorExpression(IfPreprocessorExpression ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorExpressionobject- Parameters:
ifPreprocessor- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorStatement
protected void formatIfPreprocessorStatement(IfPreprocessorStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfPreprocessorStatementobject- Parameters:
ifPreprocessor- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatDeclareStatementImpl
protected void formatDeclareStatementImpl(DeclareStatementImpl declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDeclareStatementImplobject- Parameters:
declareStatement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatLabeledStatement
protected void formatLabeledStatement(LabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLabeledStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatUnlabeledStatement
protected void formatUnlabeledStatement(UnlabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUnlabeledStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatLoopStatement
protected void formatLoopStatement(LoopStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLoopStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatForStatement
protected void formatForStatement(ForStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatForToStatement
protected void formatForToStatement(ForToStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForToStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatForEachStatement
protected void formatForEachStatement(ForEachStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsForEachStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatWhileStatement
protected void formatWhileStatement(WhileStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsWhileStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatSimpleStatement
protected void formatSimpleStatement(SimpleStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsSimpleStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatIfStatement
protected void formatIfStatement(IfStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsIfStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatConditional
protected void formatConditional(Conditional conditional, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsConditionalobject- Parameters:
conditional- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatTryExceptStatement
protected void formatTryExceptStatement(TryExceptStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsTryExceptStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatGotoStatement
protected void formatGotoStatement(GotoStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsGotoStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBreakStatement
protected void formatBreakStatement(BreakStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBreakStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatContinueStatement
protected void formatContinueStatement(ContinueStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsContinueStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatReturnStatement
protected void formatReturnStatement(ReturnStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsReturnStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatRaiseStatement
protected void formatRaiseStatement(RaiseStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsRaiseStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatExecuteStatement
protected void formatExecuteStatement(ExecuteStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsExecuteStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatAddHandlerStatement
protected void formatAddHandlerStatement(AddHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsAddHandlerStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatRemoveHandlerStatement
protected void formatRemoveHandlerStatement(RemoveHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsRemoveHandlerStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatEmptyStatement
protected void formatEmptyStatement(EmptyStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsEmptyStatementobject- Parameters:
statement- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatLiteral
protected void formatLiteral(Literal literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatStringLiteral
protected void formatStringLiteral(StringLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsStringLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatNullLiteral
protected void formatNullLiteral(NullLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsNullLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatUndefinedLiteral
protected void formatUndefinedLiteral(UndefinedLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsUndefinedLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatBooleanLiteral
protected void formatBooleanLiteral(BooleanLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsBooleanLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatNumberLiteral
protected void formatNumberLiteral(NumberLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsNumberLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatDateLiteral
protected void formatDateLiteral(DateLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsDateLiteralobject- Parameters:
literal- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
formatPragma
protected void formatPragma(Pragma pragma, org.eclipse.xtext.formatting2.IFormattableDocument document) FormatsPragmaobject- Parameters:
pragma- The object to format, cannot benulldocument- The document to accumulate text edits, cannot benull
-
createIndentOnAutowrapFormatter
protected org.eclipse.xtext.formatting2.IAutowrapFormatter createIndentOnAutowrapFormatter()CreatesIAutowrapFormatterFormatter that indents line that was wrapped- Returns:
- new instance of
IAutowrapFormatter, cannot benull
-
createWhitespaceReplacer
protected BslWhitespaceReplacer createWhitespaceReplacer(org.eclipse.xtext.formatting2.regionaccess.ITextSegment hiddens, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting, boolean forceWrap) Creates WhitespaceReplacer that has to be able to perform forceWrap- Parameters:
hiddens- The hidden regions that replacer has to manageformatting- The formatting informationforceWrap- Whether force wrap shall be performed- Returns:
- The instance of BslWhitespaceReplacer
-
getBooleanPreference
Get boolean preference from option provider with a given preferenceKey- Parameters:
preferenceKey- The key of the preference, cannot benull- Returns:
- The value of the preference with the given key, can be
null
-
getIntegerPreference
Get integer preference from option provider with a given preferenceKey- Parameters:
preferenceKey- The key of the preference, cannot benull- Returns:
- The value of the preference with the given key, can be
null
-
getStringPreference
Get string preference from option provider with a given preferenceKey- Parameters:
preferenceKey- The key of the preference, cannot benull- Returns:
- The value of the preference with the given key, can be
null
-
initialize
protected void initialize(org.eclipse.xtext.formatting2.FormatterRequest request) - Overrides:
initializein classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
reset
protected void reset()- Overrides:
resetin classorg.eclipse.xtext.formatting2.AbstractFormatter2
-