[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Internally used class for addition operations
Source position: fpexprpars.pp line 307
type TFPAddOperation = class(TMathOperation) |
||
public |
||
function AsString; override; |
|
Get string representation of addition operation |
end; |
|
Internally used class for addition operations |
|
| | | ||
|
Internally used class for mathematical operations in expressions |
|
| | | ||
|
Internally used class for binary operations with left and right operands |
|
| | | ||
|
Class for representing nodes in expression trees |
|
| | | ||
The TFPAddOperation class implements the addition operation between two numeric operands. It extends the binary operation framework to provide addition-specific functionality for integers, floats, and currency values.
The operation handles type conversion automatically when operands have different numeric types, promoting the result to the more precise type as needed. For example, adding an integer to a float produces a float result.
The addition operation also supports string concatenation when both operands are strings, providing unified handling for both numeric addition and string concatenation under the same operator.
This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.
|
Class for representing nodes in expression trees |