IStrategoRuntimeService¶
-
public interface
IStrategoRuntimeService
extends ILanguageCache¶ Interface for a service that returns Stratego runtimes. Runtimes are created once and then cached, subsequent calls are faster.
Methods¶
genericRuntime¶
-
HybridInterpreter
genericRuntime
()¶ Returns: Generic Stratego runtime, with just the standard libraries loaded.
runtime¶
-
HybridInterpreter
runtime
(ILanguageComponent component, IContext context, boolean typesmart)¶ Returns a new Stratego runtime for given component, initialized with given context.
Parameters: - component – Language component to load the Stratego CTree and JAR files from.
- context – Context to initialize the runtime with.
- typesmart – Whether the runtime should do typesmart analysis.
Throws: - MetaborgException – When loading a Stratego CTree or JAR fails.
Returns: New Stratego runtime.
runtime¶
-
HybridInterpreter
runtime
(ILanguageComponent component, FileObject location, boolean typesmart)¶ Returns a new Stratego runtime for given component, initialized without a context.
Parameters: - component – Language component to load the Stratego CTree and JAR files from.
- location – Location to initialize the runtime with.
- typesmart – Whether the runtime should do typesmart analysis.
Throws: - MetaborgException – When loading a Stratego CTree or JAR fails.
Returns: New Stratego runtime.