Package com.blackrook.rookscript
Class ScriptValue
java.lang.Object
com.blackrook.rookscript.ScriptValue
- All Implemented Interfaces:
Comparable<ScriptValue>
,Iterable<ScriptIteratorType.IteratorPair>
public class ScriptValue
extends Object
implements Comparable<ScriptValue>, Iterable<ScriptIteratorType.IteratorPair>
Script value encapsulation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The class used for a buffer of bytes.static class
The class used as an error type.static class
The class used for a list/set.static class
The class used for a map type.static enum
static class
Iterator Type for OBJECTREFs that return their own iterators.static class
Iterator Type for OBJECTREFs that return their own iterators. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
absolute
(ScriptValue operand, ScriptValue out) Absolute calculation.static void
add
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Add calculation.static void
and
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise And calculation.boolean
Gets this value as a boolean.byte
asByte()
Gets this value as a byte.char
asChar()
Gets this value as a char.double
asDouble()
Gets this value as a double-precision float.float
asFloat()
Gets this value as a float.int
asInt()
Gets this value as an integer.long
asLong()
Gets this value as a long integer.asObject()
Gets this value as an object.<T> T
asObjectType
(Class<T> targetType) Gets this value cast as a different object type.short
asShort()
Gets this value as a short.asString()
Gets this value as a string.int
static ScriptValue
create
(ScriptValue.Type type, Object value) Creates a script value.static ScriptValue
Creates a script value.static ScriptValue
createEmptyBuffer
(int size) Creates a script value that is an empty buffer.static ScriptValue
Creates a script value that is an empty list.static ScriptValue
Creates a script value that is an empty map.static ScriptValue
createError
(String type, String message) Creates an error value.static ScriptValue
createError
(String type, String message, String localizedMessage) Creates an error value.static ScriptValue
Creates an error value from a Throwable.<T> T
createForType
(Class<T> targetType) Gets this object coerced or converted to another class type.static void
divide
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Divide calculation.boolean
empty()
Gets if this value is considered "empty".static void
equal
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Equal calculation.boolean
equals
(ScriptValue value) boolean
Gets the type name of this value.static void
greater
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Greater-than calculation.static void
greaterOrEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Greater-than-or-equal calculation.int
hashCode()
boolean
boolean
isBuffer()
boolean
isError()
boolean
isFloat()
boolean
boolean
boolean
isList()
boolean
isMap()
boolean
isNaN()
boolean
isNull()
boolean
boolean
isObjectArrayType
(Class<?> targetType) Checks if this script value is both an array and a particular type.boolean
boolean
isObjectRef
(Class<?> targetType) boolean
isObjectType
(Class<?> targetType) Checks if this script value can be cast to the target type.boolean
isString()
iterator()
static void
leftShift
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Left shift calculation.int
length()
Gets the length of this value, if this is a map, list, or the underlying object is an array orCollection
type.static void
less
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Less-than calculation.static void
lessOrEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Less-than-or-equal calculation.boolean
Adds a value to this value, if it is a list.boolean
Adds a value to this value, only if it is a list.<T> boolean
Applies this list to another list by setting the contents on a (expected new, empty) target list.<T> boolean
listApply
(T target) Applies this list to an array.boolean
listContains
(Object value) Gets if this list contains an object, if it is a list.boolean
listExtract
(Collection<?> list) Sets the contents of this list to the provided collection.<T> boolean
listExtract
(T[] list) Sets the contents of this list to the provided collection.boolean
listGetByIndex
(int index, ScriptValue out) Gets a value at an index, if it is a list.int
listGetIndexOf
(Object value) Gets the index that a value is found at, if it is a list.int
listGetLastIndexOf
(Object value) Gets the last index that a value is found at, if it is a list.boolean
listRemove
(Object value) Removes a value from this value, if it is a list.boolean
listRemoveAt
(int index, ScriptValue out) Removes a value from this value at an index, if it is a list.boolean
listSetByIndex
(int index, Object value) Sets a value in this list.static void
logicalAnd
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical And calculation.static void
logicalNot
(ScriptValue operand, ScriptValue out) Logical not calculation.static void
logicalOr
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Or calculation.<T> boolean
mapApply
(T object) Applies this map to an object's fields/setters.boolean
mapContains
(String key) If this is a map, checks if it contains the provided key.boolean
mapExtract
(Map<?, ?> map) Extracts a map's key-value pairs and sets those values to this map.<T> boolean
mapExtract
(T object) Extracts an object's fields/getters and sets those values to this map.boolean
mapGet
(String key, ScriptValue out) If this is a map, gets the value that corresponds to a provided key.boolean
If this is a map, removes the value that corresponds to a provided key.boolean
If this is a map, sets a key on it to a value.static void
modulo
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Modulo calculation.static void
multiply
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Multiply calculation.static void
negate
(ScriptValue operand, ScriptValue out) Negate calculation.static void
not
(ScriptValue operand, ScriptValue out) Bitwise not calculation.static void
notEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Not Equal calculation.static void
or
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise Or calculation.static void
rightShift
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Right shift calculation.static void
rightShiftPadded
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Right shift padded calculation.void
set
(boolean value) Sets this value using another value.void
set
(byte value) Sets this value using another value.void
set
(char value) Sets this value using another value.void
set
(double value) Sets this value using another value.void
set
(float value) Sets this value using another value.void
set
(int value) Sets this value using another value.void
set
(long value) Sets this value using another value.void
set
(short value) Sets this value using another value.void
set
(ScriptValue value) Sets this value using another value.void
set
(ScriptValue.Type type, Object value) Sets this value using another object, and converts it if possible to the target underlying type.void
set
(CharSequence value) Sets this value using another value.void
Sets this value using another value.boolean
Adds a value to this value, if it is a list, treating the structure like a set of discrete items.boolean
setContains
(Object value) Gets if this list contains an object, if it is a list, treating the structure like a set of discrete items.void
setEmptyBuffer
(int size) Sets this value to a new buffer (new reference), native byte order.void
setEmptyBuffer
(int size, ByteOrder order) Sets this value to a new buffer (new reference).void
Sets this value to a new empty list (new reference).void
setEmptyList
(int capacity) Sets this value to a new empty list (new reference).void
setEmptyList
(int size, int capacity) Sets this value to a new empty list (new reference) initialized by nulls.void
Sets this value to a new empty map (new reference).void
setEmptyMap
(int capacity) Sets this value to a new empty map (new reference).void
Sets this value as an error.void
Sets this value as an error.void
Sets this value as an error.void
setNull()
Sets this value to the null value.boolean
Removes a value from this value, if it is a list, treating the structure like a set of discrete items.int
Gets a value's index, if it is a list, treating the structure like a set of discrete items.void
sort()
Sorts the contents of this list.static void
strictEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Strict Equal calculation.static void
strictNotEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Strict Not Equal calculation.static void
subtract
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Subtract calculation.toString()
static void
xor
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise XOr calculation.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
create
Creates a script value.- Parameters:
value
- the source value.- Returns:
- a new script value.
-
create
Creates a script value.- Parameters:
type
- the target script value type.value
- the source value.- Returns:
- a new script value.
-
createEmptyBuffer
Creates a script value that is an empty buffer.- Parameters:
size
- the size of the buffer in bytes.- Returns:
- a new script value.
-
createEmptyList
Creates a script value that is an empty list.- Returns:
- a new script value.
-
createEmptyMap
Creates a script value that is an empty map.- Returns:
- a new script value.
-
createError
Creates an error value from a Throwable. Copies the simple class name, the message, and the localized message.- Parameters:
t
- the Throwable to use.- Returns:
- a new script value.
- See Also:
-
createError
Creates an error value.- Parameters:
type
- the error type.message
- the error message (will be same as localized).- Returns:
- a new script value.
-
createError
Creates an error value.- Parameters:
type
- the error type.message
- the error message.localizedMessage
- a localized version of the error message.- Returns:
- a new script value.
-
setNull
public void setNull()Sets this value to the null value. -
setEmptyBuffer
public void setEmptyBuffer(int size) Sets this value to a new buffer (new reference), native byte order.- Parameters:
size
- the size of the new buffer in bytes.
-
setEmptyBuffer
Sets this value to a new buffer (new reference).- Parameters:
size
- the size of the new buffer in bytes.order
- the byte ordering.
-
setEmptyList
public void setEmptyList(int size, int capacity) Sets this value to a new empty list (new reference) initialized by nulls.- Parameters:
size
- the initial of the new empty list.capacity
- the inner capacity of the new empty list.
-
setEmptyList
public void setEmptyList(int capacity) Sets this value to a new empty list (new reference).- Parameters:
capacity
- the inner capacity of the new empty list.
-
setEmptyList
public void setEmptyList()Sets this value to a new empty list (new reference). -
setEmptyMap
public void setEmptyMap(int capacity) Sets this value to a new empty map (new reference).- Parameters:
capacity
- the inner capacity of the new empty map.
-
setEmptyMap
public void setEmptyMap()Sets this value to a new empty map (new reference). -
setError
Sets this value as an error.- Parameters:
type
- the error type.message
- the error message.
-
setError
Sets this value as an error.- Parameters:
type
- the error type.message
- the error message.localizedMessage
- a localized version of the error message.
-
setError
Sets this value as an error. If null, this is set to the null value.- Parameters:
value
- the source error to use.
-
set
Sets this value using another object, and converts it if possible to the target underlying type.- Parameters:
type
- the target script value type.value
- the source value to use.
-
set
Sets this value using another value. If null, this is set to the null value.- Parameters:
value
- the source value to use.
-
set
Sets this value using another value. If null, this is set to the null value.- Parameters:
value
- the source value to use.
-
set
public void set(boolean value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(byte value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(short value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(char value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(int value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(long value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(float value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
public void set(double value) Sets this value using another value.- Parameters:
value
- the source value to use.
-
set
Sets this value using another value.- Parameters:
value
- the source value to use.
-
length
public int length()Gets the length of this value, if this is a map, list, or the underlying object is an array orCollection
type.- Returns:
- the length in values, or 1 if not a collection of some kind.
-
empty
public boolean empty()Gets if this value is considered "empty".Null is empty.
If boolean, false is empty.
If integer, 0 is empty.
If float, 0.0 or NaN.
If string, trimmed and zero length.
If list or map, 0 keys or 0 items is empty.- Returns:
- true if so, false if not.
-
listExtract
Sets the contents of this list to the provided collection.- Parameters:
list
- the list to set.- Returns:
- true if set, false if not.
-
listExtract
public <T> boolean listExtract(T[] list) Sets the contents of this list to the provided collection.- Type Parameters:
T
- the array type.- Parameters:
list
- the list to set.- Returns:
- true if set, false if not.
-
listSetByIndex
Sets a value in this list. If the index is outside of the range of the list's indices, it is not added.- Parameters:
index
- the list index to set.value
- the value to add (converted to internal value).- Returns:
- true if set, false if not.
- See Also:
-
listAdd
Adds a value to this value, if it is a list.- Parameters:
value
- the value to add (converted to internal value).- Returns:
- true if added, false if not.
- See Also:
-
listAddAt
Adds a value to this value, only if it is a list.- Parameters:
index
- the index to add the value to.value
- the value to add (converted to internal value).- Returns:
- true if added, false if not.
- See Also:
-
listRemove
Removes a value from this value, if it is a list.- Parameters:
value
- the value to remove (converted to internal value).- Returns:
- true if removed, false if not.
- See Also:
-
listRemoveAt
Removes a value from this value at an index, if it is a list.- Parameters:
index
- the index to remove.out
- the output value - the value that was removed, or set to null if not a list nor a valid index.- Returns:
- true if this is a list and the index is valid and a value was removed, false otherwise.
- See Also:
-
listGetByIndex
Gets a value at an index, if it is a list. NOTE: This returns a reference, not a new instance!- Parameters:
index
- the list index to return.out
- the output value - the value at the index, or set to null if not a list nor a valid index.- Returns:
- the value at the index, or null if not a list nor a valid index.
- See Also:
-
listGetIndexOf
Gets the index that a value is found at, if it is a list.- Parameters:
value
- the value to look for.- Returns:
- the index found, or -1 if not found or not a list.
- See Also:
-
listGetLastIndexOf
Gets the last index that a value is found at, if it is a list.- Parameters:
value
- the value to look for.- Returns:
- the index found, or -1 if not found or not a list.
- See Also:
-
listContains
Gets if this list contains an object, if it is a list.- Parameters:
value
- the value to look for.- Returns:
- true if found, false if not or not a list.
- See Also:
-
listApply
public <T> boolean listApply(T target) Applies this list to an array.- Type Parameters:
T
- the array type.- Parameters:
target
- the target array.- Returns:
- true if this is a list and it has been applied, false if not.
- Since:
- 1.10.0
-
listApply
Applies this list to another list by setting the contents on a (expected new, empty) target list. Best of used on a list of contiguous elements.- Type Parameters:
T
- the array type.- Parameters:
targetType
- the underlying generic target type.target
- the target array.- Returns:
- true if this is a list and it has been applied, false if not.
- Since:
- 1.10.0
- See Also:
-
sort
public void sort()Sorts the contents of this list. Does nothing if this is not a list. -
setAdd
Adds a value to this value, if it is a list, treating the structure like a set of discrete items. This assumes that the list is sorted - if not, this will have undefined behavior.- Parameters:
value
- the value to add (converted to internal value).- Returns:
- true if added, false if not.
- See Also:
-
setRemove
Removes a value from this value, if it is a list, treating the structure like a set of discrete items. This assumes that the list is sorted - if not, this will have undefined behavior.- Parameters:
value
- the value to remove (converted to internal value).- Returns:
- true if removed, false if not.
- See Also:
-
setContains
Gets if this list contains an object, if it is a list, treating the structure like a set of discrete items. This assumes that the list is sorted - if not, this will have undefined behavior. This has better performance thanlistContains(Object)
, but only if this is a sorted set.- Parameters:
value
- the value to look for.- Returns:
- true if found, false if not or not a list.
- See Also:
-
setSearch
Gets a value's index, if it is a list, treating the structure like a set of discrete items. This assumes that the list is sorted - if not, this will have undefined behavior. This has better performance thanlistGetIndexOf(Object)
, but only if this is a sorted set.- Parameters:
value
- the value to look for.- Returns:
- true if found, false if not or not a list.
- See Also:
-
mapSet
If this is a map, sets a key on it to a value. Keys are case-insensitive.- Parameters:
key
- the key.value
- the associated value.- Returns:
- true if this is a map and the value was assigned, false otherwise.
- See Also:
-
mapGet
If this is a map, gets the value that corresponds to a provided key. Changing the returned value does not change the value, unless it is a reference type like a map or list. Keys are case-insensitive.- Parameters:
key
- the key.out
- the destination variable for the value.- Returns:
- true if a corresponding value was replaced, false if not or this is not a map. If false, out is set to the null value.
- See Also:
-
mapContains
If this is a map, checks if it contains the provided key. Keys are case-insensitive.- Parameters:
key
- the key.- Returns:
- true if the key is present, false if not.
- Since:
- 1.4.0
- See Also:
-
mapRemove
If this is a map, removes the value that corresponds to a provided key. Keys are case-insensitive.- Parameters:
key
- the key.- Returns:
- true if the value existed and was removed, false otherwise.
- See Also:
-
mapExtract
Extracts a map's key-value pairs and sets those values to this map. This can be expensive, depending on what needs converting.If you are passing an object to a script repeatedly, it may be better to just pass it as an object reference, if there are associated host functions that manipulate it.
- Parameters:
map
- the source map.- Returns:
- true if this is a map and extraction was successful.
-
mapExtract
public <T> boolean mapExtract(T object) Extracts an object's fields/getters and sets those values to this map. This can be expensive, depending on what needs converting.If you are passing an object to a script repeatedly, it may be better to just pass it as an object reference, if there are associated host functions that manipulate it.
- Type Parameters:
T
- the object type.- Parameters:
object
- the source object.- Returns:
- true if this is a map and extraction was successful.
-
mapApply
public <T> boolean mapApply(T object) Applies this map to an object's fields/setters. This can be expensive, depending on what needs converting.- Type Parameters:
T
- the object type.- Parameters:
object
- the source object.- Returns:
- true if this is a map and application was successful.
- Throws:
ClassCastException
- if any incoming type cannot be converted.
-
isNull
public boolean isNull()- Returns:
- true if this value is null.
-
isNaN
public boolean isNaN()- Returns:
- true if this value is strictly NaN.
-
isInfinite
public boolean isInfinite()- Returns:
- true if this value is positive or negative infinity.
-
isBoolean
public boolean isBoolean()- Returns:
- true if this value is a boolean type.
-
isInteger
public boolean isInteger()- Returns:
- true if this value is an integer type.
- Since:
- 1.3.1
-
isFloat
public boolean isFloat()- Returns:
- true if this value is a floating-point type.
- Since:
- 1.3.1
-
isNumeric
public boolean isNumeric()- Returns:
- true if this value is a numeric type (float or integer).
-
isString
public boolean isString()- Returns:
- true if this value is a string type.
-
isBuffer
public boolean isBuffer()- Returns:
- true if this value is a buffer type.
-
isList
public boolean isList()- Returns:
- true if this value is a list type.
-
isMap
public boolean isMap()- Returns:
- true if this value is a map type.
-
isError
public boolean isError()- Returns:
- true if this value is an error type.
-
isObjectRef
public boolean isObjectRef()- Returns:
- true if this value is an object reference type.
-
isObjectRef
- Parameters:
targetType
- the target type.- Returns:
- true if this value is an object reference type and it can be cast to the provided type.
-
isObjectType
Checks if this script value can be cast to the target type. If this is null (seeisNull()
), this returnsfalse
.- Parameters:
targetType
- the type to test.- Returns:
- if the underlying object can be cast to the target type.
-
isObjectArrayType
Checks if this script value is both an array and a particular type.- Parameters:
targetType
- the type to test.- Returns:
- if the underlying object can be cast to an array of the target type.
-
asBoolean
public boolean asBoolean()Gets this value as a boolean.- Returns:
- true if the value is nonzero and not NaN, false otherwise.
-
asByte
public byte asByte()Gets this value as a byte. Depending on the internal value, this may end up truncating data.(byte)asLong()
- Returns:
- the byte value of this value.
-
asShort
public short asShort()Gets this value as a short. Depending on the internal value, this may end up truncating data.(short)asLong()
- Returns:
- the byte value of this value.
-
asChar
public char asChar()Gets this value as a char. Depending on the internal value, this may end up truncating data.(short)asLong()
- Returns:
- the byte value of this value.
-
asInt
public int asInt()Gets this value as an integer. Depending on the internal value, this may end up truncating data.(int)asLong()
- Returns:
- the byte value of this value.
-
asFloat
public float asFloat()Gets this value as a float. Depending on the internal value, this may end up truncating data.isNaN() ? Float.NaN : (float)asDouble()
- Returns:
- the byte value of this value.
-
asLong
public long asLong()Gets this value as a long integer. If this is a boolean type, this returns-1L
. If this is a double type, this is cast to a long. If this is null (seeisNull()
), this returns0
.- Returns:
- the long value of this value.
-
asDouble
public double asDouble()Gets this value as a double-precision float. If this is a boolean type, this returns1.0
. If this is a long type, this is cast to a double. If this is null (seeisNull()
), this returns0.0
. If anything else, this returnsDouble.NaN
.- Returns:
- the double value of this value.
-
asString
Gets this value as a string. If this is null (seeisNull()
), this returns"null"
.- Returns:
- the string value of this value.
-
asObject
Gets this value as an object.- Returns:
- the object representation of this value.
-
asObjectType
Gets this value cast as a different object type. Does no conversion nor coersion.- Type Parameters:
T
- the returned type.- Parameters:
targetType
- the class type to cast to.- Returns:
- the object representation of this value.
-
getTypeName
Gets the type name of this value.- Returns:
- the type name.
-
createForType
Gets this object coerced or converted to another class type. Not to be confused withasObjectType(Class)
, which just recasts. If this is a map, this applies its fields to the new object's setter methods and fields.- Type Parameters:
T
- the returned type.- Parameters:
targetType
- the target class type to convert to.- Returns:
- a suitable object of type
targetType
, or null . - Throws:
ClassCastException
- if the incoming type cannot be converted.
-
iterator
- Specified by:
iterator
in interfaceIterable<ScriptIteratorType.IteratorPair>
-
hashCode
public int hashCode() -
equals
-
equals
- Parameters:
value
- the other value.- Returns:
- true if this value is STRICTLY EQUAL to another.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ScriptValue>
-
toString
-
toDebugString
- Returns:
- string representation of this value suitable for debugging.
-
not
Bitwise not calculation.- Parameters:
operand
- the input value.out
- the output value.
-
negate
Negate calculation.- Parameters:
operand
- the input value.out
- the output value.
-
absolute
Absolute calculation.- Parameters:
operand
- the input value.out
- the output value.
-
logicalNot
Logical not calculation.- Parameters:
operand
- the input value.out
- the output value.
-
add
Add calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
subtract
Subtract calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
multiply
Multiply calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
divide
Divide calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
modulo
Modulo calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
and
Bitwise And calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
or
Bitwise Or calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
xor
Bitwise XOr calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
logicalAnd
Logical And calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
logicalOr
Logical Or calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
leftShift
Left shift calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
rightShift
Right shift calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
rightShiftPadded
Right shift padded calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
less
Less-than calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
lessOrEqual
Less-than-or-equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
greater
Greater-than calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
greaterOrEqual
Greater-than-or-equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
equal
Logical Equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
notEqual
Logical Not Equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
strictEqual
Strict Equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-
strictNotEqual
Strict Not Equal calculation.- Parameters:
operand
- the source operand.operand2
- the second operand.out
- the output value.
-