当前位置: 首页>>代码示例>>Java>>正文


Java ILanguageService类代码示例

本文整理汇总了Java中org.metaborg.core.language.ILanguageService的典型用法代码示例。如果您正苦于以下问题:Java ILanguageService类的具体用法?Java ILanguageService怎么用?Java ILanguageService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ILanguageService类属于org.metaborg.core.language包,在下文中一共展示了ILanguageService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
public static void init(Injector newInjector) {
    if(injector != null) {
        return;
    }

    injector = newInjector;
    resourceService = newInjector.getInstance(IResourceService.class);
    languageService = newInjector.getInstance(ILanguageService.class);
    languageIdentifierService = newInjector.getInstance(ILanguageIdentifierService.class);
    languagePathService = newInjector.getInstance(ILanguagePathService.class);
    projectService = newInjector.getInstance(IProjectService.class);
    languageSpecService = newInjector.getInstance(ISpoofaxLanguageSpecService.class);
    sourceTextService = newInjector.getInstance(ISourceTextService.class);
    unitService = newInjector.getInstance(ISpoofaxUnitService.class);
    syntaxService = newInjector.getInstance(ISpoofaxSyntaxService.class);
    termFactoryService = newInjector.getInstance(ITermFactoryService.class);
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:18,代码来源:SpoofaxContext.java

示例2: RemoteParseCommand

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public RemoteParseCommand(ISourceTextService sourceTextService, IDependencyService dependencyService,
                                  ILanguagePathService languagePathService, ISpoofaxProcessorRunner runner, IStrategoCommon strategoCommon,
                                  ProjectPathDelegate projectPathDelegate, InputDelegate inputDelegate, ILanguageService languageService) {
    super(sourceTextService, dependencyService, languagePathService, runner, strategoCommon, projectPathDelegate,
        inputDelegate);
    this.languageService = languageService;
}
 
开发者ID:metaborg,项目名称:spoofax-sunshine,代码行数:8,代码来源:RemoteParseCommand.java

示例3: RemoteTransformCommand

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public RemoteTransformCommand(ISourceTextService sourceTextService, IDependencyService dependencyService,
                                      ILanguagePathService languagePathService, ISpoofaxProcessorRunner runner,
                                      IStrategoCommon strategoTransformerCommon, ProjectPathDelegate languageSpecPathDelegate, InputDelegate inputDelegate,
                                      ILanguageService languageService) {
    super(sourceTextService, dependencyService, languagePathService, runner, strategoTransformerCommon,
            languageSpecPathDelegate, inputDelegate);
    this.languageService = languageService;
}
 
开发者ID:metaborg,项目名称:spoofax-sunshine,代码行数:9,代码来源:RemoteTransformCommand.java

示例4: RemoteAnalyzeCommand

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public RemoteAnalyzeCommand(ISourceTextService sourceTextService, IDependencyService dependencyService,
                                    ILanguagePathService languagePathService, ISpoofaxProcessorRunner runner, IStrategoCommon strategoCommon,
                                    ProjectPathDelegate languageSpecPathDelegate, InputDelegate inputDelegate, ILanguageService languageService) {
    super(sourceTextService, dependencyService, languagePathService, runner, strategoCommon, languageSpecPathDelegate,
        inputDelegate);
    this.languageService = languageService;
}
 
开发者ID:metaborg,项目名称:spoofax-sunshine,代码行数:8,代码来源:RemoteAnalyzeCommand.java

示例5: MetaBorg

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
/**
 * Instantiate the MetaBorg API.
 * 
 * @param loader
 *            Module plugin loader to use.
 * @param module
 *            MetaBorg module to use.
 * @param additionalModules
 *            Additional modules to use.
 * 
 * @throws MetaborgException
 *             When loading plugins or dependency injection fails.
 */
@SuppressWarnings("unchecked") public MetaBorg(IModulePluginLoader loader, MetaborgModule module,
    Module... additionalModules) throws MetaborgException {
    final Collection<Module> metaborgModules = Lists.newArrayList(additionalModules);
    metaborgModules.add(module);
    final Iterable<Module> modules = InjectorFactory.modules(loader, metaborgModules);
    this.injector = InjectorFactory.create(modules);

    this.autoCloseables = (Set<AutoCloseable>) injector.getInstance(Key.get(Types.setOf(AutoCloseable.class)));

    this.resourceService = injector.getInstance(IResourceService.class);
    this.languageService = injector.getInstance(ILanguageService.class);
    this.languageComponentFactory = injector.getInstance(ILanguageComponentFactory.class);
    this.languageDiscoveryService = injector.getInstance(ILanguageDiscoveryService.class);
    this.languageIdentifierService = injector.getInstance(ILanguageIdentifierService.class);
    this.languagePathService = injector.getInstance(ILanguagePathService.class);
    this.dialectProcessor = injector.getInstance(IDialectProcessor.class);

    this.contextService = injector.getInstance(IContextService.class);

    this.dependencyService = injector.getInstance(IDependencyService.class);
    this.projectService = injector.getInstance(IProjectService.class);

    this.sourceTextService = injector.getInstance(ISourceTextService.class);

    this.editorRegistry = injector.getInstance(IEditorRegistry.class);
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:40,代码来源:MetaBorg.java

示例6: LanguageSourceFilesPrimitive

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public LanguageSourceFilesPrimitive(ILanguageService languageService,
    ILanguagePathService languagePathService, IProjectService projectService) {
    super("language_source_files", 0, 1);
    this.languageService = languageService;
    this.languagePathService = languagePathService;
    this.projectService = projectService;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:8,代码来源:LanguageSourceFilesPrimitive.java

示例7: LegacyForeignCallPrimitive

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public LegacyForeignCallPrimitive(ILanguageService languageService, IContextService contextService,
    IProjectService projectService, IStrategoCommon common) {
    super("SSL_EXT_foreigncall", 0, 2);

    this.languageService = languageService;
    this.contextService = contextService;
    this.projectService = projectService;
    this.common = common;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:10,代码来源:LegacyForeignCallPrimitive.java

示例8: LanguageIncludeFilesPrimitive

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public LanguageIncludeFilesPrimitive(ILanguageService languageService,
    ILanguagePathService languagePathService, IProjectService projectService) {
    super("language_include_files", 0, 1);
    this.languageService = languageService;
    this.languagePathService = languagePathService;
    this.projectService = projectService;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:8,代码来源:LanguageIncludeFilesPrimitive.java

示例9: ParsePrimitive

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public ParsePrimitive(IResourceService resourceService, ILanguageService languageService,
    ILanguageIdentifierService languageIdentifierService, IDialectIdentifier dialectIdentifier,
    ISpoofaxUnitService unitService, ISourceTextService sourceTextService, ISpoofaxSyntaxService syntaxService) {
    super("parse", 0, 4);
    this.resourceService = resourceService;
    this.languageService = languageService;
    this.languageIdentifierService = languageIdentifierService;
    this.dialectIdentifier = dialectIdentifier;
    this.unitService = unitService;
    this.sourceTextService = sourceTextService;
    this.syntaxService = syntaxService;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:13,代码来源:ParsePrimitive.java

示例10: RemoteBuildCommand

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public RemoteBuildCommand(ISourceTextService sourceTextService, IDependencyService dependencyService,
                                  ILanguagePathService languagePathService, ISpoofaxProcessorRunner runner,
                                  ProjectPathDelegate languageSpecPathDelegate, ILanguageService languageService) {
    super(sourceTextService, dependencyService, languagePathService, runner, languageSpecPathDelegate);
    this.languageService = languageService;
}
 
开发者ID:metaborg,项目名称:spoofax-sunshine,代码行数:7,代码来源:RemoteBuildCommand.java

示例11: languageService

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
public ILanguageService languageService() {
    return languageService;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:4,代码来源:SpoofaxContext.java

示例12: bindLanguage

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
protected void bindLanguage() {
    bind(ILanguageService.class).to(LanguageService.class).in(Singleton.class);
    bind(ILanguageIdentifierService.class).to(LanguageIdentifierService.class).in(Singleton.class);
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:5,代码来源:MetaborgModule.java

示例13: DefaultDependencyService

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public DefaultDependencyService(ILanguageService languageService) {
    this.languageService = languageService;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:4,代码来源:DefaultDependencyService.java

示例14: SpoofaxProcessorRunner

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public SpoofaxProcessorRunner(ISpoofaxProcessor processor, ILanguageService languageService) {
    super(processor, languageService);
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:4,代码来源:SpoofaxProcessorRunner.java

示例15: LanguageDiscoveryService

import org.metaborg.core.language.ILanguageService; //导入依赖的package包/类
@Inject public LanguageDiscoveryService(ILanguageService languageService,
    ILanguageComponentFactory componentFactory) {
    this.languageService = languageService;
    this.componentFactory = componentFactory;
}
 
开发者ID:metaborg,项目名称:spoofax,代码行数:6,代码来源:LanguageDiscoveryService.java


注:本文中的org.metaborg.core.language.ILanguageService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。