@Override public void setUp() throws Exception { super.setUp(); with(new LangATestLanguageStandaloneSetup() { @Override public Injector createInjector() { return Guice.createInjector(new LangATestLanguageRuntimeModule() { @Override @SingletonBinding public Class<? extends ILinkingService> bindILinkingService() { return CrossRefLinkingService.class; } }); } }); crossRefSerializer = get(ICrossReferenceSerializer.class); grammar = (LangATestLanguageGrammarAccess) get(IGrammarAccess.class); }
@SingletonBinding(eager=true) public Class<? extends PkmntcgoValidator> bindPkmntcgoValidator() { return PkmntcgoValidator.class; }
@SingletonBinding(eager=true) public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { return LanguageRegistrar.class; }
/** */ @SingletonBinding public Class<? extends ResourceHelper> bindResourceHelper() { return ResourceHelper.class; }
@SingletonBinding(eager=true) public Class<? extends TypesValidator> bindTypesValidator() { return TypesValidator.class; }
@SingletonBinding(eager=true) public Class<? extends RegularExpressionValidator> bindRegularExpressionValidator() { return RegularExpressionValidator.class; }
@SingletonBinding(eager=true) public Class<? extends N4JSValidator> bindN4JSValidator() { return N4JSValidator.class; }
/** * Binds to special N4JS version of CancelableDiagnostician supporting pre- and post validation phases. */ @Override @SingletonBinding public Class<? extends Diagnostician> bindDiagnostician() { return PrePostDiagnostician.class; }
/** * Binds a special language-independent validator checking project setups, mainly used for polyfill-clashes. */ @SingletonBinding(eager = true) public Class<? extends org.eclipse.n4js.validation.validators.N4JSProjectSetupValidator> bindN4JSProjectSetupValidator() { return org.eclipse.n4js.validation.validators.N4JSProjectSetupValidator.class; }
/** * Bind JavaScriptVariantHelper */ @SingletonBinding public Class<? extends JavaScriptVariantHelper> bindJavaScriptVariantHelper() { return N4JSJavaScriptVariantHelper.class; }
@SingletonBinding(eager=true) public Class<? extends N4MFValidator> bindN4MFValidator() { return N4MFValidator.class; }
@SingletonBinding(eager=true) public Class<? extends MyDslValidator> bindMyDslValidator() { return MyDslValidator.class; }
@SingletonBinding(eager=true) public Class<? extends BromiumValidator> bindBromiumValidator() { return BromiumValidator.class; }
@SingletonBinding(eager=true) public Class<? extends DSLPoliciesValidator> bindDSLPoliciesValidator() { return DSLPoliciesValidator.class; }
@SingletonBinding(eager=true) public Class<? extends LcDslValidator> bindLcDslValidator() { return LcDslValidator.class; }
@SingletonBinding(eager=true) public Class<? extends DslValidator> bindDslValidator() { return DslValidator.class; }
@SingletonBinding(eager=true) public Class<? extends RestauranteValidator> bindRestauranteValidator() { return RestauranteValidator.class; }
@SingletonBinding(eager=true) public Class<? extends OCCIValidator> bindOCCIValidator() { return OCCIValidator.class; }
@SingletonBinding(eager=true) public Class<? extends PureXbaseValidator> bindPureXbaseValidator() { return PureXbaseValidator.class; }
@SingletonBinding(eager=true) public Class<? extends XbaseValidator> bindXbaseValidator() { return XbaseValidator.class; }
@SingletonBinding(eager=true) public Class<? extends XbaseWithAnnotationsValidator> bindXbaseWithAnnotationsValidator() { return XbaseWithAnnotationsValidator.class; }
@SingletonBinding(eager = true) public Class<? extends JvmTypeReferencesValidator> bindJvmTypeReferencesValidator() { return JvmTypeReferencesValidator.class; }
@SingletonBinding(eager = true) public Class<? extends UniqueClassNameValidator> bindUniqueClassNameValidator() { return UniqueClassNameValidator.class; }
@SingletonBinding(eager=true) public Class<? extends BuilderTestLanguageValidator> bindBuilderTestLanguageValidator() { return BuilderTestLanguageValidator.class; }
@SingletonBinding(eager=true) public Class<? extends Bug462047LangValidator> bindBug462047LangValidator() { return Bug462047LangValidator.class; }
@SingletonBinding(eager=true) public Class<? extends XImportSectionTestLangValidator> bindXImportSectionTestLangValidator() { return XImportSectionTestLangValidator.class; }
@SingletonBinding(eager=true) public Class<? extends ContentAssistFragmentTestLangValidator> bindContentAssistFragmentTestLangValidator() { return ContentAssistFragmentTestLangValidator.class; }