Class QlDcsFormatter
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractFormatter
-
- org.eclipse.xtext.formatting.impl.BaseFormatter
-
- org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
- com._1c.g5.v8.dt.ql.formatting.QlFormatter
-
- com._1c.g5.v8.dt.ql.dcs.formatting.QlDcsFormatter
-
- All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter
,org.eclipse.xtext.formatting.IFormatterExtension
public class QlDcsFormatter extends QlFormatter
This class contains custom formatting description. see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting on how and when to use it Also seeorg.eclipse.xtext.xtext.XtextFormattingTokenSerializer
as an example
-
-
Constructor Summary
Constructors Constructor Description QlDcsFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commonFormatRule(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Common rule of formatting (for punctuation)protected void
configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Formating all part of queryorg.eclipse.xtext.parsetree.reconstr.ITokenStream
createFormatterStream(String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
org.eclipse.xtext.parsetree.reconstr.ITokenStream
createFormatterStream(org.eclipse.emf.ecore.EObject context, String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
protected org.eclipse.xtext.formatting.impl.FormattingConfig
createFormattingConfig()
protected void
formatOtherSelector(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting other operator selectorprotected void
formatQuerySchema(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting around anything queryprotected void
formatQuerySchemaSelectQuery(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting select queryprotected void
formatQuerySchemaSource(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting for source of queryprotected void
formatTopSelector(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting top operator selector-
Methods inherited from class com._1c.g5.v8.dt.ql.formatting.QlFormatter
createMatcher, formatAbstractQuerySchemaFields, formatAbstractQuerySchemaSource, formatACastingType, formatBetweenExpression, formatCaseBody, formatCaseOperationExpression, formatCastOperationExpression, formatComment, formatCommonUnaryNegOperatorExpression, formatDateLiteralExpression, formatFunctionExpression, formatInExpression, formatLikeExpression, formatLinkExpression, formatLogicalAND, formatLogicalComparison, formatLogicalMultiplicant, formatLogicalOrExpression, formatNestedTable, formatParameterExpression, formatPrimaryExpression, formatQuerySchemaGroupingSets, formatQuerySchemaNestedQuery, formatQuerySchemaOrderExpression, formatQuerySchemaQuerySourceJoin, formatQuerySchemaTable, formatQuerySchemaTotalControlPoint, formatTypeLiteralExpression, formatValueLiteralExpression
-
-
-
-
Method Detail
-
createFormatterStream
public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream(String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceorg.eclipse.xtext.formatting.IFormatter
- Overrides:
createFormatterStream
in classQlFormatter
-
createFormatterStream
public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceorg.eclipse.xtext.formatting.IFormatterExtension
- Overrides:
createFormatterStream
in classQlFormatter
-
createFormattingConfig
protected org.eclipse.xtext.formatting.impl.FormattingConfig createFormattingConfig()
- Overrides:
createFormattingConfig
in classQlFormatter
-
configureFormatting
protected void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Formating all part of query- Overrides:
configureFormatting
in classQlFormatter
- Parameters:
c
- configuration
-
commonFormatRule
protected void commonFormatRule(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Common rule of formatting (for punctuation)- Overrides:
commonFormatRule
in classQlFormatter
- Parameters:
c
- configuration
-
formatQuerySchema
protected void formatQuerySchema(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting around anything query- Overrides:
formatQuerySchema
in classQlFormatter
- Parameters:
c
- configuration
-
formatQuerySchemaSource
protected void formatQuerySchemaSource(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Rule formatting for source of query- Overrides:
formatQuerySchemaSource
in classQlFormatter
- Parameters:
c
- configuration
-
formatTopSelector
protected void formatTopSelector(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Description copied from class:QlFormatter
Rule formatting top operator selector- Overrides:
formatTopSelector
in classQlFormatter
- Parameters:
c
- configuration
-
formatOtherSelector
protected void formatOtherSelector(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Description copied from class:QlFormatter
Rule formatting other operator selector- Overrides:
formatOtherSelector
in classQlFormatter
- Parameters:
c
- configuration
-
formatQuerySchemaSelectQuery
protected void formatQuerySchemaSelectQuery(org.eclipse.xtext.formatting.impl.FormattingConfig c)
Description copied from class:QlFormatter
Rule formatting select query- Overrides:
formatQuerySchemaSelectQuery
in classQlFormatter
- Parameters:
c
- configuration
-
-