Program class abstract

An interface for programs that wrap a Script with associated functionality. This is seperated from the Script class to present high-level abstractions.

Implementers

Constructors

Program.decompile(Uint8List script, {bool requireMinimal = true})
Decompile a script and match against a program. Must be mininal push data by default
factory
Program.fromAsm(String asm)
factory
Program.match(Script script)
Takes a script and constructs a matching Program subclass if one exists, or a basic RawProgram if there is no match. The script should use minimal pushes. Program.decompile can be used directly on compiled scripts or Program.fromAsm can be used to match directly against ASM.
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
script Script
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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