ApolloExternalFunctionMapper class
A mapper for a function that is external to the ApolloVM.
Used to map normal Dart functions to the ApolloVM instance. This allows calls to Dart functions, like print, from a source code parsed and loaded by ApolloVM.
- Available Extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addExternalFunction(
ASTExternalFunction fExternal) → void -
Adds an external function (
fExternal
) to this mapping table. -
getMappedFunction<
R> (VMContext context, String fName, [ASTFunctionSignature? parametersSignature]) → ASTExternalFunction< R> ? -
Returns a mapped functions with
fName
and optionalparametersSignature
. -
mapExternalFunction0<
T, R> (ASTType< R> fReturn, String fName, dynamic f()) → void - Maps an external function with 0 parameters.
-
mapExternalFunction1<
T, R> (ASTType< R> fReturn, String fName, ASTType<T> pType1, String pName1, dynamic f(T p1)) → void - Maps an external function with 1 parameter.
-
mapExternalFunction2<
A, B, R> (ASTType< R> fReturn, String fName, ASTType<A> pType1, String pName1, ASTType<B> pType2, String pName2, dynamic f(A p1, B p2)) → void - Maps an external function with 2 parameters.
-
mapExternalFunction3<
A, B, C, R> (ASTType< R> fReturn, String fName, ASTType<A> pType1, String pName1, ASTType<B> pType2, String pName2, ASTType<B> pType3, String pName3, dynamic f(A p1, B p2)) → void - Maps an external function with 3 parameters.
-
mapExternalFunction4<
A, B, C, D, R> (ASTType< R> fReturn, String fName, ASTType<A> pType1, String pName1, ASTType<B> pType2, String pName2, ASTType<B> pType3, String pName3, ASTType<B> pType4, String pName4, dynamic f(A p1, B p2)) → void - Maps an external function with 4 parameters.
-
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