DartBlockValueTreeAlgebraicConstantNode class
- Inheritance
-
- Annotations
-
- @JsonSerializable.new(explicitToJson: true)
Methods
-
backspace()
→ DartBlockValueTreeAlgebraicNode?
-
Receive a delete (backspace) request, which should delete the right-most
component (digit of a constant, variable, operator).
override
-
copy()
→ DartBlockValueTreeAlgebraicConstantNode
-
Return a deep copy of the node.
override
-
findNodeByKey(String key)
→ DartBlockValueTreeAlgebraicNode?
-
findNodeByKey returns the subtype ValueCompositionNumberNode for ValueCompositionNumberNode and its concrete subclasses.
override
-
getRightLeaf()
→ DartBlockValueTreeAlgebraicNode
-
Used to retrieve current function call value. (See NumberValueComposer)
inherited
-
getRoot()
→ DartBlockValueTreeAlgebraicNode
-
Traverse the tree upwards and retrieve the root.
The root is defined as the node which has no parent.
inherited
-
getValue(DartBlockArbiter arbiter)
→ num
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
receiveDigit(num digit)
→ DartBlockValueTreeAlgebraicNode
-
Receive a digit 0-9.
override
-
receiveDot()
→ DartBlockValueTreeAlgebraicNode
-
Receive a dot, indicating the user wants to compose a decimal constant value.
override
-
receiveDynamicValue(DartBlockDynamicValue dynamicValue)
→ DartBlockValueTreeAlgebraicNode
-
Receive a dynamic value, which may be a variable or a function call.
override
-
receiveNegation()
→ DartBlockValueTreeAlgebraicNode
-
override
-
receiveOperator(DartBlockAlgebraicOperator operator)
→ DartBlockValueTreeAlgebraicNode
-
Receive an operator (+, -, *, /)
inherited
-
replaceChild(DartBlockValueTreeAlgebraicNode oldChild, DartBlockValueTreeAlgebraicNode? newChild)
→ DartBlockValueTreeAlgebraicNode?
-
Only implemented by ArithmeticOperatorNode which features two child (left, right)
properties. All other subclasses have empty implementations.
override
-
toJson()
→ Map<String, dynamic>
-
override
-
toScript({DartBlockTypedLanguage language = DartBlockTypedLanguage.java})
→ String
-
override
-
toString()
→ String
-
A string representation of this object.
override