Core.Terms.ListLiteral

From emotive
Jump to navigation Jump to search

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