Class UuidCtorTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.UuidCtorTypeComputer
-
- All Implemented Interfaces:
ContextTypeComputer
,TypeComputer
public class UuidCtorTypeComputer extends Object implements ContextTypeComputer
The computer of UUID type using in constructor of new UUID object.
-
-
Constructor Summary
Constructors Constructor Description UuidCtorTypeComputer()
-
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.String
getSupportedType()
Returns the supported type ID of this computer.boolean
isSupport(StringLiteral literal, List<String> content)
Quick checks if type computer is support the literal.int
order()
Order of call to compute string literal type.-
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
-
-
-
-
Method Detail
-
order
public int order()
Description copied from interface:TypeComputer
Order of call to compute string literal type.- Specified by:
order
in interfaceTypeComputer
- 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
- Returns:
- the supported type ID, registered in extension point.
-
isSupport
public boolean isSupport(StringLiteral literal, List<String> content)
Description copied from interface:TypeComputer
Quick checks if type computer is support the literal. This method explicitly calls before#computeIsValidForSupportedType(StringLiteral, List)
- Specified by:
isSupport
in interfaceTypeComputer
- Parameters:
literal
- the literalcontent
- the content- Returns:
- true, if the literal is support by computer
-
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
- 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.
-
-