Package com._1c.g5.v8.dt.ql
Class QlCheckerExpression
java.lang.Object
com._1c.g5.v8.dt.ql.QlCheckerExpression
- All Implemented Interfaces:
IExpectedTypesComputer,IExpressionTypeChecker
public class QlCheckerExpression
extends Object
implements IExpressionTypeChecker, IExpectedTypesComputer
class validate expression in ql language
- See Also:
-
ICheckerExpressionType
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.ql.typesystem.IExpressionTypeChecker
IExpressionTypeChecker.CheckResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckType(org.eclipse.emf.ecore.EObject expression) expression can't benullcheckType(org.eclipse.emf.ecore.EObject expression, boolean needValidate) Check and compute expression typegetExpectedType(org.eclipse.emf.ecore.EObject expression, org.eclipse.emf.ecore.EStructuralFeature feature, int featureIndex) Gets expected type for feature of expression
-
Constructor Details
-
QlCheckerExpression
public QlCheckerExpression()
-
-
Method Details
-
checkType
expression can't benull- Specified by:
checkTypein interfaceIExpressionTypeChecker- Parameters:
expression- checking expression, can't benull- Returns:
- result of checking, never
null - See Also:
-
checkType
public IExpressionTypeChecker.CheckResult checkType(org.eclipse.emf.ecore.EObject expression, boolean needValidate) Description copied from interface:IExpressionTypeCheckerCheck and compute expression type- Specified by:
checkTypein interfaceIExpressionTypeChecker- Parameters:
expression- checking expression, can't benullneedValidate-trueif validation needed,falseotherwise- Returns:
- result of checking, never
null - See Also:
-
getExpectedType
public TypeDescriptionSource getExpectedType(org.eclipse.emf.ecore.EObject expression, org.eclipse.emf.ecore.EStructuralFeature feature, int featureIndex) Description copied from interface:IExpectedTypesComputerGets expected type for feature of expression- Specified by:
getExpectedTypein interfaceIExpectedTypesComputer- Parameters:
expression- expression, can't benullfeature- feature of the expression, can benullfeatureIndex- index of feature- Returns:
- expected type for feature of expression, empty
TypeDescriptioncorresponding to anything type - See Also:
-