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


Java IGenerator2类代码示例

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


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

示例1: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return PkmntcgoGenerator.class;
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:4,代码来源:AbstractPkmntcgoRuntimeModule.java

示例2: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return RegularExpressionGenerator.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractRegularExpressionRuntimeModule.java

示例3: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return MyDslGenerator.class;
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:4,代码来源:AbstractMyDslRuntimeModule.java

示例4: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return BromiumGenerator.class;
}
 
开发者ID:hristo-vrigazov,项目名称:bromium,代码行数:4,代码来源:AbstractBromiumRuntimeModule.java

示例5: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return LcDslGenerator.class;
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:4,代码来源:AbstractLcDslRuntimeModule.java

示例6: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return DslGenerator.class;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:4,代码来源:AbstractDslRuntimeModule.java

示例7: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return RestauranteGenerator.class;
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:4,代码来源:AbstractRestauranteRuntimeModule.java

示例8: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return OCCIGenerator.class;
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:4,代码来源:AbstractOCCIRuntimeModule.java

示例9: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return MinitlGenerator.class;
}
 
开发者ID:tetrabox,项目名称:minitl,代码行数:4,代码来源:AbstractMinitlRuntimeModule.java

示例10: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return PartialContentAssistTestLanguageGenerator.class;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:AbstractPartialContentAssistTestLanguageRuntimeModule.java

示例11: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return PartialSerializationTestLanguageGenerator.class;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:AbstractPartialSerializationTestLanguageRuntimeModule.java

示例12: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return IndentationAwareUiTestLanguageGenerator.class;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:AbstractIndentationAwareUiTestLanguageRuntimeModule.java

示例13: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return TestLanguageGenerator.class;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:AbstractTestLanguageRuntimeModule.java

示例14: generate

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
@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();
  }
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:56,代码来源:GeneratorFragment2.java

示例15: bindIGenerator2

import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
	return FileAwareTestLanguageGenerator.class;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:AbstractFileAwareTestLanguageRuntimeModule.java


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