Java 类org.eclipse.xtext.generator.IGenerator2 实例源码

项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return PkmntcgoGenerator.class;
}
项目:n4js    文件:AbstractRegularExpressionRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return RegularExpressionGenerator.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return MyDslGenerator.class;
}
项目:bromium    文件:AbstractBromiumRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return BromiumGenerator.class;
}
项目:lcdsl    文件:AbstractLcDslRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return LcDslGenerator.class;
}
项目:gemoc-studio    文件:AbstractDslRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return DslGenerator.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return RestauranteGenerator.class;
}
项目:OCCI-Studio    文件:AbstractOCCIRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return OCCIGenerator.class;
}
项目:M2Doc    文件:AbstractMyDslRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return MyDslGenerator.class;
}
项目:minitl    文件:AbstractMinitlRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return MinitlGenerator.class;
}
项目:xtext-core    文件:AbstractPartialContentAssistTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return PartialContentAssistTestLanguageGenerator.class;
}
项目:xtext-core    文件:AbstractPartialSerializationTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return PartialSerializationTestLanguageGenerator.class;
}
项目:xtext-core    文件:AbstractIndentationAwareUiTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return IndentationAwareUiTestLanguageGenerator.class;
}
项目:xtext-core    文件:AbstractTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return TestLanguageGenerator.class;
}
项目:xtext-core    文件:GeneratorFragment2.java   
@Override
public void generate() {
  boolean _isGenerateStub = this.isGenerateStub();
  if (_isGenerateStub) {
    new GuiceModuleAccess.BindingFactory().addTypeToType(TypeReference.typeRef(IGenerator2.class), this.getGeneratorStub(this.getLanguage().getGrammar())).contributeTo(this.getLanguage().getRuntimeGenModule());
    ManifestAccess _manifest = this.getProjectConfig().getRuntime().getManifest();
    boolean _tripleNotEquals = (_manifest != null);
    if (_tripleNotEquals) {
      Set<String> _requiredBundles = this.getProjectConfig().getRuntime().getManifest().getRequiredBundles();
      String _xbaseLibVersionLowerBound = this.getProjectConfig().getRuntime().getXbaseLibVersionLowerBound();
      String _plus = ("org.eclipse.xtext.xbase.lib;bundle-version=\"" + _xbaseLibVersionLowerBound);
      String _plus_1 = (_plus + "\"");
      _requiredBundles.add(_plus_1);
    }
    boolean _isGenerateXtendStub = this.isGenerateXtendStub();
    if (_isGenerateXtendStub) {
      this.doGenerateXtendStubFile();
    } else {
      this.doGenerateJavaStubFile();
    }
  }
  if ((this.isGenerateStub() || this.isGenerateJavaMain())) {
    ManifestAccess _manifest_1 = this.getProjectConfig().getRuntime().getManifest();
    boolean _tripleNotEquals_1 = (_manifest_1 != null);
    if (_tripleNotEquals_1) {
      Set<String> _exportedPackages = this.getProjectConfig().getRuntime().getManifest().getExportedPackages();
      String _packageName = this.getGeneratorStub(this.getLanguage().getGrammar()).getPackageName();
      _exportedPackages.add(_packageName);
    }
  }
  boolean _isGenerateJavaMain = this.isGenerateJavaMain();
  if (_isGenerateJavaMain) {
    this.doGenerateJavaMain();
  }
  boolean _isGenerateXtendMain = this.isGenerateXtendMain();
  if (_isGenerateXtendMain) {
    this.doGenerateXtendMain();
  }
  boolean _isGenerateMwe = this.isGenerateMwe();
  if (_isGenerateMwe) {
    this.doGenerateMweFile();
  }
  this.contributeEclipsePluginGuiceBindings();
  ManifestAccess _manifest_2 = this.getProjectConfig().getEclipsePlugin().getManifest();
  boolean _tripleNotEquals_2 = (_manifest_2 != null);
  if (_tripleNotEquals_2) {
    Set<String> _requiredBundles_1 = this.getProjectConfig().getEclipsePlugin().getManifest().getRequiredBundles();
    _requiredBundles_1.add("org.eclipse.xtext.builder");
  }
  PluginXmlAccess _pluginXml = this.getProjectConfig().getEclipsePlugin().getPluginXml();
  boolean _tripleNotEquals_3 = (_pluginXml != null);
  if (_tripleNotEquals_3) {
    this.contributeEclipsePluginExtensions();
  }
}
项目:xtext-core    文件:AbstractFileAwareTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return FileAwareTestLanguageGenerator.class;
}
项目:xtext-core    文件:AbstractNoJdtTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return NoJdtTestLanguageGenerator.class;
}
项目:xtext-core    文件:IndexTestLanguageRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return IndexTestLanguageGenerator.class;
}
项目:Sparrow    文件:AbstractModelEditorRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return ModelEditorGenerator.class;
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return UsecaseGenerator.class;
}
项目:cs2as    文件:AbstractDDLRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return DDLGenerator.class;
}
项目:cs2as    文件:AbstractDelphiRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return DelphiGenerator.class;
}
项目:cs2as    文件:AbstractMiniOCLRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return MiniOCLGenerator.class;
}
项目:cs2as    文件:AbstractABNFRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return ABNFGenerator.class;
}
项目:cs2as    文件:AbstractASBHLangRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return ASBHLangGenerator.class;
}
项目:cs2as    文件:AbstractMacrosRuntimeModule.java   
public Class<? extends IGenerator2> bindIGenerator2() {
    return MacrosGenerator.class;
}