Class AbstractVariantOperations
java.lang.Object
org.pipservices3.expressions.variants.AbstractVariantOperations
- All Implemented Interfaces:
IVariantOperations
- Direct Known Subclasses:
TypeSafeVariantOperations,TypeUnsafeVariantOperations
Implements an abstractd variant operations manager object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPerforms '+' operation for two variants.Performs AND operation for two variants.abstract Variantconvert(Variant value, VariantType newType) Converts variant to specified typePerforms '/' operation for two variants.Performs '=' operation for two variants.getElement(Variant value1, Variant value2) Performs [] operation for two variants.Performs IN operation for two variants.Performs '<' operation for two variants.Performs '<=' operation for two variants.Performs '<<' operation for two variants.Performs '%' operation for two variants.Performs '>' operation for two variants.Performs '>=' operation for two variants.Performs '*' operation for two variants.Performs unary '-' operation for a variant.Performs NOT operation for a variant.Performs '<>' operation for two variants.Performs OR operation for two variants.Performs '^' operation for two variants.Performs '>>' operation for two variants.Performs '-' operation for two variants.protected StringtypeToString(VariantType value) Convert variant type to string representationPerforms XOR operation for two variants.
-
Constructor Details
-
AbstractVariantOperations
public AbstractVariantOperations()
-
-
Method Details
-
typeToString
Convert variant type to string representation- Parameters:
value- a variant type to be converted.- Returns:
- a string representation of the type.
-
convert
Converts variant to specified type- Specified by:
convertin interfaceIVariantOperations- Parameters:
value- A variant value to be converted.newType- A type of object to be returned.- Returns:
- A converted Variant value.
-
add
Performs '+' operation for two variants.- Specified by:
addin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
sub
Performs '-' operation for two variants.- Specified by:
subin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
mul
Performs '*' operation for two variants.- Specified by:
mulin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
div
Performs '/' operation for two variants.- Specified by:
divin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
mod
Performs '%' operation for two variants.- Specified by:
modin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
pow
Performs '^' operation for two variants.- Specified by:
powin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
and
Performs AND operation for two variants.- Specified by:
andin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
or
Performs OR operation for two variants.- Specified by:
orin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
xor
Performs XOR operation for two variants.- Specified by:
xorin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
lsh
Performs '<<' operation for two variants.- Specified by:
lshin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
rsh
Performs '>>' operation for two variants.- Specified by:
rshin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
not
Performs NOT operation for a variant.- Specified by:
notin interfaceIVariantOperations- Parameters:
value- The operand for this operation.- Returns:
- A result variant object.
-
negative
Performs unary '-' operation for a variant.- Specified by:
negativein interfaceIVariantOperations- Parameters:
value- The operand for this operation.- Returns:
- A result variant object.
-
equal
Performs '=' operation for two variants.- Specified by:
equalin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
notEqual
Performs '<>' operation for two variants.- Specified by:
notEqualin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
more
Performs '>' operation for two variants.- Specified by:
morein interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
less
Performs '<' operation for two variants.- Specified by:
lessin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
moreEqual
Performs '>=' operation for two variants.- Specified by:
moreEqualin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
lessEqual
Performs '<=' operation for two variants.- Specified by:
lessEqualin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
in
Performs IN operation for two variants.- Specified by:
inin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
-
getElement
Performs [] operation for two variants.- Specified by:
getElementin interfaceIVariantOperations- Parameters:
value1- The first operand for this operation.value2- The second operand for this operation.- Returns:
- A result variant object.
- Throws:
Exception
-