Class QueryDcsTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.QueryTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.QueryDcsTypeComputer
-
- All Implemented Interfaces:
ContentTypeComputer
,TypeComputer
,TypeValidator
public class QueryDcsTypeComputer extends QueryTypeComputer
The computer of DCS query type by content of string literal.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.QueryTypeComputer
COMMENT_START_TAG, QUERY_START_STRING, QUERY_START_STRING_RU
-
-
Constructor Summary
Constructors Constructor Description QueryDcsTypeComputer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
computeIsValidForSupportedType(StringLiteral literal, List<String> content, Collection<LiteralType> contextTypes)
Computes that the specified literal is valid for supported type of this computer.String
getSupportedType()
Returns the supported type ID of this computer.int
order()
Order of call to compute string literal type.-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.QueryTypeComputer
isStartWithSelect, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeComputer
computeWithAnnotations, isSupport
-
-
-
-
Method Detail
-
order
public int order()
Description copied from interface:TypeComputer
Order of call to compute string literal type.- Specified by:
order
in interfaceTypeComputer
- Overrides:
order
in classQueryTypeComputer
- Returns:
- the order of call
-
getSupportedType
public String getSupportedType()
Description copied from interface:TypeComputer
Returns the supported type ID of this computer.- Specified by:
getSupportedType
in interfaceTypeComputer
- Specified by:
getSupportedType
in interfaceTypeValidator
- Overrides:
getSupportedType
in classQueryTypeComputer
- Returns:
- the supported type ID, registered in extension point.
-
computeIsValidForSupportedType
public boolean computeIsValidForSupportedType(StringLiteral literal, List<String> content, Collection<LiteralType> contextTypes)
Description copied from interface:ContentTypeComputer
Computes that the specified literal is valid for supported type of this computer. MethodTypeComputer.isSupport(StringLiteral, List)
must explicitly call before this computation. Type computer implementation may expect to use methodTypeComputer.isSupport(StringLiteral, List)
in addition before main computation of type.- Specified by:
computeIsValidForSupportedType
in interfaceContentTypeComputer
- Overrides:
computeIsValidForSupportedType
in classQueryTypeComputer
- Parameters:
literal
- the literal to check, cannot benull
.content
- the content of string literal, cannot benull
.contextTypes
- the context types that already computed, cannot benull
.- Returns:
- true, if the literal is valid for supported type.
-
-