DartBlockValueTreeAlgebraicDynamicNode class

Inheritance
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Properties

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

Methods

backspace() → DartBlockValueTreeAlgebraicNode?
Receive a delete (backspace) request, which should delete the right-most component (digit of a constant, variable, operator).
override
copy() → DartBlockValueTreeAlgebraicDynamicNode
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

Operators

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