Interface ContentTypeComputer
-
- All Superinterfaces:
TypeComputer
- All Known Implementing Classes:
CyrillicTypeComputer
,FqnTypeComputer
,KeysTypeComputer
,KeyTypeComputer
,LatinTypeComputer
,MethodNameTypeComputer
,NonWordsTypeComputer
,QueryDcsTypeComputer
,QueryTypeComputer
,UuidTypeComputer
public interface ContentTypeComputer extends TypeComputer
The common interfaceContentTypeComputer
to implement computer of single type of string literal which parse it's content to define the type. Implementation should be registered in extension point.
-
-
Method Summary
All Methods Instance Methods Abstract 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.-
Methods inherited from interface com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeComputer
computeWithAnnotations, getSupportedType, isSupport, order
-
-
-
-
Method Detail
-
computeIsValidForSupportedType
boolean computeIsValidForSupportedType(StringLiteral literal, List<String> content, Collection<LiteralType> contextTypes)
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.- 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.
-
-