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 Constructor Description QlCheckerExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExpressionTypeChecker.CheckResult
checkType(org.eclipse.emf.ecore.EObject expression)
expression can't be
null
IExpressionTypeChecker.CheckResult
checkType(org.eclipse.emf.ecore.EObject expression, boolean needValidate)
Check and compute expression typeTypeDescriptionSource
getExpectedType(org.eclipse.emf.ecore.EObject expression, org.eclipse.emf.ecore.EStructuralFeature feature, int featureIndex)
Gets expected type for feature of expression
-
-
-
Method Detail
-
checkType
public IExpressionTypeChecker.CheckResult checkType(org.eclipse.emf.ecore.EObject expression)
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:
ITypeSystem
-
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:
ITypeSystem
-
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:
ITypeSystem
-
-