Class LiteralType
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.LiteralType
-
public final class LiteralType extends Object
TheString Literal
content Type description that registered in extension point.
-
-
Constructor Summary
Constructors Constructor Description LiteralType(String name)
Instantiates a new literal type description.LiteralType(String name, boolean allowAnnotation, boolean computeWithAnnotation, String uniqueScope)
Instantiates a new literal type description.LiteralType(String name, String nameRu)
Instantiates a new literal type description.LiteralType(String name, String nameRu, boolean allowAnnotation, boolean computeWithAnnotation, String uniqueScope)
Instantiates a new literal type description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowAnnotation()
Allow to use this type in annotations for string literal.boolean
computeWithAnnotation()
Compute this type with other types specified in annotations.boolean
equals(Object obj)
String
getName()
Gets the name of type, witch is ID of type.String
getNameRu()
Gets name for Russian script variant.String
getUniqueScope()
Gets the unique scope.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LiteralType
public LiteralType(String name, String nameRu, boolean allowAnnotation, boolean computeWithAnnotation, String uniqueScope)
Instantiates a new literal type description.- Parameters:
name
- the name of type, witch is ID of type, cannot benull
.nameRu
- the name for Russian script variant, cannot benull
.allowAnnotation
- the allow to use this type in annotations for string literal.computeWithAnnotation
- the compute this type with other types specified in annotations.uniqueScope
- the unique scope
-
LiteralType
public LiteralType(String name, String nameRu)
Instantiates a new literal type description.- Parameters:
name
- the name of type, witch is ID of type, cannot benull
.nameRu
- the name for Russian script variant, cannot benull
.
-
LiteralType
public LiteralType(String name)
Instantiates a new literal type description.- Parameters:
name
- the name of type, witch is ID of type, cannot benull
.
-
LiteralType
public LiteralType(String name, boolean allowAnnotation, boolean computeWithAnnotation, String uniqueScope)
Instantiates a new literal type description.- Parameters:
name
- the name of type, witch is ID of type, cannot benull
.allowAnnotation
- the allow annotationcomputeWithAnnotation
- the compute with annotationuniqueScope
- the unique scope
-
-
Method Detail
-
getName
public String getName()
Gets the name of type, witch is ID of type.- Returns:
- the name
-
getNameRu
public String getNameRu()
Gets name for Russian script variant.- Returns:
- the Russian name
-
allowAnnotation
public boolean allowAnnotation()
Allow to use this type in annotations for string literal.- Returns:
- true, if allow to use in annotations
-
computeWithAnnotation
public boolean computeWithAnnotation()
Compute this type with other types specified in annotations.- Returns:
- true, if this type need to compute with other types specified in annotations.
-
getUniqueScope
public String getUniqueScope()
Gets the unique scope.- Returns:
- the unique scope
-
-