Package com._1c.g5.v8.dt.ql.typesystem
Interface ITypesComparator
-
- All Known Implementing Classes:
QlTypesComparator
public interface ITypesComparator
Comparator of type. Using inITypeSystem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
compare(TypeDescription expectedType, List<TypeDescription> allExpectedCastingType, TypeDescription getType)
This function compare expected and got type of expressionboolean
compare(TypeDescription expectedType, List<TypeDescription> allExpectedCastingType, TypeDescriptionSource getType)
This function compare expected and got type of expressionboolean
equalType(TypeDescription typeF, TypeDescription typeS)
Check types for equalboolean
isArbitraryType(TypeDescription type)
Checktype
for it is 'Arbitrary' type
-
-
-
Method Detail
-
compare
boolean compare(TypeDescription expectedType, List<TypeDescription> allExpectedCastingType, TypeDescription getType)
This function compare expected and got type of expression- Parameters:
expectedType
- expected type of expression in the point of calling this functionallExpectedCastingType
- all types forexprectedType
which it can be replacedgetType
- got type of expression in the point of calling this function- Returns:
true
, ifgetType
equals or can be casting toexprectedType
-
compare
boolean compare(TypeDescription expectedType, List<TypeDescription> allExpectedCastingType, TypeDescriptionSource getType)
This function compare expected and got type of expression- Parameters:
expectedType
- expected type of expression in the point of calling this functionallExpectedCastingType
- all types forexprectedType
which it can be replacedgetType
- got type of expression in the point of calling this function- Returns:
true
, ifgetType
equals or can be casting toexprectedType
-
isArbitraryType
boolean isArbitraryType(TypeDescription type)
Checktype
for it is 'Arbitrary' type- Parameters:
type
- checking type- Returns:
- true, if type is arbitrary i.e it equals for all type
-
equalType
boolean equalType(TypeDescription typeF, TypeDescription typeS)
Check types for equal- Parameters:
typeF
- - comparing typetypeS
- - comparing type- Returns:
true
, iftypeF
equaltypeS
-
-