BinaryOperatorExpression class
Represents a operator expression consisting of a left and right
operand and an operator symbol (e.g. +, ==, &&).
The expression is evaluated by first evaluating both operands and then selecting the first matching BinaryOperatorSignature that validates the operand types. If no signature matches, a RenderError is thrown.
Multiple signatures allow operator overloading based on operand types.
- Inheritance
-
- Object
- Expression
- BinaryOperatorExpression
Constructors
- BinaryOperatorExpression({required TemplateLocation location, required BinaryOperatorDefinition definition, required Expression left, required Expression right})
Properties
- definition → BinaryOperatorDefinition
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- left → Expression
-
final
- location → TemplateLocation
-
final
- right → Expression
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluate(
RenderContext context) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited