BinaryOperator class abstract
A binary operator takes two expressions and performs an operation on them.
Constructors
- BinaryOperator(dynamic first, dynamic second)
- Creates a BinaryOperator from two given arguments.
- BinaryOperator.raw(Expression first, Expression second)
- Creates a new BinaryOperator from two given expressions.
Properties
- first ↔ Expression
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second ↔ Expression
-
latefinal
Methods
-
derive(
String toVar) → Expression -
Derives this expression with respect to the given variable.
inherited
-
evaluate(
EvaluationType type, ContextModel context) → dynamic -
Evaluates this expression according to given type and context.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
simplify(
) → Expression -
Returns a simplified version of this expression.
Subclasses should overwrite this method, if applicable.
inherited
-
toString(
) → String -
Returns a string version of this expression.
Subclasses should override this method. The output should be kept
compatible with the Parser.
inherited
Operators
-
operator %(
Expression exp) → Expression -
Modulo operator. Creates a Modulo expression.
inherited
-
operator *(
Expression exp) → Expression -
Multiply operator. Creates a Times expression.
inherited
-
operator +(
Expression exp) → Expression -
Add operator. Creates a Plus expression.
inherited
-
operator -(
Expression exp) → Expression -
Subtract operator. Creates a Minus expression.
inherited
-
operator /(
Expression exp) → Expression -
Divide operator. Creates a Divide expression.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ^(
Expression exp) → Expression -
Power operator. Creates a Power expression.
inherited
-
operator unary-(
) → Expression -
Unary minus operator. Creates a UnaryMinus expression.
inherited