Package com._1c.g5.v8.dt.ql.validation
Class QlValidator
java.lang.Object
org.eclipse.xtext.validation.AbstractInjectableValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator
com._1c.g5.v8.dt.ql.validation.AbstractQlValidator
com._1c.g5.v8.dt.ql.validation.QlValidator
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator,org.eclipse.xtext.validation.ValidationMessageAcceptor
- Direct Known Subclasses:
AbstractQlDcsValidator,AbstractRightQlValidator
Custom validation rules.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccessNested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate -
Field Summary
Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIESFields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTEFields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor
INSIGNIFICANT_INDEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAlias(HashSet<String> seed, String alias, org.eclipse.emf.ecore.EObject expr, org.eclipse.emf.ecore.EStructuralFeature feature) voidvoidvoidcheckALotSemicolons(QuerySchema schema) voidcheckAmbiguousField(SinglePartCommonExpression expression) voidvoidcheckCompoundExpression(CompoundExpression expression) voidcheckDropQuery(QuerySchemaDropTableQuery dropQuery) voidcheckDuplicateAlias(QuerySchemaOperator operator) voidprotected voidcheckEachDbView(org.eclipse.emf.ecore.EObject object, QuerySchemaSelectQuery query) voidcheckEmptyTable(NestedTableExpression expression) voidvoidcheckExpressionWithStarByAlias(QuerySchemaExpression expression) voidcheckForDuplicates(QuerySchemaOperator operator) voidvoidcheckForEmptyTable(NestedTableAllFieldsExpression expression) voidcheckForUpdateTables(QuerySchemaOperator operator) voidvoidvoidvoidvoidcheckGroupingSets(QuerySchemaOperator operator) voidvoidvoidvoidvoidcheckIntoTableName(QuerySchemaOperator operator) voidcheckLogicalExpression(QuerySchemaExpression expression) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidcheckParameters(QuerySchema schema) voidcheckPeriodsTotalsControlPoint(QuerySchemaTotalControlPoint controlPoint) voidvoidvoidcheckSelectFieldsForTable(QuerySchemaOperator operator) voidvoidcheckStarExpression(StarExpression expression) voidvoidcheckTempTableQuery(QuerySchema queries) voidvoidvoidvoidvoidcheckUsingIntoInNestedQuery(QuerySchemaNestedQuery nestedQuery) voidcheckUsingOrderInNestedQuery(QuerySchemaNestedQuery nestedQuery) voidcheckUsingTotalsInNestedQuery(QuerySchemaNestedQuery nestedQuery) protected intprotected intprotected AbstractQuerySchemaSourcefindTableInSource(QuerySchemaSource source, String tableName, boolean checkForAlias) protected AbstractQuerySchemaSourcefindTableInSource(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName, boolean checkForAlias) protected StringfindTableInSourceWithAlias(QuerySchemaSource source, String tableName) protected StringfindTableInSourceWithAlias(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName) protected ArrayList<AbstractQuerySchemaSource>protected booleaninEmptyTable(org.eclipse.emf.ecore.EObject container) protected booleanprotected voidprocessingCheckResult(IExpressionTypeChecker.CheckResult checkResult) Methods inherited from class com._1c.g5.v8.dt.ql.validation.AbstractQlValidator
getEPackagesMethods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getCancelIndicator, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, handleExceptionDuringValidation, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning, warningMethods inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
getCurrentLanguage, isLanguageSpecific, isResponsible, register, validate, validate, validate
-
Constructor Details
-
QlValidator
public QlValidator()
-
-
Method Details
-
checkQSExpression
-
checkIntoLocated
-
checkIntoTableName
-
checkDropQuery
-
checkAddedTempTable
-
checkExistenceAliasInSource
-
checkResolveSourceTable
-
checkDuplicateAlias
-
checkDuplicateAlias
-
checkNestedTableInTotals
-
checkUnionOrderFieldsInSelectFields
-
checkNumberFieldsInUnions
-
checkUsingTotalsInNestedQuery
-
checkUsingOrderInNestedQuery
-
checkUsingIntoInNestedQuery
-
checkForUpdateTables
-
checkUsingHierarchyOrderWithTotals
-
checkUnionSimpleAndTableField
-
checkGroupByFieldForNotFix
-
checkNestedTableWithDistinct
-
checkGroupByForNestedQueryAndInExpression
-
checkGroupByForNestedTable
-
checkGroupByInQueryWithHaving
-
checkTempTableQuery
-
checkIndexFieldsInSelectFields
-
checkPeriodsTotalsControlPoint
-
checkExpressionWithStarByAlias
-
checkAllowedDbView
-
checkTableWithParametersForVirtual
-
checkSelectFieldsForTable
-
checkOrderByForConstNumber
-
checkNestedTableVirtualFieldsInTotalsPoint
-
checkNestedTableForFieldsFronAnotherNestedTable
-
checkIndexesWithInto
-
checkEmptyTable
-
checkForEmptyTable
-
checkForDuplicates
-
checkForDuplicates
-
checkSortingTheSameField
-
checkParameters
-
checkNumberLiteralExpression
-
checkAmbiguousField
-
checkLogicalExpression
-
checkLogicalExpressionInJoin
-
checkLogicalExpressionInCase
-
checkBinaryOperationForNullLiteral
-
checkUnaryOperationForNullLiteral
-
checkMultiPartCommonExpression
-
checkStarExpression
-
checkCompoundExpression
-
checkGroupingSets
-
checkIndexSets
-
checkALotSemicolons
-
checkAllowedKeywordInMainOperator
-
checkAlias
-
exprInAliasSelectFields
-
exprInAliasSelectFields
-
getAbstractSource
protected ArrayList<AbstractQuerySchemaSource> getAbstractSource(ArrayList<AbstractQuerySchemaSource> seed, QuerySchemaSource expr) -
findTableInSource
protected AbstractQuerySchemaSource findTableInSource(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName, boolean checkForAlias) -
findTableInSourceWithAlias
protected String findTableInSourceWithAlias(List<AbstractQuerySchemaQuerySourceJoin> joins, String tableName) -
findTableInSource
protected AbstractQuerySchemaSource findTableInSource(QuerySchemaSource source, String tableName, boolean checkForAlias) -
findTableInSourceWithAlias
-
checkEachDbView
-
isFindSourceInParentQuery
-
processingCheckResult
-
inEmptyTable
protected boolean inEmptyTable(org.eclipse.emf.ecore.EObject container)
-