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
Fields Modifier and Type Field Description protected Set<org.eclipse.emf.ecore.EObject>
errors
EObjects that are parsed with errorsprotected DelegateOptionProvider
optionProvider
The delegate option provider that is used to get preferencesprotected ServiceProvider
serviceProvider
The service provider for this formatter containing objects that are needed to perform proper formatting
-
Constructor Summary
Constructors Constructor Description BslFormatter2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.formatting2.ITextReplacer
createCommentReplacer(org.eclipse.xtext.formatting2.regionaccess.IComment comment)
org.eclipse.xtext.formatting2.IFormattableDocument
createFormattableRootDocument()
org.eclipse.xtext.formatting2.IHiddenRegionFormatting
createHiddenRegionFormatting()
org.eclipse.xtext.formatting2.ITextReplacer
createHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)
protected org.eclipse.xtext.formatting2.IAutowrapFormatter
createIndentOnAutowrapFormatter()
CreatesIAutowrapFormatter
Formatter that indents line that was wrappedorg.eclipse.xtext.formatting2.ITextReplacerContext
createTextReplacerContext(org.eclipse.xtext.formatting2.IFormattableDocument document)
org.eclipse.xtext.formatting2.ITextReplacer
createWhitespaceReplacer(org.eclipse.xtext.formatting2.regionaccess.ITextSegment hiddens, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)
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 forceWrapvoid
format(Object object, org.eclipse.xtext.formatting2.IFormattableDocument document)
protected void
formatAddHandlerStatement(AddHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsAddHandlerStatement
objectprotected void
formatBinaryExpression(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBinaryExpression
objectprotected void
formatBinaryExpressionSimply(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formats expression with simple indent on wrapprotected 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 offsetprotected void
formatBinaryPreprocessorExpression(BinaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBinaryPreprocessorExpression
objectprotected void
formatBooleanLiteral(BooleanLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBooleanLiteral
objectprotected void
formatBracketPreprocessorExpression(BracketPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBracketPreprocessorExpression
objectprotected void
formatBreakStatement(BreakStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBreakStatement
objectprotected void
formatConditional(Conditional conditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsConditional
objectprotected void
formatContinueStatement(ContinueStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsContinueStatement
objectprotected void
formatDateLiteral(DateLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDateLiteral
objectprotected void
formatDeclareStatement(DeclareStatement declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDeclareStatement
objectprotected void
formatDeclareStatementImpl(DeclareStatementImpl declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDeclareStatementImpl
objectprotected void
formatDynamicFeatureAccess(DynamicFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDynamicFeatureAccess
objectprotected void
formatEmptyStatement(EmptyStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsEmptyStatement
objectprotected void
formatExecuteStatement(ExecuteStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExecuteStatement
objectprotected void
formatExplicitVariable(ExplicitVariable explicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExplicitVariable
objectprotected void
formatExpression(Expression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExpression
objectprotected void
formatExtendedCollectionType(ExtendedCollectionType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExtendedCollectionType
objectprotected void
formatExtendedType(ExtendedType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExtendedType
objectprotected void
formatFeatureAccess(FeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFeatureAccess
objectprotected void
formatForEachStatement(ForEachStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForEachStatement
objectprotected void
formatFormalParam(FormalParam formalParam, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFormalParam
objectprotected void
formatForStatement(ForStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForStatement
objectprotected void
formatForToStatement(ForToStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForToStatement
objectprotected void
formatFunction(Function function, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting on function generally done informatMethod(Method, IFormattableDocument)
.protected void
formatFunctionStyleCreator(FunctionStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFunctionStyleCreator
objectprotected void
formatGotoStatement(GotoStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsGotoStatement
objectprotected void
formatIfPreprocessor(IfPreprocessor ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessor
objectprotected void
formatIfPreprocessorDeclareStatement(IfPreprocessorDeclareStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorDeclareStatement
objectprotected void
formatIfPreprocessorExpression(IfPreprocessorExpression ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorExpression
objectprotected void
formatIfPreprocessorStatement(IfPreprocessorStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorStatement
objectprotected void
formatIfStatement(IfStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfStatement
objectprotected void
formatImplicitVariable(ImplicitVariable implicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsImplicitVariable
objectprotected void
formatIndexAccess(IndexAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIndexAccess
objectprotected void
formatInvocation(Invocation expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsInvocation
objectprotected void
formatLabel(Label label, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLabel
objectprotected void
formatLabeledStatement(LabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLabeledStatement
objectprotected void
formatLiteral(Literal literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLiteral
objectprotected void
formatLoopStatement(LoopStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLoopStatement
objectprotected void
formatMethod(Method method, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsMethod
object.protected void
formatModule(Module module, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formats regions between Module components and calls format on themprotected void
formatNullLiteral(NullLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsNullLiteral
objectprotected void
formatNumberLiteral(NumberLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsNumberLiteral
objectprotected void
formatOperatorStyleCreator(OperatorStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsOperatorStyleCreator
objectprotected void
formatPragma(Pragma pragma, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPragma
objectprotected void
formatPreprocessor(Preprocessor preprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessor
objectprotected void
formatPreprocessorConditional(PreprocessorConditional preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorConditional
objectprotected void
formatPreprocessorConditionalImpl(PreprocessorConditionalImpl preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorConditionalImpl
objectprotected void
formatPreprocessorElseIfConditional(PreprocessorIfConditional preprocessorElseIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorIfConditional
object, but unlikeformatPreprocessorIfConditional(PreprocessorIfConditional, IFormattableDocument)
formats preprocessor keywordprotected void
formatPreprocessorExpression(PreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorExpression
objectprotected void
formatPreprocessorIfConditional(PreprocessorIfConditional preprocessorIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorIfConditional
objectprotected void
formatPreprocessorItem(PreprocessorItem preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItem
objectprotected void
formatPreprocessorItemAllTypeStatements(PreprocessorItemAllTypeStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemAllTypeStatements
objectprotected void
formatPreprocessorItemAllTypeStatementsImpl(PreprocessorItemAllTypeStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemAllTypeStatementsImpl
objectprotected void
formatPreprocessorItemDeclareStatement(PreprocessorItemDeclareStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemDeclareStatement
objectprotected void
formatPreprocessorItemDeclareStatementImpl(PreprocessorItemDeclareStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemDeclareStatementImpl
objectprotected void
formatPreprocessorItemExpression(PreprocessorItemExpression preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemExpression
objectprotected void
formatPreprocessorItemMethodStatement(PreprocessorItemMethodStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemMethodStatement
objectprotected void
formatPreprocessorItemMethodStatementImpl(PreprocessorItemMethodStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemMethodStatementImpl
objectprotected void
formatPreprocessorItemModule(PreprocessorItemModule preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemModule
objectprotected void
formatPreprocessorItemModuleImpl(PreprocessorItemModuleImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemModuleImpl
objectprotected void
formatPreprocessorItemStatements(PreprocessorItemStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemStatements
objectprotected void
formatPreprocessorItemStatementsImpl(PreprocessorItemStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemStatementsImpl
objectprotected void
formatPreprocessorLiteralExpression(PreprocessorLiteralExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorLiteralExpression
objectprotected void
formatProcedure(Procedure procedure, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting on procedure generally done informatMethod(Method, IFormattableDocument)
.protected void
formatPropertyType(PropertyType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPropertyType
objectprotected void
formatRaiseStatement(RaiseStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsRaiseStatement
objectprotected void
formatRegionPreprocessor(RegionPreprocessor regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting all objects of RegionPreprocessor instance.protected void
formatRegionPreprocessorDeclareStatement(RegionPreprocessorDeclareStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
.protected void
formatRegionPreprocessorExpression(RegionPreprocessorExpression regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
.protected void
formatRegionPreprocessorStatement(RegionPreprocessorStatement regionPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
Formatting of this object type is generally implemented informatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
.protected void
formatRemoveHandlerStatement(RemoveHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsRemoveHandlerStatement
objectprotected void
formatReturnStatement(ReturnStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsReturnStatement
objectprotected void
formatSimpleStatement(SimpleStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsSimpleStatement
objectprotected void
formatStatement(Statement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorStatementItemModuleImpl
objectprotected void
formatStaticFeatureAccess(StaticFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsStaticFeatureAccess
objectprotected void
formatStringLiteral(StringLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsStringLiteral
objectprotected void
formatTryExceptStatement(TryExceptStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsTryExceptStatement
objectprotected void
formatType(Type type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsType
objectprotected void
formatTypeImpl(TypeImpl type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsTypeImpl
objectprotected void
formatUnaryExpression(UnaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnaryExpression
objectprotected void
formatUnaryPreprocessorExpression(UnaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnaryPreprocessorExpression
objectprotected void
formatUndefinedLiteral(UndefinedLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUndefinedLiteral
objectprotected void
formatUnlabeledStatement(UnlabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnlabeledStatement
objectprotected void
formatVariable(Variable variable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsVariable
objectprotected void
formatWhileStatement(WhileStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsWhileStatement
objectprotected void
formatXtextResource(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsXtextResource
Probably just gets resourse'sModule
and calls format on it.protected Boolean
getBooleanPreference(String preferenceKey)
Get boolean preference from option provider with a given preferenceKeyprotected Integer
getIntegerPreference(String preferenceKey)
Get integer preference from option provider with a given preferenceKeyprotected String
getStringPreference(String preferenceKey)
Get string preference from option provider with a given preferenceKeyprotected void
initialize(org.eclipse.xtext.formatting2.FormatterRequest request)
protected void
reset()
-
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 Detail
-
serviceProvider
@Inject protected ServiceProvider serviceProvider
The service provider for this formatter containing objects that are needed to perform proper formatting
-
errors
protected final Set<org.eclipse.emf.ecore.EObject> errors
EObjects that are parsed with errors
-
optionProvider
@Inject protected DelegateOptionProvider optionProvider
The delegate option provider that is used to get preferences
-
-
Method Detail
-
format
public void format(Object object, org.eclipse.xtext.formatting2.IFormattableDocument document)
- Specified by:
format
in 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:
createWhitespaceReplacer
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createCommentReplacer
public org.eclipse.xtext.formatting2.ITextReplacer createCommentReplacer(org.eclipse.xtext.formatting2.regionaccess.IComment comment)
- Overrides:
createCommentReplacer
in 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:
createHiddenRegionReplacer
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createFormattableRootDocument
public org.eclipse.xtext.formatting2.IFormattableDocument createFormattableRootDocument()
- Overrides:
createFormattableRootDocument
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createHiddenRegionFormatting
public org.eclipse.xtext.formatting2.IHiddenRegionFormatting createHiddenRegionFormatting()
- Overrides:
createHiddenRegionFormatting
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
createTextReplacerContext
public org.eclipse.xtext.formatting2.ITextReplacerContext createTextReplacerContext(org.eclipse.xtext.formatting2.IFormattableDocument document)
- Overrides:
createTextReplacerContext
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
formatXtextResource
protected void formatXtextResource(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsXtextResource
Probably just gets resourse'sModule
and 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 benull
document
- 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 benull
document
- The document to accumulate text edits, cannot benull
-
formatMethod
protected void formatMethod(Method method, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsMethod
object.- Parameters:
method
- The object to format, cannot benull
document
- 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 benull
document
- The document to accumulate text edits, cannot benull
- See Also:
formatMethod(Method, IFormattableDocument)
-
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 benull
document
- The formattable document to add text replaces to, cannot benull
- See Also:
formatMethod(Method, IFormattableDocument)
-
formatPreprocessor
protected void formatPreprocessor(Preprocessor preprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessor
object- Parameters:
preprocessor
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItem
protected void formatPreprocessorItem(PreprocessorItem preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItem
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemExpression
protected void formatPreprocessorItemExpression(PreprocessorItemExpression preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemExpression
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemDeclareStatement
protected void formatPreprocessorItemDeclareStatement(PreprocessorItemDeclareStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemDeclareStatement
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemDeclareStatementImpl
protected void formatPreprocessorItemDeclareStatementImpl(PreprocessorItemDeclareStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemDeclareStatementImpl
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemStatements
protected void formatPreprocessorItemStatements(PreprocessorItemStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemStatements
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemMethodStatement
protected void formatPreprocessorItemMethodStatement(PreprocessorItemMethodStatement preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemMethodStatement
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemModule
protected void formatPreprocessorItemModule(PreprocessorItemModule preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemModule
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemAllTypeStatements
protected void formatPreprocessorItemAllTypeStatements(PreprocessorItemAllTypeStatements preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemAllTypeStatements
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemStatementsImpl
protected void formatPreprocessorItemStatementsImpl(PreprocessorItemStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemStatementsImpl
object- Parameters:
preprocessorItem
- The object to formatdocument
- The document to accumulate text edits
-
formatPreprocessorItemAllTypeStatementsImpl
protected void formatPreprocessorItemAllTypeStatementsImpl(PreprocessorItemAllTypeStatementsImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemAllTypeStatementsImpl
object- Parameters:
preprocessorItem
- The object to formatdocument
- The document to accumulate text edits
-
formatPreprocessorItemMethodStatementImpl
protected void formatPreprocessorItemMethodStatementImpl(PreprocessorItemMethodStatementImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemMethodStatementImpl
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorItemModuleImpl
protected void formatPreprocessorItemModuleImpl(PreprocessorItemModuleImpl preprocessorItem, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorItemModuleImpl
object- Parameters:
preprocessorItem
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorConditional
protected void formatPreprocessorConditional(PreprocessorConditional preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorConditional
object- Parameters:
preprocessorConditional
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorIfConditional
protected void formatPreprocessorIfConditional(PreprocessorIfConditional preprocessorIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorIfConditional
object- Parameters:
preprocessorIfConditional
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorElseIfConditional
protected void formatPreprocessorElseIfConditional(PreprocessorIfConditional preprocessorElseIfConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorIfConditional
object, but unlikeformatPreprocessorIfConditional(PreprocessorIfConditional, IFormattableDocument)
formats preprocessor keyword- Parameters:
preprocessorElseIfConditional
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorExpression
protected void formatPreprocessorExpression(PreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorExpression
object- Parameters:
preprocessorExpression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatBinaryPreprocessorExpression
protected void formatBinaryPreprocessorExpression(BinaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBinaryPreprocessorExpression
object- Parameters:
preprocessorExpression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatBracketPreprocessorExpression
protected void formatBracketPreprocessorExpression(BracketPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBracketPreprocessorExpression
object- Parameters:
preprocessorExpression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorLiteralExpression
protected void formatPreprocessorLiteralExpression(PreprocessorLiteralExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorLiteralExpression
object- Parameters:
preprocessorExpression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatUnaryPreprocessorExpression
protected void formatUnaryPreprocessorExpression(UnaryPreprocessorExpression preprocessorExpression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnaryPreprocessorExpression
object- Parameters:
preprocessorExpression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPreprocessorConditionalImpl
protected void formatPreprocessorConditionalImpl(PreprocessorConditionalImpl preprocessorConditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorConditionalImpl
object- Parameters:
preprocessorConditional
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatDeclareStatement
protected void formatDeclareStatement(DeclareStatement declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDeclareStatement
object- Parameters:
declareStatement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatStatement
protected void formatStatement(Statement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPreprocessorStatementItemModuleImpl
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatVariable
protected void formatVariable(Variable variable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsVariable
object- Parameters:
variable
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatExplicitVariable
protected void formatExplicitVariable(ExplicitVariable explicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExplicitVariable
object- Parameters:
explicitVariable
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatImplicitVariable
protected void formatImplicitVariable(ImplicitVariable implicitVariable, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsImplicitVariable
object- Parameters:
implicitVariable
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatFormalParam
protected void formatFormalParam(FormalParam formalParam, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFormalParam
object- Parameters:
formalParam
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatLabel
protected void formatLabel(Label label, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLabel
object- Parameters:
label
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatExpression
protected void formatExpression(Expression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExpression
object- Parameters:
expression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatBinaryExpression
protected void formatBinaryExpression(BinaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBinaryExpression
object- Parameters:
expression
- The object to format, cannot benull
document
- 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 benull
document
- The document to accumulate text edits, cannot benull
offset
- 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 benull
document
- The document to accumulate text edits, cannot benull
-
formatFeatureAccess
protected void formatFeatureAccess(FeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFeatureAccess
object- Parameters:
expression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatStaticFeatureAccess
protected void formatStaticFeatureAccess(StaticFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsStaticFeatureAccess
object- Parameters:
expression
- The object to formatdocument
- The document to accumulate text edits
-
formatDynamicFeatureAccess
protected void formatDynamicFeatureAccess(DynamicFeatureAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDynamicFeatureAccess
object- Parameters:
expression
- The object to formatdocument
- The document to accumulate text edits
-
formatFunctionStyleCreator
protected void formatFunctionStyleCreator(FunctionStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsFunctionStyleCreator
object- Parameters:
expression
- The object to formatdocument
- The document to accumulate text edits
-
formatIndexAccess
protected void formatIndexAccess(IndexAccess expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIndexAccess
object- Parameters:
expression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatInvocation
protected void formatInvocation(Invocation expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsInvocation
object- Parameters:
expression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatOperatorStyleCreator
protected void formatOperatorStyleCreator(OperatorStyleCreator expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsOperatorStyleCreator
object- Parameters:
expression
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatType
protected void formatType(Type type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsType
object- Parameters:
type
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatExtendedCollectionType
protected void formatExtendedCollectionType(ExtendedCollectionType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExtendedCollectionType
object- Parameters:
type
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPropertyType
protected void formatPropertyType(PropertyType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPropertyType
object- Parameters:
type
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatExtendedType
protected void formatExtendedType(ExtendedType type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExtendedType
object- Parameters:
type
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatTypeImpl
protected void formatTypeImpl(TypeImpl type, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsTypeImpl
object- Parameters:
type
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatUnaryExpression
protected void formatUnaryExpression(UnaryExpression expression, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnaryExpression
object- Parameters:
expression
- The object to format, cannot benull
document
- 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 benull
document
- 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 benull
document
- The formattable document to add text replaces to, cannot benull
- See Also:
formatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
-
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 benull
document
- The formattable document to add text replaces on, cannot benull
- See Also:
formatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
-
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 benull
document
- The formattable document to add text replaces on, cannot benull
- See Also:
formatRegionPreprocessor(RegionPreprocessor, IFormattableDocument)
-
formatIfPreprocessor
protected void formatIfPreprocessor(IfPreprocessor ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessor
object- Parameters:
ifPreprocessor
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorDeclareStatement
protected void formatIfPreprocessorDeclareStatement(IfPreprocessorDeclareStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorDeclareStatement
object- Parameters:
ifPreprocessor
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorExpression
protected void formatIfPreprocessorExpression(IfPreprocessorExpression ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorExpression
object- Parameters:
ifPreprocessor
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatIfPreprocessorStatement
protected void formatIfPreprocessorStatement(IfPreprocessorStatement ifPreprocessor, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfPreprocessorStatement
object- Parameters:
ifPreprocessor
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatDeclareStatementImpl
protected void formatDeclareStatementImpl(DeclareStatementImpl declareStatement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDeclareStatementImpl
object- Parameters:
declareStatement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatLabeledStatement
protected void formatLabeledStatement(LabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLabeledStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatUnlabeledStatement
protected void formatUnlabeledStatement(UnlabeledStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUnlabeledStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatLoopStatement
protected void formatLoopStatement(LoopStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLoopStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatForStatement
protected void formatForStatement(ForStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatForToStatement
protected void formatForToStatement(ForToStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForToStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatForEachStatement
protected void formatForEachStatement(ForEachStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsForEachStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatWhileStatement
protected void formatWhileStatement(WhileStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsWhileStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatSimpleStatement
protected void formatSimpleStatement(SimpleStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsSimpleStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatIfStatement
protected void formatIfStatement(IfStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsIfStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatConditional
protected void formatConditional(Conditional conditional, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsConditional
object- Parameters:
conditional
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatTryExceptStatement
protected void formatTryExceptStatement(TryExceptStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsTryExceptStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatGotoStatement
protected void formatGotoStatement(GotoStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsGotoStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatBreakStatement
protected void formatBreakStatement(BreakStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBreakStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatContinueStatement
protected void formatContinueStatement(ContinueStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsContinueStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatReturnStatement
protected void formatReturnStatement(ReturnStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsReturnStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatRaiseStatement
protected void formatRaiseStatement(RaiseStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsRaiseStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatExecuteStatement
protected void formatExecuteStatement(ExecuteStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsExecuteStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatAddHandlerStatement
protected void formatAddHandlerStatement(AddHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsAddHandlerStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatRemoveHandlerStatement
protected void formatRemoveHandlerStatement(RemoveHandlerStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsRemoveHandlerStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatEmptyStatement
protected void formatEmptyStatement(EmptyStatement statement, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsEmptyStatement
object- Parameters:
statement
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatLiteral
protected void formatLiteral(Literal literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatStringLiteral
protected void formatStringLiteral(StringLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsStringLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatNullLiteral
protected void formatNullLiteral(NullLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsNullLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatUndefinedLiteral
protected void formatUndefinedLiteral(UndefinedLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsUndefinedLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatBooleanLiteral
protected void formatBooleanLiteral(BooleanLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsBooleanLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatNumberLiteral
protected void formatNumberLiteral(NumberLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsNumberLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatDateLiteral
protected void formatDateLiteral(DateLiteral literal, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsDateLiteral
object- Parameters:
literal
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
formatPragma
protected void formatPragma(Pragma pragma, org.eclipse.xtext.formatting2.IFormattableDocument document)
FormatsPragma
object- Parameters:
pragma
- The object to format, cannot benull
document
- The document to accumulate text edits, cannot benull
-
createIndentOnAutowrapFormatter
protected org.eclipse.xtext.formatting2.IAutowrapFormatter createIndentOnAutowrapFormatter()
CreatesIAutowrapFormatter
Formatter 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
protected Boolean getBooleanPreference(String preferenceKey)
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
protected Integer getIntegerPreference(String preferenceKey)
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
protected String getStringPreference(String preferenceKey)
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:
initialize
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
reset
protected void reset()
- Overrides:
reset
in classorg.eclipse.xtext.formatting2.AbstractFormatter2
-
-