Interface ContextTypeComputer
-
- All Superinterfaces:
TypeComputer
- All Known Implementing Classes:
AbstractInvocationTypeComputer
,AccessRightTypeComputer
,AreaTypeComputer
,DcsParameterTypeComputer
,EmptyTypeComputer
,EventTypeComputer
,FormAttributeTypeComputer
,FormatTypeComputer
,FormNameTypeComputer
,FullNameTypeComputerDataLock
,FunctionalOptionTypeComputer
,NstrTypeComputer
,ObjectAttributeTypeComputer
,PredefinedTypeComputer
,QueryCtorTypeComputer
,QueryDcsCtorTypeComputer
,QueryDcsPropertyTextTypeComputer
,QueryPropertyTextTypeComputer
,QuerySchemaMethodTypeComputer
,SettingsKeyTypeComputer
,SortColumnsTypeComputer
,StructureKeyTypeComputer
,TemplateNameTypeComputer
,TypeFuncCtorTypeComputer
,TypesTypeComputer
,TypeTypeComputer
,UuidCtorTypeComputer
,XdtoFactoryPackageCollectionPackageTypeComputer
,XdtoFactoryPackageTypeComputer
,XdtoFactoryTypeTypeComputer
public interface ContextTypeComputer extends TypeComputer
The common interfaceContextTypeComputer
to implement computer of single type of string literal defining in the code context (invocation, constructor, etc.). 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, Environments envs)
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, Environments envs)
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
.envs
- the actual environments of the string literal, cannot benull
.- Returns:
- true, if the literal is valid for supported type.
-
-