apollovm library

Classes

ApolloCodeParser<T extends Object>
Base class for ApolloVM parsers.
ApolloExternalFunctionMapper
A mapper for a function that is external to the ApolloVM.
ApolloGenerator<O extends Object, S extends ApolloCodeUnitStorage<D>, D extends Object>
Base class for generators.
ApolloParserDart
Dart implementation of an ApolloParser.
ApolloParserJava11
Java11 implementation of an ApolloParser.
ApolloParserWasm
Dart implementation of an ApolloParser.
ApolloRunner
Base class for ApolloVM runners.
ApolloRunnerDart
Dart implementation of an ApolloRunner.
ApolloRunnerJava11
Java11 implementation of an ApolloRunner.
ApolloRunnerWasm
WebAssembly (Wasm) implementation of an ApolloRunner.
ApolloSourceCodeParser
Base class for ApolloVM source code parsers.
ApolloVM
The Apollo VM.
ASTAnnotation
ASTAnnotationParameter
ASTBlock
An AST Block of code (statements).
ASTBranch
ASTStatement base for branches.
ASTBranchIfBlock
ASTBranch simple IF: if (exp) {}
ASTBranchIfElseBlock
ASTBranch IF,ELSE: if (exp) {} else {}
ASTBranchIfElseIfsElseBlock
ASTBranch IF,ELSE IF,ELSE: if (exp) {} else if (exp) {}* else {}
ASTClass<T>
AST base of a Class.
ASTClassField<T>
ASTVariable for class fields.
ASTClassFieldWithInitialValue<T>
ASTVariable for class fields with initial values.
ASTClassFunctionDeclaration<T>
An AST Class Function Declaration.
ASTClassInstance<V extends ASTValue>
ASTValue for an object class instance.
ASTClassNormal
AST of a normal VM Class.
ASTClassPrimitive<T>
AST of a primitive type VM Class.
ASTClassStaticAccessor<C extends ASTClass<V>, V>
ASTValue for static access of class methods and fields.
ASTCodeRunner
An AST that can be run.
ASTEntryPointBlock
An ASTBlock that can have an entry-point method/function.
ASTExpression
Base for AST expressions.
ASTExpressionFunctionInvocation
ASTExpression base class to call a function.
ASTExpressionListLiteral
ASTExpression that declares a List literal.
ASTExpressionLiteral
ASTExpression that declares a literal (number, boolean and String).
ASTExpressionLocalFunctionInvocation
ASTExpression to call a local context function.
ASTExpressionMapLiteral
ASTExpression that declares a Map literal.
ASTExpressionNegation
ASTExpression that negates another expression.
ASTExpressionObjectFunctionInvocation
ASTExpression to call a class object function.
ASTExpressionOperation
ASTExpression for an operation between 2 expressions.
ASTExpressionVariableAccess
ASTExpression to access a variable.
ASTExpressionVariableAssignment
ASTExpression to assign the value of a variable.
ASTExpressionVariableDirectOperation
ASTExpression to directly apply a change to a variable.
ASTExpressionVariableEntryAccess
ASTExpression to access a variable entry, by index (foo[1]) or by key (foo[k]).
ASTExternalClassFunction<T>
An AST External Function.
ASTExternalFunction<T>
An AST External Function.
ASTFunctionDeclaration<T>
An AST Function Declaration.
ASTFunctionParameterDeclaration<T>
An AST Function Parameter declaration.
ASTFunctionSet
An AST Function Set.
ASTFunctionSetMultiple
ASTFunctionSet implementation, with multiple entries.
ASTFunctionSetSingle
ASTFunctionSet implementation, with 1 entry.
ASTFunctionSignature
An AST Function Signature.
ASTModifiers
Modifiers of an ASTNode element.
ASTNode
An AST (Abstract Syntax Tree) Node.
ASTParameterDeclaration<T>
An AST Parameter declaration.
ASTParametersDeclaration
An AST Parameters Declaration
ASTRoot
An AST Root.
ASTRunStatus
The runtime status of execution.
ASTRuntimeVariable<T>
ASTVariable for a runtime value.
ASTScopeVariable<T>
ASTVariable for a variable visible in a scope context.
ASTStatement
An AST Statement.
ASTStatementExpression
ASTStatementForLoop
ASTStatementReturn
ASTStatement to return void.
ASTStatementReturnNull
ASTStatement to return null.
ASTStatementReturnValue
ASTStatement to return a value.
ASTStatementReturnVariable
ASTStatement to return a variable.
ASTStatementReturnWithExpression
ASTStatement to return an expression.
ASTStatementTyped
ASTStatementValue
ASTStatementVariableDeclaration<V>
ASTStatement that declares a scope variable.
ASTStaticClassAccessorVariable<T>
ASTVariable for static reference.
ASTThisVariable<T>
ASTVariable for this/self reference.
ASTType<V>
An AST Type.
ASTTypeArray<T extends ASTType<V>, V>
ASTType for an array/List.
ASTTypeArray2D<T extends ASTType<V>, V>
ASTType a for a 2D array/List.
ASTTypeArray3D<T extends ASTType<V>, V>
ASTType a for a 3D array/List.
ASTTypeBool
ASTType for booleans (bool).
ASTTypedNode
ASTTypeDouble
ASTType for double.
ASTTypedVariable<T>
ASTVariable with type.
ASTTypeDynamic
ASTType for dynamic declaration.
ASTTypeFuture<T extends ASTType<V>, V>
ASTType a for a Future.
ASTTypeGenericVariable
Generic variable of an ASTType.
ASTTypeGenericWildcard
Generic wildcard (?) of an ASTType.
ASTTypeInt
ASTType for integer (int).
ASTTypeInterface<V>
ASTTypeMap<TK extends ASTType<K>, TV extends ASTType<V>, K, V>
ASTType for an array/List.
ASTTypeNull
ASTType for null.
ASTTypeNum<T extends num>
ASTType for numbers (num).
ASTTypeNumber<T>
Base ASTType for primitive numbers.
ASTTypeObject
ASTType for Object.
ASTTypePrimitive<T>
Base ASTType for primitives.
ASTTypeString
ASTType for String.
ASTTypeVar
ASTType for var declaration.
ASTTypeVoid
ASTType for void.
ASTValue<T>
Base class for AST values.
ASTValueArray<T extends ASTType<V>, V>
ASTValue for an array/List.
ASTValueArray2D<T extends ASTType<V>, V>
ASTValue for a 2D array/List.
ASTValueArray3D<T extends ASTType<V>, V>
ASTValue for a 3D array/List.
ASTValueAsString<T>
ASTValue that should be converted to String.
ASTValueBool
ASTValue for booleans (bool).
ASTValueDouble
ASTValue for double.
ASTValueFuture<T extends ASTType<V>, V>
ASTValue for a Future.
ASTValueInt
ASTValue for integer (int).
ASTValueMap<TK extends ASTType<K>, TV extends ASTType<V>, K, V>
ASTValue for a Map.
ASTValueNull
ASTValue for null.
ASTValueNum<T extends num>
ASTValue for numbers (num).
ASTValueObject
ASTValue for Object.
ASTValuePrimitive<T>
ASTValue for primitive types.
ASTValueReadIndex<T>
ASTValue for a variable read index: elem[1].
ASTValueReadKey<T>
ASTValue for a variable read key: elem[k].
ASTValuesListAsString
ASTValue for lists that should be converted to String.
ASTValueStatic<T>
Static ASTValue. Useful for literals.
ASTValueString
ASTValue for String.
ASTValueStringConcatenation
ASTValue for a concatenations of other values.
ASTValueStringExpression<T>
ASTValue for expressions that should be converted to String.
ASTValueStringVariable<T>
ASTValue for a variable that should resolved and converted to String.
ASTValueVar
ASTValue declared with var.
ASTValueVoid
ASTValue for void.
ASTVariable
Base class for variable reference.
AsyncLoop<I>
An async loop, similar to a for loop block.
AsyncSequenceLoop
An async sequence loop, from i to limit (exclusive).
BinaryCodeUnit
A source code implementation of a CodeUnit.
BytesOutput
Generated Bytes.
CodeNamespace
A namespace that can have multiple loaded CodeUnit instances.
CodeUnit<T>
A Code Unit, with a source code in a specific language. See SourceCodeUnit and BinaryCodeUnit.
Completer<T>
A way to produce Future objects and to complete them later with a value or error.
EventSink<T>
A Sink that supports adding errors.
Future<T>
The result of an asynchronous computation.
FutureOr<T>
A type representing values that are either Future<T> or T.
LanguageNamespaces
Language specific namespaces.
MultiStreamController<T>
An enhanced stream controller provided by Stream.multi.
ParseResult<T>
SourceCodeUnit
A source code implementation of a CodeUnit.
Stream<T>
A source of asynchronous data events.
StreamConsumer<S>
Abstract interface for a "sink" accepting multiple entire streams.
StreamController<T>
A controller with the stream it controls.
StreamIterator<T>
An Iterator-like interface for the values of a Stream.
StreamSink<S>
A object that accepts stream events both synchronously and asynchronously.
StreamSubscription<T>
A subscription on events from a Stream.
StreamTransformer<S, T>
Transforms a Stream.
StreamTransformerBase<S, T>
Base class for implementing StreamTransformer.
StreamView<T>
Stream wrapper that only exposes the Stream interface.
SynchronousStreamController<T>
A stream controller that delivers its events synchronously.
Timer
A countdown timer that can be configured to fire once or repeatedly.
VMClassContext<T>
A runtime context, for classes, of the VM.
VMContext
A runtime context of the VM.
VMObject
An VM Object instance, with respective fields for class type.
VMTypeResolver
WasmModule
A WebAssembly (Wasm) Runtime module
WasmRuntime
A WebAssembly (Wasm) Runtime.
Zone
A zone represents an environment that remains stable across asynchronous calls.
ZoneDelegate
An adapted view of the parent zone.
ZoneSpecification
A parameter object with custom zone function handlers for Zone.fork.

Mixins

GeneratedOutput<O extends Object, T extends Object>
Base class for code generation output.
StrictType

Extensions

ASTTypeExtension on ASTType
AsyncExtensionErrorLoggerExtension on AsyncExtensionErrorLogger?
CompleterExtension on Completer
ExpandoFutureExtension on Expando<Future<T>>
ExpandoFutureOrExtension on Expando<FutureOr<T>>
FutureDoubleExtension on Future<double>
FutureExtension on Future<T>
FutureExtensions on Future<T>
Convenience methods on futures.
FutureIntExtension on Future<int>
FutureIterable on Iterable<Future<T>>
FutureIterableExtension on Future<Iterable<T>>
FutureIterableNullableExtension on Future<Iterable<T>?>
FutureNonNullOnErrorExtension on Future<T>
FutureNullableExtension on Future<T?>
FutureNullableOnErrorExtension on Future<T?>
FutureNumExtension on Future<num>
FutureOnErrorExtension on Future<T>
FutureOrDoubleExtension on FutureOr<double>
FutureOrExtension on FutureOr<T>
Extension for FutureOr.
FutureOrIntExtension on FutureOr<int>
FutureOrIterableExtension on FutureOr<Iterable<T>>
FutureOrIterableNullableExtension on FutureOr<Iterable<T>?>
FutureOrNullableExtension on FutureOr<T?>
FutureOrNumExtension on FutureOr<num>
FutureRecord2 on (Future<T1>, Future<T2>)
Parallel operations on a record of futures.
FutureRecord3 on (Future<T1>, Future<T2>, Future<T3>)
Parallel operations on a record of futures.
FutureRecord4 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>)
Parallel operations on a record of futures.
FutureRecord5 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)
Parallel operations on a record of futures.
FutureRecord6 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)
Parallel operations on a record of futures.
FutureRecord7 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>)
Parallel operations on a record of futures.
FutureRecord8 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>)
Parallel operations on a record of futures.
FutureRecord9 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>, Future<T9>)
Parallel operations on a record of futures.
IterableAsyncExtension on Iterable<T>
IterableFutureExtension on Iterable<Future<T>>
Extension for Iterable<Future<T>>.
IterableFutureOrExtension on Iterable<FutureOr<T>>
Extension for Iterable<FutureOr<T>>.
IterableFutureOrExtensionNullable on Iterable<FutureOr<T?>>
Extensions that apply to iterables with a nullable element type.
IterableFutureOrNullableExtension on Iterable<FutureOr<T>?>
IterableMapEntryFutureExtension on Iterable<MapEntry<FutureOr<K>, FutureOr<V>>>
IterableMapEntryFutureKeyExtension on Iterable<MapEntry<FutureOr<K>, V>>
IterableMapEntryFutureValueExtension on Iterable<MapEntry<K, FutureOr<V>>>
ListTypedExtension on List<T>
MapFutureExtension on Map<FutureOr<K>, FutureOr<V>>
MapFutureKeyExtension on Map<FutureOr<K>, V>
MapFutureValueExtension on Map<K, FutureOr<V>>
MapFutureValueNullableExtension on Map<K, FutureOr<V?>>

Functions

asyncTry<R>(FutureOr<R?> tryBlock(), {FutureOr<R?> then(R? r)?, Function? onError, FutureOr<void> onFinally()?}) FutureOr<R?>
Executes a tryBlock in a try, then, catch and finally execution chain.
getASTAssignmentDirectOperator(String op) ASTAssignmentOperator
getASTAssignmentDirectOperatorText(ASTAssignmentOperator op) String
getASTAssignmentOperator(String op) ASTAssignmentOperator
getASTAssignmentOperatorText(ASTAssignmentOperator op) String
getASTExpressionOperator(String op) ASTExpressionOperator
getASTExpressionOperatorText(ASTExpressionOperator op) String
runZoned<R>(R body(), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification, Function? onError}) → R
Runs body in its own zone.
runZonedGuarded<R>(R body(), void onError(Object error, StackTrace stack), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification}) → R?
Runs body in its own error zone.
scheduleMicrotask(void callback()) → void
Runs a function asynchronously.
unawaited(Future<void>? future) → void
Explicitly ignores a future.

Typedefs

ApolloLanguageRunner = ApolloRunner
ASTPrintFunction = void Function(Object? o)
AsyncExtensionErrorLogger = (void Function(Object? e, StackTrace? s)?)
ControllerCallback = void Function()
Type of a stream controller's onListen, onPause and onResume callbacks.
ControllerCancelCallback = FutureOr<void> Function()
Type of stream controller onCancel callbacks.
CreatePeriodicTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration period, void f(Timer timer))
The type of a custom Zone.createPeriodicTimer implementation function.
CreateTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration duration, void f())
The type of a custom Zone.createTimer implementation function.
ErrorCallbackHandler = AsyncError? Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace? stackTrace)
The type of a custom Zone.errorCallback implementation function.
ForkHandler = Zone Function(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification? specification, Map<Object?, Object?>? zoneValues)
The type of a custom Zone.fork implementation function.
HandleUncaughtErrorHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace stackTrace)
The type of a custom Zone.handleUncaughtError implementation function.
ParameterValueResolver = FutureOr Function(ASTValue? paramVal, VMContext context)
PrintHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, String line)
The type of a custom Zone.print implementation function.
RegisterBinaryCallbackHandler = ZoneBinaryCallback<R, T1, T2> Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2))
The type of a custom Zone.registerBinaryCallback implementation function.
RegisterCallbackHandler = ZoneCallback<R> Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.registerCallback implementation function.
RegisterUnaryCallbackHandler = ZoneUnaryCallback<R, T> Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg))
The type of a custom Zone.registerUnaryCallback implementation function.
RunBinaryHandler = R Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2), T1 arg1, T2 arg2)
The type of a custom Zone.runBinary implementation function.
RunHandler = R Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.run implementation function.
RunUnaryHandler = R Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg), T arg)
The type of a custom Zone.runUnary implementation function.
ScheduleMicrotaskHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, void f())
The type of a custom Zone.scheduleMicrotask implementation function.
ZoneBinaryCallback<R, T1, T2> = R Function(T1, T2)
ZoneCallback<R> = R Function()
ZoneUnaryCallback<R, T> = R Function(T)

Exceptions / Errors

ApolloVMCastException
When a cast error happens while executing some code.
ApolloVMNullPointerException
When a NPE happens while executing some code.
ApolloVMRuntimeError
When an error happens while executing some code (ASTNode).
AsyncError
An error and a stack trace.
DeferredLoadException
Thrown when a deferred library fails to load.
ParallelWaitError<V, E>
Error thrown when waiting for multiple futures, when some have errors.
SyntaxError
Syntax Error while parsing.
TimeoutException
Thrown when a scheduled timeout happens while waiting for an async result.
UnsupportedSyntaxError
Unsupported syntax Error while parsing.
UnsupportedTypeError
Unsupported type Error while parsing.
UnsupportedValueOperationError
Unsupported value operation Error while parsing.
WasmModuleError
WasmModule error.
WasmModuleExecutionError
Thrown when WasmModule execution fails.
WasmModuleLoadError
Thrown when WasmModule fails to load.