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 thelanguage
and acodeStorage
. -
createGenerator<
O extends Object> (String language, ApolloCodeUnitStorage< O> codeStorage) → ApolloGenerator<Object, ApolloCodeUnitStorage< ?Object> , Object> -
Creates an ApolloGenerator for the
language
and acodeStorage
. -
createRunner(
String language) → ApolloRunner? -
Creates a runner for the
language
. -
generateAll(
ApolloGenerator< Object, ApolloCodeUnitStorage< generator) → voidObject> , Object> -
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 aApolloSourceCodeStorage
. -
generateAllIn<
O extends Object> (String language, {ApolloCodeUnitStorage< O> ? codeStorage}) → ApolloCodeUnitStorage<O> -
Generates all the VM loaded code in
language
, returning aApolloSourceCodeStorage
. -
getLanguageNamespaces(
String language) → LanguageNamespaces -
Returns a LanguageNamespaces for
language
. -
getNamespace(
String language, String namespace) → CodeNamespace? -
Returns a CodeNamespace for
language
andnamespace
. -
getNamespaceWithClass(
String className, {String? language, bool caseInsensitive = false}) → List< CodeNamespace> -
Returns a CodeNamespace with class
className
forlanguage
(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 classclassName
. -
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 theCodeUnit.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 Methods
-
parseLanguageFromFilePathExtension(
String fileOrExtension) → String -
Returns the language associated with
fileOrExtension
.