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.CheckResultcheckType(org.eclipse.emf.ecore.EObject expression)expression can't benullIExpressionTypeChecker.CheckResultcheckType(org.eclipse.emf.ecore.EObject expression, boolean needValidate)Check and compute expression typeTypeDescriptionSourcegetExpectedType(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 benull- Specified by:
checkTypein 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: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:
ITypeSystem
-
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:
ITypeSystem
-
-