DartBlockValueTreeAlgebraicNode class sealed

Inheritance
Implementers

Constructors

DartBlockValueTreeAlgebraicNode.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nodeKey String
getter/setter pairinherited
nodeType DartBlockValueTreeNodeType
finalinherited
numericNodeType DartBlockValueTreeAlgebraicNodeType
final
parent DartBlockValueTreeAlgebraicNode?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

backspace() DartBlockValueTreeAlgebraicNode?
Receive a delete (backspace) request, which should delete the right-most component (digit of a constant, variable, operator).
copy() DartBlockValueTreeAlgebraicNode
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)
getRoot() DartBlockValueTreeAlgebraicNode
Traverse the tree upwards and retrieve the root. The root is defined as the node which has no parent.
override
getValue(DartBlockArbiter arbiter) num
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receiveDigit(num digit) DartBlockValueTreeAlgebraicNode
Receive a digit 0-9.
receiveDot() DartBlockValueTreeAlgebraicNode
Receive a dot, indicating the user wants to compose a decimal constant value.
receiveDynamicValue(DartBlockDynamicValue dynamicValue) DartBlockValueTreeAlgebraicNode
Receive a dynamic value, which may be a variable or a function call.
receiveNegation() DartBlockValueTreeAlgebraicNode
receiveOperator(DartBlockAlgebraicOperator operator) DartBlockValueTreeAlgebraicNode
Receive an operator (+, -, *, /)
replaceChild(DartBlockValueTreeAlgebraicNode oldChild, DartBlockValueTreeAlgebraicNode? newChild) DartBlockValueTreeAlgebraicNode?
Only implemented by ArithmeticOperatorNode which features two child (left, right) properties. All other subclasses have empty implementations.
toJson() Map<String, dynamic>
override
toScript({DartBlockTypedLanguage language = DartBlockTypedLanguage.java}) String
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited