LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Expressions.ExpressionValue Class Referencesealed

Value object to store the value of an Expression and its DataType. More...

Inheritance diagram for Luciad.Expressions.ExpressionValue:

Public Member Functions

 ExpressionValue (bool value)
 Constructs the value object for a boolean value.
 ExpressionValue (double value)
 Constructs the value object for a number value.
 ExpressionValue (float value)
 Constructs the value object for a number value.
 ExpressionValue (int value)
 Constructs the value object for an integer value.
 ExpressionValue (long value)
 Constructs the value object for a long integer (64 bit) value.
 ExpressionValue (Luciad.Expressions.ExpressionValue other)
 Constructs a copy of other.
 ExpressionValue (Luciad.Geometries.Geometry value)
 Constructs the value object for a Geometry value.
 ExpressionValue (string value)
 Constructs the value object for a text value.
double? AsDouble ()
 Returns the double value, if the value object can be converted to a double.
void Dispose ()
override bool Equals (object other)
override int GetHashCode ()

Static Public Member Functions

static Luciad.Expressions.ExpressionValue CreateNull ()
 Constructs the value object for a null value.

Properties

bool BoolValue [get]
 The boolean value, if the value object contains a boolean.
Luciad.Datamodels.DataType DataType [get]
 The type of the value stored within this value object.
double DoubleValue [get]
 The double value, if the value object contains a double.
float FloatValue [get]
 The float value, if the value object contains a float.
Luciad.Geometries.Geometry GeometryValue [get]
 The geometry value, if the value object contains a geometry.
int IntValue [get]
 The int value, if the value object contains an int.
bool IsNull [get]
 Whether this value is null.
long LongValue [get]
 The long integer value, if the value object contains a long int.
string StringValue [get]
 The string value, if the value object contains a string.

Detailed Description

Value object to store the value of an Expression and its DataType.

Users of this value object always must check the type of value stored and then call the appropriate method to retrieve the actual value.

Constructor & Destructor Documentation

◆ ExpressionValue() [1/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( float value)
inline

Constructs the value object for a number value.

The type of the value is DataType.getFloatType().

Parameters
valuethe number.

◆ ExpressionValue() [2/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( double value)
inline

Constructs the value object for a number value.

The type of the value is DataType.getDoubleType().

Parameters
valuethe number.

◆ ExpressionValue() [3/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( int value)
inline

Constructs the value object for an integer value.

The type of the value is DataType.getIntType().

Parameters
valuethe number.

◆ ExpressionValue() [4/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( long value)
inline

Constructs the value object for a long integer (64 bit) value.

The type of the value is DataType.getLongType().

Parameters
valuethe number.

◆ ExpressionValue() [5/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( bool value)
inline

Constructs the value object for a boolean value.

The type of the value is DataType.getBooleanType().

Parameters
valuethe boolean.

◆ ExpressionValue() [6/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( Luciad.Expressions.ExpressionValue other)
inline

Constructs a copy of other.

Parameters
otherInstance of the ExpressionValue.

◆ ExpressionValue() [7/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( string value)
inline

Constructs the value object for a text value.

The type of the value is DataType.getStringType().

Parameters
valuethe text.

◆ ExpressionValue() [8/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( Luciad.Geometries.Geometry value)
inline

Constructs the value object for a Geometry value.

The type of the value is DataType.getGeometryType().

Parameters
valueGeometry, cannot be null.

Member Function Documentation

◆ AsDouble()

double? Luciad.Expressions.ExpressionValue.AsDouble ( )
inline

Returns the double value, if the value object can be converted to a double.

Returns
the double value, if the value object can be converted to a double.

◆ CreateNull()

Luciad.Expressions.ExpressionValue Luciad.Expressions.ExpressionValue.CreateNull ( )
inlinestatic

Constructs the value object for a null value.

Since
2026.1

◆ Dispose()

void Luciad.Expressions.ExpressionValue.Dispose ( )
inline

◆ Equals()

override bool Luciad.Expressions.ExpressionValue.Equals ( object other)
inline

◆ GetHashCode()

override int Luciad.Expressions.ExpressionValue.GetHashCode ( )
inline

Property Documentation

◆ BoolValue

bool Luciad.Expressions.ExpressionValue.BoolValue
get

The boolean value, if the value object contains a boolean.

[get]

Returns the boolean value, if the value object contains a boolean.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a boolean.

◆ DataType

Luciad.Datamodels.DataType Luciad.Expressions.ExpressionValue.DataType
get

The type of the value stored within this value object.

[get]

Returns the type of the value stored within this value object.

◆ DoubleValue

double Luciad.Expressions.ExpressionValue.DoubleValue
get

The double value, if the value object contains a double.

[get]

Returns the double value, if the value object contains a double.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a double.

◆ FloatValue

float Luciad.Expressions.ExpressionValue.FloatValue
get

The float value, if the value object contains a float.

[get]

Returns the float value, if the value object contains a float.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a float.

◆ GeometryValue

Luciad.Geometries.Geometry Luciad.Expressions.ExpressionValue.GeometryValue
get

The geometry value, if the value object contains a geometry.

[get]

Returns the geometry value, if the value object contains a geometry.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a geometry.

◆ IntValue

int Luciad.Expressions.ExpressionValue.IntValue
get

The int value, if the value object contains an int.

[get]

Returns the int value, if the value object contains an int.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain an int.

◆ IsNull

bool Luciad.Expressions.ExpressionValue.IsNull
get

Whether this value is null.

[get]

Returns whether this value is null.

Since
2026.1 [get]

◆ LongValue

long Luciad.Expressions.ExpressionValue.LongValue
get

The long integer value, if the value object contains a long int.

[get]

Returns the long integer value, if the value object contains a long int.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a long int.

◆ StringValue

string Luciad.Expressions.ExpressionValue.StringValue
get

The string value, if the value object contains a string.

[get]

Returns the string value, if the value object contains a string.

Exceptions
System.InvalidOperationExceptionwhen the object does not contain a string.