SpoofaxModule¶
-
public class
SpoofaxModule
extends MetaborgModule¶ Guice module that specifies which implementations to use for services and factories.
Constructors¶
SpoofaxModule¶
-
public
SpoofaxModule
(ClassLoader resourceClassLoader)¶
Methods¶
bindAnalysis¶
-
protected void
bindAnalysis
()¶ Overrides
MetaborgModule.bindAnalysis()
to provide Spoofax-specific bindings with Spoofax interfaces, and to provide analyzers.
bindBuilder¶
-
protected void
bindBuilder
()¶ Overrides
MetaborgModule.bindBuilder()
to provide Spoofax-specific bindings with generics filled in asIStrategoTerm
.
bindContextFactories¶
-
protected void
bindContextFactories
(MapBinder<String, IContextFactory> binder)¶
bindParsers¶
-
protected void
bindParsers
(MapBinder<String, IParser<ISpoofaxInputUnit, ISpoofaxParseUnit>> parserBinder, MapBinder<String, ISpoofaxParser> spoofaxParserBinder)¶
bindPrimitive¶
-
protected static void
bindPrimitive
(Multibinder<AbstractPrimitive> binder, AbstractPrimitive primitive)¶
bindPrimitive¶
-
protected static void
bindPrimitive
(Multibinder<AbstractPrimitive> binder, Class<? extends AbstractPrimitive> primitive)¶
bindPrimitiveLibrary¶
-
protected static void
bindPrimitiveLibrary
(Multibinder<IOperatorRegistry> binder, Class<? extends IOperatorRegistry> primitiveLibrary)¶
bindProcessor¶
-
protected void
bindProcessor
()¶ Overrides
MetaborgModule.bindProcessor()
to provide Spoofax-specific bindings with generics filled in asIStrategoTerm
.
bindProcessorRunner¶
-
protected void
bindProcessorRunner
()¶ Overrides
MetaborgModule.bindProcessorRunner()
to provide Spoofax-specific bindings with generics filled in asIStrategoTerm
.