Difference between revisions of "Core.Terms.IntegerLiteral"

From emotive
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''IntegerLiteral'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | IntegerLiteral | Literal of type Integer | [[Term]] | [[Core|OTX Core library]] | [[Literal related terms]] | - | - }}
 
{{ClassificationActivity | IntegerLiteral | Literal of type Integer | [[Term]] | [[Core|OTX Core library]] | [[Literal related terms]] | - | - }}
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
A '''IntegerLiteral''' is the code representation of a value of type Integer.
+
A '''IntegerLiteral''' is the code representation of a value of type Integer. The integer literal is specified by the [https://docs.oracle.com/javase/specs/jls/se6/html/lexical.html#3.10.1 §3.10.1 of The Java™ Language Specification].
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Literal | [[Integer]] | [[Literal]] | - | [1] | Designation of a decimal number in c# notation.}}
+
{{TableRowPropertie1| Literal | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Literal]] | - | [1] | Designation of a decimal number in c# notation.}}
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
* 0
+
Integer Integer1 = 0;
* 20
+
Integer Integer2 = 20;
* -1234
+
Integer Integer3 = -1234;
* 7898797120
+
Integer Integer4 = 7898797120;
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[BooleanLiteral]] <br/>
+
[[Core.Terms.BooleanLiteral|BooleanLiteral]] <br/>
[[FloatLiteral]] <br/>
+
[[Core.Terms.FloatLiteral|FloatLiteral]] <br/>
[[StringLiteral]] <br/>
+
[[Core.Terms.StringLiteral|StringLiteral]] <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 10:06, 2 May 2019

Classification

Name IntegerLiteral
Short Description Literal of type Integer
Class Term
Extension OTX Core library
Group Literal related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Value = literal

Description

A IntegerLiteral is the code representation of a value of type Integer. The integer literal is specified by the §3.10.1 of The Java™ Language Specification.

Properties

Name Data Type Class Default Cardinality Description
Literal Integer Literal - [1] Designation of a decimal number in c# notation.

OTL Examples

Integer Integer1 = 0;
Integer Integer2 = 20;
Integer Integer3 = -1234;
Integer Integer4 = 7898797120;

See also

BooleanLiteral
FloatLiteral
StringLiteral
ByteFieldLiteral
ListLiteral
MapLiteral
UserExceptionLiteral