Difference between revisions of "Core.Terms.ListLiteral"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
List<Integer> List1 = {0}; | List<Integer> List1 = {0}; | ||
List<Integer> List2 = {1, 2, -3}; | List<Integer> List2 = {1, 2, -3}; | ||
− | List<Boolean> List3 = { true , true , false }; | + | List<Boolean> List3 = {true , true , false}; |
− | List<String> List4 = { "text1" , "text2" , "text3" }; | + | List<String> List4 = {"text1" , "text2" , "text3"}; |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 06:54, 3 February 2015
Classification
Name | ListLiteral |
Short Description | Literal of type List |
Class | Term |
Extension | OTX Core library |
Group | Literal related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
Value = {LiteralTerm, LiteralTerm, ...}
Description
A ListLiteral is the code representation of a value of type List.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Literal | List | Literal | - | [1] | Identification of a list in C# notation |
Examples
List<Integer> List1 = {0};
List<Integer> List2 = {1, 2, -3};
List<Boolean> List3 = {true , true , false};
List<String> List4 = {"text1" , "text2" , "text3"};
See also
BooleanLiteral
IntegerLiteral
FloatLiteral
StringLiteral
ByteFieldLiteral
MapLiteral
UserExceptionLiteral