Implements: IVariantOperations
Description
The AbstractVariantOperations class allows you to implement abstract variant operations manager objects.
Instance methods
add
Performs the ‘+’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
and
Performs the AND operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
convert
Converts variant to specified type.
@override
Variant convert(Variant value, VariantType newType)
- value: Variant - variant value to be converted.
- newType: VariantType - type of object to be returned.
- returns: Variant - converted Variant value.
div
Performs the ‘/’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
equal
Performs the ‘=’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
getElement
Performs the [] operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
in_
Performs the IN operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
less
Performs the ‘<’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
lessEqual
Performs the ‘<=’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
lsh
Performs the ‘«’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
mod
Performs the ‘%’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
more
Performs the ‘> Variant’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
moreEqual
Performs the ‘> Variant=’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
mul
Performs the ‘*’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
negative
Performs the unary ‘-’ operation for a variant.
@override
not
Performs the NOT operation for a variant.
@override
notEqual
Performs the ‘<> Variant’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
or
Performs the OR operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
pow
Performs the ‘^’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
rsh
Performs the ‘»’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
sub
Performs the ‘-’ operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.
typeToString
Converts variant type to string representation.
@override
String typeToString(VariantType value)
- value: VariantType - variant type to be converted.
- returns: String - string representation of the type.
xor
Performs the XOR operation for two variants.
@override
- value1: Variant - first operand for this operation.
- value2: Variant - second operand for this operation.
- returns: Variant - result variant object.