Class RightQlFormatter
- 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.right.ql.formatting.RightQlFormatter
-
- All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter
,org.eclipse.xtext.formatting.IFormatterExtension
public class RightQlFormatter extends QlFormatter
This class contains custom formatting description. see : http://www.eclipse.org/Xtext/documentation.html#formatting on how and when to use it Also seeorg.eclipse.xtext.xtext.XtextFormattingTokenSerializer
as an example
-
-
Constructor Summary
Constructors Constructor Description RightQlFormatter()
-
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
formatPreprocessorRestriction(org.eclipse.xtext.formatting.impl.FormattingConfig c)
protected void
formatQlRestriction(org.eclipse.xtext.formatting.impl.FormattingConfig c)
-
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, formatOtherSelector, formatParameterExpression, formatPrimaryExpression, formatQuerySchema, formatQuerySchemaGroupingSets, formatQuerySchemaNestedQuery, formatQuerySchemaOrderExpression, formatQuerySchemaQuerySourceJoin, formatQuerySchemaSelectQuery, formatQuerySchemaSource, formatQuerySchemaTable, formatQuerySchemaTotalControlPoint, formatTopSelector, 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
-
formatQlRestriction
protected void formatQlRestriction(org.eclipse.xtext.formatting.impl.FormattingConfig c)
-
formatPreprocessorRestriction
protected void formatPreprocessorRestriction(org.eclipse.xtext.formatting.impl.FormattingConfig c)
-
-