Inheritance diagram for CCM::IntExpr:

Public Types | |
| enum | Op { LITERAL, ID, CALL, ELEMENT, SETELEMENT, TILDE, NEG, ADD, SUB, MUL, DIV, MOD, SHL, SHR, AND, XOR, OR, ASSIGN } |
| Possible operations. More... | |
Public Member Functions | |
| IntExpr (int lit) | |
| Create a literal expression with given value. | |
| IntExpr (Ref id) | |
| Create a variable / stub property reference expression. | |
| IntExpr (Ref id, Expr e) | |
| Create assignment expression. | |
| IntExpr (Ref method, List args) | |
| Create method call expression to method(args). | |
| IntExpr (ArrayExpr array, IntExpr index) | |
| Create array element access expression to array[index]. | |
| IntExpr (ArrayExpr array, IntExpr index, Expr value) | |
| Create array element assignment expression: array[index] = value. | |
| IntExpr (Op op, Expr e) | |
| Create unary expression. | |
| IntExpr (Op op, Expr e1, Expr e2) | |
| Create binary expression. | |
| override Type | type () |
| Return the expression type. | |
| override Object | eval () |
| Evaluate expression and return its value. | |
| override Expr | makeElementAssign (Expr value) |
| Return an expression that assigns value to the element if called on an array element access expression. | |
| override string | ToString () |
Private Attributes | |
| Op | op |
| int | value |
|
|
Possible operations.
|
|
|
Create a literal expression with given value.
|
|
|
Create a variable / stub property reference expression.
|
|
||||||||||||
|
Create assignment expression.
|
|
||||||||||||
|
Create method call expression to method(args).
|
|
||||||||||||
|
Create array element access expression to array[index].
|
|
||||||||||||||||
|
Create array element assignment expression: array[index] = value.
|
|
||||||||||||
|
Create unary expression.
|
|
||||||||||||||||
|
Create binary expression.
|
|
|
Evaluate expression and return its value. Stub access expressions add transitions to the currently evaluated process. Implements CCM::Expr. |
|
|
Return an expression that assigns value to the element if called on an array element access expression.
Implements CCM::Expr. |
|
|
|
|
|
Return the expression type. This is generally the type of the expression value, not of the Expr itself (e. g. "int", not "IntExpr"). Implements CCM::Expr. |
|
|
|
|
|
|
1.3.7