Difference between revisions of "Core.Terms.StringLiteral"
Jump to navigation
Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | StringLiteral | Literal of type String | Term | OTX Core library | Literal related terms | -...") |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Core]] | + | {{DISPLAYTITLE:OTX '''StringLiteral'''}}[[Category:Core]] |
== Classification == | == Classification == | ||
{{ClassificationActivity | StringLiteral | Literal of type String | [[Term]] | [[Core|OTX Core library]] | [[Literal related terms]] | - | - }} | {{ClassificationActivity | StringLiteral | Literal of type String | [[Term]] | [[Core|OTX Core library]] | [[Literal related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
Value = literal | Value = literal | ||
Line 14: | Line 14: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Literal | [[String]] | [[Literal]] | - | [1] | Identification of a string in C # notation.}} | + | {{TableRowPropertie1| Literal | [[Core.DataTypes.SimpleDataType.String|String]] | [[Literal]] | - | [1] | Identification of a string in C # notation.}} |
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | String str1 = "Text"; | |
− | + | String str2 = "Text with CrLf \n"; | |
+ | String str3 = "Support escape sequences \a , \b, \f, \n, \r, \t, \v \x \\ \" in the OTF"; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||
− | [[BooleanLiteral]] <br/> | + | [[Core.Terms.BooleanLiteral|BooleanLiteral]] <br/> |
− | [[IntegerLiteral]] <br/> | + | [[Core.Terms.IntegerLiteral|IntegerLiteral]] <br/> |
− | [[FloatLiteral]] <br/> | + | [[Core.Terms.FloatLiteral|FloatLiteral]] <br/> |
− | [[ByteFieldLiteral]] <br/> | + | [[Core.Terms.ByteFieldLiteral|ByteFieldLiteral]] <br/> |
− | [[ListLiteral]] <br/> | + | [[Core.Terms.ListLiteral|ListLiteral]] <br/> |
− | [[MapLiteral]] <br/> | + | [[Core.Terms.MapLiteral|MapLiteral]] <br/> |
− | [[UserExceptionLiteral]] | + | [[Core.Terms.UserExceptionLiteral|UserExceptionLiteral]] |
Latest revision as of 04:20, 7 May 2019
Classification
Name | StringLiteral |
Short Description | Literal of type String |
Class | Term |
Extension | OTX Core library |
Group | Literal related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Value = literal
Description
A StringLiteral is the code representation of a value of type String.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Literal | String | Literal | - | [1] | Identification of a string in C # notation. |
OTL Examples
String str1 = "Text";
String str2 = "Text with CrLf \n";
String str3 = "Support escape sequences \a , \b, \f, \n, \r, \t, \v \x \\ \" in the OTF";
See also
BooleanLiteral
IntegerLiteral
FloatLiteral
ByteFieldLiteral
ListLiteral
MapLiteral
UserExceptionLiteral