Class TypeFuncCtorTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeFuncCtorTypeComputer
-
- All Implemented Interfaces:
ContextTypeComputer
,TypeComputer
public class TypeFuncCtorTypeComputer extends TypeTypeComputer implements ContextTypeComputer
The computer of 1C type name using in constructor of new object.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeTypeComputer
STATIC_INVOCATION
-
-
Constructor Summary
Constructors Constructor Description TypeFuncCtorTypeComputer()
-
Method Summary
All Methods Instance Methods Concrete 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.int
order()
Order of call to compute string literal type.-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeTypeComputer
getStaticInvocationParams, getSupportedType, isSupport
-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
getDynamicInvocationParams, getDynamicInvocationSourceTypes, isValidModule, isValidSourceType
-
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, getSupportedType, 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 classAbstractInvocationTypeComputer
- Returns:
- the order of call
-
computeIsValidForSupportedType
public boolean computeIsValidForSupportedType(StringLiteral literal, List<String> content, Environments envs)
Description copied from interface:ContextTypeComputer
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 interfaceContextTypeComputer
- Overrides:
computeIsValidForSupportedType
in classAbstractInvocationTypeComputer
- 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.
-
-