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 be
null
checkType
(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 be
null
- Specified by:
checkType
in 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:IExpressionTypeChecker
Check and compute expression type- Specified by:
checkType
in interfaceIExpressionTypeChecker
- Parameters:
expression
- checking expression, can't benull
needValidate
-true
if validation needed,false
otherwise- 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:IExpectedTypesComputer
Gets expected type for feature of expression- Specified by:
getExpectedType
in interfaceIExpectedTypesComputer
- Parameters:
expression
- expression, can't benull
feature
- feature of the expression, can benull
featureIndex
- index of feature- Returns:
- expected type for feature of expression, empty
TypeDescription
corresponding to anything type - See Also:
-