BranchingArgOperation class Null safety

A BranchingOperation that takes an argument, namely B? (bit test)

Inheritance

Constructors

BranchingArgOperation({required OperationArg arg, required String name})

Properties

arg OperationArg
A description of an argument, if there is one. For example, the STO operation has an argument to indicate which register to store to.
final, inherited
floatCalc → (void Function?(Model<ProgramOperation> m)?)
The calculation performed when the calculator is in floating-point mode.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
intCalc → (void Function?(Model<ProgramOperation> m)?)
The calculation performed when the calculator is in integer mode.
read-only, inherited
maxArg int
0 if this operation doesn't take an argument
read-only, inherited
name String
final, inherited
numericValue int?
Give the numeric value of a number key. cf. tests.dart, SelfTests.testNumbers().
read-only, inherited
programDisplay String
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

calcDefinedFor<T>(Controller controller, T? calc) → T?
Branching operations only perform a calculation when we are running a program.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
possiblyAlterStackLift(Controller c) → void
Either enable or disable stack lift, if appropriate, after this operation's calculation is done. This will not be called if this operation doesn't have a calculation (intCalc or floatCalc on itself, or on its argument).
inherited
pressed(LimitedState arg) → void
Do nothing -- we don't know our argument yet.
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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