CxLiteralInteger

Description

sealed class Tinman.Core.Cx.Expressions.CxLiteralInteger

Derived from

CxLiteral abstract

A literal that represents a decimal integer value:

-123l
-123L
    \__ optional type suffix
\______ optional minus for negative value

0xffffffffffffffffl
0xFFFFFFFFFFFFFFFFl
0xffffffffffffffffL
0xFFFFFFFFFFFFFFFFL
                  \__ optional type suffix
  \__________________ between 1 and 16 hexadecimal digits

Public / Constructors

Cx​Literal​Integer


public constructor CxLiteralInteger → (3)

value in : int64

See ValueInt and ValueLong.

hexadecimal opt : bool = false

See Hexadecimal.

suffix opt : bool = false

See Suffix.

Creates a new instance of CxLiteralInteger.

See also

CxTypeSimple.Int

Public / Attributes

Hexadecimal


public attribute Hexadecimal → (get,set)

value : bool

true if this literal is hexadecimal,
false if it is decimal.

Is this a hexadecimal integer literal using the 0x prefix?

Suffix


public attribute Suffix → (get,set)

value : bool

true if this literal has the suffix,
false if it does not have the suffix.

Does this literal have the L suffix, forcing it to CxTypeSimple.Long?

Value​Int


public attribute ValueInt → (get,set)

value : int32

The literal value, as a 32-bit signed integer.

The literal value.

See also

CxTypeSimple.Int

Value​Long


public attribute ValueLong → (get,set)

value : int64

The literal value, as a 64-bit signed integer.

The literal value.