VM class
Constructors
- VM.new()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pointer
→ Pointer<
NativeType> -
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add_module(
String name, String source) → void - Add a source module into a virtual machine.
-
bind<
T> (String mod, String name, Function f) → void -
dispose(
) → void -
eval(
String source) → String? -
Evaluate an expression. Return
__repr__
of the result. If there is any error, returnnullptr
. -
exec(
String source) → void - Run a given source on a virtual machine.
-
get_global(
String name) → String? -
Get a global variable of a virtual machine. Return
__repr__
of the result. If the variable is not found, returnnullptr
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read_output(
) → PyOutput -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited