
public class final int from<Base>
int
int Methods
Compiler |
Global |
Instance |
Description |
- |
- |
int() |
Constructor for the 'int' class to initialize with an int value |
- |
- |
int() |
Constructor for the 'int' class to initialize with a string value |
| Returns a string representation of the integer value with formatting options | |||
| Returns a string with character representing the ASCII decimal value | |||
CompileIntFloat() |
IntFloat() |
Float() |
Returns a floating pointer representation of the integer value |
| Increments the integer value and returns the result | |||
| CompilerDec() | Dec() | Dec() | Decrements the integer value and returns the result |
| CompilerAdd() | Add() | Add() | Adds a value to the integer value and returns the result |
| CompilerSub() | Sub() | Sub() | Subtracts a value from the integer value and returns the result |
| CompilerMult() | Mult() | Mult() | Multiplies the integer value by a specified value and returns the result |
| CompilerDiv() | Div() | Div() | Divides the integer value by a specified value and returns the result |
| CompilerMod() | Mod() | Mod() | Divides the integer value by a specified value and returns the remainder |
CompilerPow() |
Raises the integer value to a specified power and returns the result | ||
| CompilerShiftLeft() | ShiftLeft() | ShiftLeft() | Shifts the integer value to the left by a specified number of bits and returns result |
| CompilerShiftRight() | ShiftRight() | ShiftRight() | Shifts the integer value to the right by a specified number of bits and returns result |
| CompilerAbs() | Abs() | Abs() | Takes the absolute vaue of the integer value and returns the result |
| CompilerBitOr() | BitOr() | BitOr() | Performs a Bitwise OR operation on the integer value and returns the result |
| CompilerBitAnd() | BitAnd() | BitAnd() | Performs a Bitwise AND operation on the integer value and returns the result |
| CompilerBitXOr() | BitXOr() | BitXOr() | Performs a Bitwise XOR operation on the integer value and returns the result |
| CompilerBitNot() | BitNot() | BitNot() | Performs a Bitwise NOT operation on the integer value and returns the result |
| CompilerBitOn() | BitOn() | BitOn() | Sets a specific bit ON in the 8 byte integer using one based index (1-64) and returns the result |
| CompilerBitOff() | BitOff() | BitOff() | Sets a specific bit OFF in the 8 byte integer using one based index (1-64) and returns the result |
| CompilerBitTest() | BitTest() | BitTest() | Returns true if a specific bit is turned ON using one based index (1-64) |
| CompilerValidInt1() | ValidInt1() | ValidInt1() | Returns true if integer value is in range of a valid one byte signed or unsigned integer |
| CompilerValidInt2() | ValidInt2() | ValidInt2() | Returns true if integer value is in range of a valid two byte signed or unsigned integer |
| CompilerValidInt4() | ValidInt4() | ValidInt4() | Returns true if integer value is in range of a valid four byte signed or unsigned integer |
| CompilerInt() | Int() | Int() | Returns integer extracted from the integer value using one based position and size (1, 2 or 4) |
| CompilerIntOvr() | IntOvr() | IntOvr() | Overlays integer on the integer value using one based position and size (1, 2 or 4) and returns it |
int Constants
| Constant Data Item | Data Type | Value |
| int.MaxValue | int | +9223372036854775807 |
| int.MinValue | int | -9223372036854775808 |
| int.Size | int | 8 |
| int.Size8 | int | 1 |
| Int.Size16 | int | 2 |
| int.Size32 | int | 4 |
| int.Size64 | int | 8 |
Derived Classes
NONE
See Also
Class Hierarchy, Primitive Framework, float, string, bool, Enumerations, MathException
public method int(int InitValue = 0)
Parameters
InitValue
Initial value for the integer object, with a default of zero.
Return Value
None
Description
This is one of the constructors for the 'int' class, invoked automatically by the VM during dynamic allocation of an int object or for initialization of local, global or shared data items, if a constructor was used in the data definition.
This particular constructor takes an integer as a parameter to initialize the object. A default of zero is used if the parameter is not provided.
int Class
public method int(string InitValue)
Parameters
InitValue
Initial value specified as a string.
Return Value
None
Description
This is one of the constructors for the 'int' class, invoked automatically by the VM during dynamic allocation of an int object and for initialization of local, global or shared data items, if a constructor was used in the data definition.
This particular constructor takes a string as a parameter for initialization. The string is converted to an integer and used to initialize the new integer object. The string to integer conversion follows the same rules as the 'string.Int()' method.
int Class
public method<string> Str(string Format = "I")
Parameters
Format
Format string to control size and value of the resulting string with a default of "I"
Return Value
Returns the string representation of the integer
Description
This instance method converts the internal integer value into a string based on the specified format string. The format string is a combination of a single letter and an optional number (e.g. "I" or "B10").
The letter is used to indicate how the integer is represented, and can be entered as lowercase or uppercase.
- 'I' or 'D' for "decimal" (base 10)
- 'B' for "binary" (base 2)
- 'O' for "octal" (base 8)
- 'H' or 'X' for "hexadecimal" (base 16).
The number specifies the length of the string. If no length is specified, the "natural length" is used based on the size of the integer value (e.g. an int value of "100" has a natural length of 3). If the length is specified and it exceeds the natural length, the return string will be padded with spaces at the end.
int Class
public method<string> IntStr(int Value,string Format = "I")
Parameters
Value
Integer value to be converted to a string
Format
Format string to control size and value of the resulting string with a default of "I"
Return Value
Returns the string representation of the integer
Description
This global method converts the specified integer value into a string based on the specified format string. The format string is a combination of a single letter and an optional number. Refer to the description of the 'int.Str()' method for a description of the the syntax rules for the format string.
Global Method
public method<string> compiler CompilerIntStr(int Value,string Format = "I")
Parameters
Value
Integer value to be converted to a string
Format
Format string to control size and value of the resulting string with a default of "I"
Return Value
Returns the string representation of the integer
Description
This compiler method converts the specified integer value into a string based on the specified format string. The format string is a combination of a single letter and an optional number. Refer to the description of the 'int.Str()' method for a description of the the syntax rules for the format string.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<string> Char()
Parameters
None
Return Value
Returns a string containing the ASCII character for the decimal value
Description
This instance method determines the ASCII character corresponding to the decimal integer value in the object (0-255). The string returned from the method contains only the ASCII character, so it will have a length of one.
int Class
public method<string> IntChar(int DecimalValue)
Parameters
DecimalValue
The ASCII decimal value for which the character is being requested
Return Value
Returns a string containing the ASCII character for the decimal value
Description
This global method determines the ASCII character corresponding to the specified decimal integer value (0-255). The string returned from the method contains only the ASCII character, so it will have a length of one.
Global Method
public method<string> compiler CompilerIntChar(int DecimalValue)
Parameters
DecimalValue
The ASCII decimal value for which the character is being requested
Return Value
Returns a string containing the ASCII character for the decimal value
Description
This compiler method determines the ASCII character corresponding to the specified decimal integer value (0-255). The string returned from the method contains only the ASCII character, so it will have a length of one.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<float> Float()
Parameters
None
Return Value
Returns the floating point representation of the integer
Description
This instance method converts the internal integer value into a floating point representation and returns it. For most integer values, it will be an exact conversion. However, for extremely large integer values (roughly > 10**16), there will be a slight loss of precision in the conversion, but it is only a tiny fraction of a percent difference.
int Class
public method<float> IntFloat(int Value)
Parameters
Value
Integer value to be converted to floating point
Return Value
Returns the floating point representation of the integer
Description
This global method converts the specified integer value into a floating point representation and returns it. For most integer values, it will be an exact conversion. However, for extremely large integer values (roughly > 10**16), there will be a slight loss of precision in the conversion, but it is only a tiny fraction of a percent difference.
Global Method
public method<float> compiler CompilerIntFloat(int Value)
Parameters
Value
Integer value to be converted to floating point
Return Value
Returns the floating point representation of the integer
Description
This compiler method converts the specified integer value into a floating point representation and returns it. For most integer values, it will be an exact conversion. However, for extremely large integer values (roughly > 10**16), there will be a slight loss of precision in the conversion, but it is only a tiny fraction of a percent difference.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Inc()
Parameters
None
Return Value
Returns the result of the increment operation
Description
This instance method increments the internal integer value and returns the result. This operation modifies the internal integer object. If the operation would cause an overflow, an OverflowException event is fired.
int Class
public method<int> Inc(int Value)
Parameters
Value
Integer value to be incremented
Return Value
Returns the result of the increment operation
Description
This global method increments the specified integer value and returns the result. This operation does not modify the source integer object. If the operation would cause an overflow, an OverflowException event is fired.
Global Method
public method<int> compiler CompilerInc(int ref Value)
Parameters
Value
Reference to integer object to receive the incremented value
Return Value
Returns the result of the increment operation
Description
This compiler method increments the integer value specified by the int reference and returns the result. This operation modifies the source integer object. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Dec()
Parameters
None
Return Value
Returns the result of the decrement operation
Description
This instance method decrements the internal integer value and returns the result. This operation modifies the internal integer object. If the operation would cause a negative overflow, an OverflowException event is fired.
int Class
public method<int> Dec(int Value)
Parameters
Value
Integer value to be incremented
Return Value
Returns the result of the decrement operation
Description
This global method decrements the specified integer value and returns the result. This operation does not modify the source integer object. If the operation would cause a negative overflow, an OverflowException event is fired.
Global Method
public method<int> compiler CompilerDec(int ref Value)
Parameters
Value
Reference to integer object to receive the decremented value
Return Value
Returns the result of the decrement operation
Description
This compiler method decrements the integer value specified by the int reference and returns the result. This operation modifies the source integer object. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Add(int Value)
Parameters
Value
Integer value to be added to the internal integer object
Return Value
Returns the result of the addition operation
Description
This instance method adds the specified value to the internal integer value and returns the result. This operation modifies the internal integer object. If the operation would cause an overflow, an OverflowException event is fired.
int Class
public method<int> Add(int Value1,int Value2)
Parameters
Value1
Integer value to be used in the addition
Value2
Integer value to be used in the addition
Return Value
Returns the result of the addition operation
Description
This global method adds the two incoming integer values and returns the result. This operation does not modify the source integer objects. If the operation would cause an overflow, an OverflowException event is fired.
This method emulates the '+' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerAdd(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to be used in addition
Value2
Integer value to be used in the addition
Return Value
Returns the result of the addition operation
Description
This compiler method adds the two incoming integer values and returns the result. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Sub(int Value)
Parameters
Value
Integer value to be subtracted from the internal integer object
Return Value
Returns the result of the subtraction operation
Description
This instance method subtracts the specified value from the internal integer value and returns the result. This operation modifies the internal integer object. If the operation would cause a negative overflow, an OverflowException event is fired.
int Class
public method<int> Sub(int Value1,int Value2)
Parameters
Value1
Integer value to be used in the subtraction
Value2
Integer value to be used in the subtraction
Return Value
Returns the result of the subtraction operation
Description
This global method subtracts Value2 from Value1 and returns the result. This operation does not modify the source integer objects. If the operation would cause a negative overflow, an OverflowException event is fired.
This method emulates the '-' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerSub(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to be used in the subtraction
Value2
Integer value to be used in the subtraction
Return Value
Returns the result of the subtraction operation
Description
This compiler method subtracts Value2 from the object referenced by Value1 and returns the result. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Mult(int Value)
Parameters
Value
Integer value to multiply the internal integer object by
Return Value
Returns the result of the multiplication operation
Description
This instance method multiplies the internal integer value by the specified value and returns the result. This operation modifies the internal integer object. If the operation would cause an overflow, an OverflowException event is fired.
int Class
public method<int> Mult(int Value1,int Value2)
Parameters
Value1
Integer value to be used in the multiplication
Value2
Integer value to be used in the multiplication
Return Value
Returns the result of the multiplication operation
Description
This global method multiplies the two incoming integer values and returns the result. This operation does not modify the source integer objects. If the operation would cause an overflow, an OverflowException event is fired.
This method emulates the '*' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerMult(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to be used in the multiplication
Value2
Integer value to be used in the multiplication
Return Value
Returns the result of the multiplication operation
Description
This compiler method multiplies the two incoming integer values and returns the result. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Div(int Value)
Parameters
Value
Integer value to divide the internal integer object by
Return Value
Returns the result of the division operation
Description
This instance method divides the internal integer value by the specified value and returns the result. This operation modifies the internal integer object. If the operation would cause a divide by zero, a DivByZeroException event is fired.
int Class
public method<int> Div(int Value1,int Value2)
Parameters
Value1
Integer value to be used in the division
Value2
Integer value to be used in the division
Return Value
Returns the result of the division operation
Description
This global method divides the first integer value by the second integer value and returns the result. This operation does not modify the source integer objects. If the operation would cause a divide by zero, a DivByZeroException event is fired.
This method emulates the '/' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerDiv(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to be used in the division
Value2
Integer value to be used in the division
Return Value
Returns the result of the division operation
Description
This compiler method divides the first integer value by the second integer value and returns the result. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Mod(int Value)
Parameters
Value
Integer value to divide the internal integer object by
Return Value
Returns the modulus (remainder) of the division operation
Description
This instance method divides the internal integer value by the specified value and returns the remainder as the result. This operation modifies the internal integer object. If the operation would cause a divide by zero, a DivByZeroException event is fired.
int Class
public method<int> Mod(int Value1,int Value2)
Parameters
Value1
Integer value to be used in the division
Value2
Integer value to be used in the division
Return Value
Returns the modulus (remainder) of the division operation
Description
This global method divides the first integer value by the second integer value and returns the remainder of the result. This operation does not modify the source integer objects. If the operation would cause a divide by zero, a DivByZeroException event is fired.
This method emulates the '%' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerMod(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to be used in the division
Value2
Integer value to be used in the division
Return Value
Returns the modulus (remainder) of the division operation
Description
This compiler method divides the first integer value by the second integer value and returns the remainder of the result. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Pow(int Value)
Parameters
Value
Integer value to use as exponent in power operation
Return Value
Returns the result of the exponentation operation
Description
This instance method raises the internal integer value to the power specified by Value and returns the result. This operation modifies the internal integer object. If the operation would cause an overflow, an OverflowException event is fired.
int Class
public method<int> Pow(int Value1,int Value2)
Parameters
Value1
Integer value to use as base in power operation
Value2
Integer value to use as exponent in power operation
Return Value
Returns the result of the exponentation operation
Description
This global method raises the first integer value to the power of the second integer. This operation does not modify the source integer objects. If the operation would cause an overflow, an OverflowException event is fired.
This method emulates the '**' operator, and is included mainly for consistency and completeness.
Global Method
public method<int> compiler CompilerPow(int ref Value1,int Value2)
Parameters
Value1
Reference to integer object to use as base in power operation
Value2
Integer value to use as exponent in power operation
Return Value
Returns the result of the exponentation operation
Description
This global method raises the first integer value to the power of the second integer. This operation also modifies the integer object referenced by Value1 with the new value. If the operation would cause an overflow, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> ShiftLeft(int Value)
Parameters
Value
Integer value to specify number of bits to shift
Return Value
Returns the result of the shift left operation
Description
This instance method performs a bit-wise shift left operation and returns the result. The incoming value specifies the number of bits to shift to the left. Bits vacated by the operation are filled with zero. This operation modifies the internal integer object. If Value is negative or greater than 64, a BadArgException event is fired.
int Class
public method<int> ShiftLeft(int Value1,int Value2)
Parameters
Value1
Source integer for shift operation
Value2
Number of bits to shift to the left
Return Value
Returns the result of the shift left operation
Description
This global method performs a bit-wise shift left operation using the two incoming integer values and returns the result. Bits vacated by the operation are filled with zero. This operation does not modify the incoming integer objects. If Value2 is negative or greater than 64, a BadArgException event is fired.
Global Method
public method<int> compiler CompilerShiftLeft(int Value1,int Value2)
Parameters
Value1
Source integer for shift operation
Value2
Number of bits to shift to the left
Return Value
Returns the result of the shift left operation
Description
This compiler method performs a bit-wise shift left operation using the two incoming integer values and returns the result. Bits vacated by the operation are filled with zero. This operation does not modify the incoming integer objects. If Value2 is negative or greater than 64, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> ShiftRight(int Value)
Parameters
Value
Integer value to specify number of bits to shift
Return Value
Returns the result of the shift right operation
Description
This instance method performs a bit-wise shift right operation and returns the result. The incoming value specifies the number of bits to shift to the right. Bits vacated by the operation are filled with zero. This operation modifies the internal integer object. If Value is negative or greater than 64, a BadArgException event is fired.
int Class
public method<int> ShiftRight(int Value1,int Value2)
Parameters
Value1
Source integer for shift operation
Value2
Number of bits to shift to the right
Return Value
Returns the result of the shift right operation
Description
This global method performs a bit-wise shift right operation using the two incoming integer values and returns the result. Bits vacated by the operation are filled with zero. This operation does not modify the incoming integer objects. If Value2 is negative or greater than 64, a BadArgException event is fired.
Global Method
public method<int> compiler CompilerShiftRight(int Value1,int Value2)
Parameters
Value1
Source integer for shift operation
Value2
Number of bits to shift to the right
Return Value
Returns the result of the shift right operation
Description
This compiler method performs a bit-wise shift right operation using the two incoming integer values and returns the result. Bits vacated by the operation are filled with zero. This operation does not modify the incoming integer objects. If Value2 is negative or greater than 64, the operation is not performed.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> Abs()
Parameters
None
Return Value
Returns the absolute value of the integer object
Description
This instance method takes the absolute value of the internal integer value and returns the result. This operation modifies the internal integer object.
int Class
public method<int> Abs(int Value)
Parameters
Value
Source integer for absolute value operation
Return Value
Returns the absolute value of the integer object
Description
This global method takes the absolute value of the specified integer value and returns the result. This operation does not modify the source integer object.
Global Method
public method<int> compiler CompilerAbs(int Value)
Parameters
Value
Source integer for absolute value operation
Return Value
Returns the absolute value of the integer object
Description
This compiler method takes the absolute value of the specified integer value and returns the result. This operation does not modify the source integer object.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> BitOr(int Value)
Parameters
Value
Integer value to be OR'ed with the internal integer object
Return Value
Returns the result of the bitwise OR operation
Description
This instance method performs a bitwise OR operation with the internal integer value and the incoming value and returns the result. This operation modifies the internal integer object.
int Class
public method<int> BitOr(int Value1,int Value2)
Parameters
Value1
Integer value to use in OR operation
Value2
Integer value to be OR'ed with Value1
Return Value
Returns the result of the bitwise OR operation
Description
This global method performs a bitwise OR operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
Global Method
public method<int> compiler CompilerBitOr(int Value1,int Value2)
Parameters
Value1
Integer value to use in OR operation
Value2
Integer value to be OR'ed with Value1
Return Value
Returns the result of the bitwise OR operation
Description
This compiler method performs a bitwise OR operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> BitAnd(int Value)
Parameters
Value
Integer value to be AND'ed with the internal integer object
Return Value
Returns the result of the bitwise ANDoperation
Description
This instance method performs a bitwise AND operation with the internal integer value and the incoming value and returns the result. This operation modifies the internal integer object.
int Class
public method<int> BitAnd(int Value1,int Value2)
Parameters
Value1
Integer value to use in AND operation
Value2
Integer value to be AND'ed with Value1
Return Value
Returns the result of the bitwise AND operation
Description
This global method performs a bitwise AND operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
Global Method
public method<int> compiler CompilerBitAnd(int Value1,int Value2)
Parameters
Value1
Integer value to use in AND operation
Value2
Integer value to be AND'ed with Value1
Return Value
Returns the result of the bitwise AND operation
Description
This compiler method performs a bitwise AND operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> BitXOr(int Value)
Parameters
Value
Integer value to be XOR'ed with the internal integer object
Return Value
Returns the result of the bitwise XOR operation
Description
This instance method performs a bitwise XOR operation with the internal integer value and the incoming value and returns the result. This operation modifies the internal integer object.
int Class
public method<int> BitXOr(int Value1,int Value2)
Parameters
Value1
Integer value to use in XOR operation
Value2
Integer value to be XOR'ed with Value1
Return Value
Returns the result of the bitwise XOR operation
Description
This global method performs a bitwise XOR operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
Global Method
public method<int> compiler CompilerBitXOr(int Value1,int Value2)
Parameters
Value1
Integer value to use in XOR operation
Value2
Integer value to be XOR'ed with Value1
Return Value
Returns the result of the bitwise XOR operation
Description
This compiler method performs a bitwise XOR operation using the two incoming integer values and returns the result. This operation does not modify the source integer objects.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method
public method<int> BitNot()
Parameters
None
Return Value
Returns the result of the bitwise NOT operation
Description
This instance method performs a bitwise NOT operation on the internal integer value and returns the result. This operation modifies the internal integer object.
int Class
public method<int> BitNot(int Value)
Parameters
Value
Integer value to use in NOT operation
Return Value
Returns the result of the bitwise NOT operation
Description
This global method performs a bitwise NOT operation on the incoming integer value and returns the result. This operation does not modify the source integer object.
Global Method
public method<int> compiler CompilerBitNot(int Value)
Parameters
Value
Integer value to use in NOT operation
Return Value
Returns the result of the bitwise NOT operation
Description
This compiler method performs a bitwise NOT operation on the incoming integer value and returns the result. This operation does not modify the source integer object.
This method can be used dynamically during the compile process at the module level, class level and inside compiler methods. It can also be used within expressions in non-compiler methods. When the expression is processed by the compiler, the compiler method is invoked and the result is treated as a constant within the expression.
Compiler Method