BinaryValue
Overview
The BinaryValue is used as a class to hold any operator that takes two operands, like Multiply or AND. For example the expression 1 + 5 would look like: new BinaryValue(new DataValue(1), new DataValue(5), BinaryOperator.Plus).
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus.Values
- Ancestry: Value | BinaryValue
constructor
Create a new instance of this class
constructor
BinaryValue()
init()
BinaryValue()
Sub New()
constructor (Value, Value, BinaryOperator)
Create a new instance of this class
constructor(aLeft: Value; aRight: Value; aOperator: BinaryOperator)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator)
init(_ aLeft: Value, _ aRight: Value, _ aOperator: BinaryOperator)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator)
Sub New(aLeft As Value, aRight As Value, aOperator As BinaryOperator)
Parameters:
- aLeft: Left operand
- aRight: Right operand
- aOperator: Operator
constructor (Value, Value, BinaryOperator, IType)
Create a new instance of this class; this overload allows passing a type parameter, to define the result type
constructor(aLeft: Value; aRight: Value; aOperator: BinaryOperator; aType: IType)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator, IType aType)
init(_ aLeft: Value, _ aRight: Value, _ aOperator: BinaryOperator, _ aType: IType)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator, IType aType)
Sub New(aLeft As Value, aRight As Value, aOperator As BinaryOperator, aType As IType)
Parameters:
- aLeft: Left operand
- aRight: Right operand
- aOperator: Operator
- aType: Optional result type
Binary (declared in Value)
Creates a binary value
method Binary(aOp: BinaryOperator; aOther: Value): Value
Value Binary(BinaryOperator aOp, Value aOther)
func Binary(_ aOp: BinaryOperator, _ aOther: Value) -> Value
Value Binary(BinaryOperator aOp, Value aOther)
Function Binary(aOp As BinaryOperator, aOther As Value) As Value
Parameters:
- aOp: Operator
- aOther: Right side value
creates an identifier value
Parameters:
- aName: Name of the value
creates an identifier value
Parameters:
- aName: Name of the value
- aArgs: Generic arguments.
Kind
Value kind; use this for a fast way of determining what kind of sub class a Value object is
property Kind: ValueKind read;
ValueKind Kind { get; }
var Kind: ValueKind { get{} }
ValueKind Kind { __get; }
ReadOnly Property Kind() As ValueKind
Left
Gets or sets the value on the left side of the expression
property Left: Value read write;
Value Left { get; set; }
var Left: Value { get{} set{} }
Value Left { __get; __set; }
Property Left() As Value
Length (declared in Value)
Creates a length value
method Length: Value
Value Length()
func Length() -> Value
Value Length()
Function Length() As Value
NotNil (declared in Value)
Creates a not nil value
method NotNil: Value
Value NotNil()
func NotNil() -> Value
Value NotNil()
Function NotNil() As Value
Operator
Gets or sets the operator
property Operator: BinaryOperator read write;
BinaryOperator Operator { get; set; }
var Operator: BinaryOperator { get{} set{} }
BinaryOperator Operator { __get; __set; }
Property Operator() As BinaryOperator
Position (declared in Value)
Position this value is defined at (if not set, it will be at the aspects position)
property Position: IPosition read write;
IPosition Position { get; set; }
var Position: IPosition { get{} set{} }
IPosition Position { __get; __set; }
Property Position() As IPosition
Creates a call value
Parameters:
- aName: Method name
- aGP: Generic parameters to pass
- aArgs: Arguments for this call
Creates a call value
Parameters:
- aName: Method name
- aArgs: Arguments for this call
Right
Gets or sets the value on the right side of the expression
property Right: Value read write;
Value Right { get; set; }
var Right: Value { get{} set{} }
Value Right { __get; __set; }
Property Right() As Value
SubArray (declared in Value)
Creates an array/property element access value
Parameters:
- aArgs: Arguments for element access
ToString
Returns the string value of this value
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Type
Gets or sets the type of this value
property Type: IType read write;
IType Type { get; set; }
var Type: IType { get{} set{} }
IType Type { __get; __set; }
Property Type() As IType
Unary (declared in Value)
Creates a unary value
method Unary(aOp: UnaryOperator): Value
Value Unary(UnaryOperator aOp)
func Unary(_ aOp: UnaryOperator) -> Value
Value Unary(UnaryOperator aOp)
Function Unary(aOp As UnaryOperator) As Value
Parameters:
- aOp: Operator
Kind
Value kind; use this for a fast way of determining what kind of sub class a Value object is
property Kind: ValueKind read;
ValueKind Kind { get; }
var Kind: ValueKind { get{} }
ValueKind Kind { __get; }
ReadOnly Property Kind() As ValueKind
Left
Gets or sets the value on the left side of the expression
property Left: Value read write;
Value Left { get; set; }
var Left: Value { get{} set{} }
Value Left { __get; __set; }
Property Left() As Value
Operator
Gets or sets the operator
property Operator: BinaryOperator read write;
BinaryOperator Operator { get; set; }
var Operator: BinaryOperator { get{} set{} }
BinaryOperator Operator { __get; __set; }
Property Operator() As BinaryOperator
Position (declared in Value)
Position this value is defined at (if not set, it will be at the aspects position)
property Position: IPosition read write;
IPosition Position { get; set; }
var Position: IPosition { get{} set{} }
IPosition Position { __get; __set; }
Property Position() As IPosition
Right
Gets or sets the value on the right side of the expression
property Right: Value read write;
Value Right { get; set; }
var Right: Value { get{} set{} }
Value Right { __get; __set; }
Property Right() As Value
Type
Gets or sets the type of this value
constructor
Create a new instance of this class
constructor
BinaryValue()
init()
BinaryValue()
Sub New()
constructor (Value, Value, BinaryOperator)
Create a new instance of this class
constructor(aLeft: Value; aRight: Value; aOperator: BinaryOperator)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator)
init(_ aLeft: Value, _ aRight: Value, _ aOperator: BinaryOperator)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator)
Sub New(aLeft As Value, aRight As Value, aOperator As BinaryOperator)
Parameters:
- aLeft: Left operand
- aRight: Right operand
- aOperator: Operator
constructor (Value, Value, BinaryOperator, IType)
Create a new instance of this class; this overload allows passing a type parameter, to define the result type
constructor(aLeft: Value; aRight: Value; aOperator: BinaryOperator; aType: IType)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator, IType aType)
init(_ aLeft: Value, _ aRight: Value, _ aOperator: BinaryOperator, _ aType: IType)
BinaryValue(Value aLeft, Value aRight, BinaryOperator aOperator, IType aType)
Sub New(aLeft As Value, aRight As Value, aOperator As BinaryOperator, aType As IType)
Parameters:
- aLeft: Left operand
- aRight: Right operand
- aOperator: Operator
- aType: Optional result type
Binary (declared in Value)
Creates a binary value
method Binary(aOp: BinaryOperator; aOther: Value): Value
Value Binary(BinaryOperator aOp, Value aOther)
func Binary(_ aOp: BinaryOperator, _ aOther: Value) -> Value
Value Binary(BinaryOperator aOp, Value aOther)
Function Binary(aOp As BinaryOperator, aOther As Value) As Value
Parameters:
- aOp: Operator
- aOther: Right side value
creates an identifier value
Parameters:
- aName: Name of the value
creates an identifier value
Parameters:
- aName: Name of the value
- aArgs: Generic arguments.
Length (declared in Value)
Creates a length value
method Length: Value
Value Length()
func Length() -> Value
Value Length()
Function Length() As Value
NotNil (declared in Value)
Creates a not nil value
method NotNil: Value
Value NotNil()
func NotNil() -> Value
Value NotNil()
Function NotNil() As Value
Creates a call value
Parameters:
- aName: Method name
- aGP: Generic parameters to pass
- aArgs: Arguments for this call
Creates a call value
Parameters:
- aName: Method name
- aArgs: Arguments for this call
SubArray (declared in Value)
Creates an array/property element access value
Parameters:
- aArgs: Arguments for element access
ToString
Returns the string value of this value
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Unary (declared in Value)
Creates a unary value
method Unary(aOp: UnaryOperator): Value
Value Unary(UnaryOperator aOp)
func Unary(_ aOp: UnaryOperator) -> Value
Value Unary(UnaryOperator aOp)
Function Unary(aOp As UnaryOperator) As Value
Parameters:
- aOp: Operator