Statement class sealed

The core class which represents an instruction in DartBlock, e.g., a variable declaration or a for-loop.

Implemented types
Implementers

Constructors

Statement.fromJson(Map<String, dynamic> json)
Decode a Statement object from a given JSON object (Map).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statementId String
A unique identifier.
final
statementType StatementType
The type of the Statement.
final

Methods

buildTree(DartBlockProgramTreeNode programTreeNode) DartBlockProgramTreeNode
inherited
copy() Statement
Create a deep copy of the Statement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(DartBlockArbiter arbiter) → void
Execute the Statement, using the given DartBlockArbiter.
shuffle() Statement
Shuffle the contents of the Statement.
toJson() Map<String, dynamic>
Encode the Statement object to JSON.
toScript({DartBlockTypedLanguage language = DartBlockTypedLanguage.java}) String
Export the Statement to its equivalent textual representation in a typed language.
toString() String
A string representation of this object.
override
trim(int remaining) → (Statement?, int)
Trim the contents of the Statement.

Operators

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