ApolloVM class

The Apollo VM.

Implemented types
Available Extensions

Constructors

ApolloVM()

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
final
loadedCodeLanguages List<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCodeGenerator(String language, ApolloSourceCodeStorage codeStorage) → ApolloCodeGenerator?
Creates an ApolloCodeGenerator for the language and a codeStorage.
createGenerator<O extends Object>(String language, ApolloCodeUnitStorage<O> codeStorage) ApolloGenerator<Object, ApolloCodeUnitStorage<Object>, Object>?
Creates an ApolloGenerator for the language and a codeStorage.
createRunner(String language) ApolloRunner?
Creates a runner for the language.
generateAll(ApolloGenerator<Object, ApolloCodeUnitStorage<Object>, Object> generator) → void
Generate all the loaded code with codeGenerator implementation.
generateAllCode(ApolloCodeGenerator codeGenerator) → void
Generate all the loaded code with codeGenerator implementation.
generateAllCodeIn(String language, {ApolloSourceCodeStorage? codeStorage}) → ApolloSourceCodeStorage
Generates all the VM loaded code in language, returning a ApolloSourceCodeStorage.
generateAllIn<O extends Object>(String language, {ApolloCodeUnitStorage<O>? codeStorage}) → ApolloCodeUnitStorage<O>
Generates all the VM loaded code in language, returning a ApolloSourceCodeStorage.
getLanguageNamespaces(String language) LanguageNamespaces
Returns a LanguageNamespaces for language.
getNamespace(String language, String namespace) CodeNamespace?
Returns a CodeNamespace for language and namespace.
getNamespaceWithClass(String className, {String? language, bool caseInsensitive = false}) List<CodeNamespace>
Returns a CodeNamespace with class className for language (optional).
getNamespaceWithName(String namespace) List<CodeNamespace>
Returns a List of CodeNamespace with name namespace.
getNamespaceWithNameAndClass(String namespace, String className, {bool caseInsensitive = false}) List<CodeNamespace>
Returns a List of CodeNamespace with name namespace and with class className.
getParser<T extends Object>(String language) ApolloCodeParser<T>?
Returns a parser for a language.
loadCodeUnit<T extends Object>(CodeUnit<T> codeUnit) Future<bool>
Loads codeUnit, parsing the CodeUnit.source to the corresponding AST (Abstract Syntax Tree).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveCoreType(String typeName, {String? namespace, String? language, bool caseInsensitive = false}) ASTType?
resolveType(String typeName, {String? namespace, String? language, bool caseInsensitive = false}) ASTType?
Resolves an ASTType with typeName.
override
toString() String
A string representation of this object.
override

Operators

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

Static Properties

VERSION String
final

Static Methods

parseLanguageFromFilePathExtension(String fileOrExtension) String
Returns the language associated with fileOrExtension.