本文整理汇总了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;
}
示例2: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return RegularExpressionGenerator.class;
}
示例3: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return MyDslGenerator.class;
}
示例4: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return BromiumGenerator.class;
}
示例5: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return LcDslGenerator.class;
}
示例6: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return DslGenerator.class;
}
示例7: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return RestauranteGenerator.class;
}
示例8: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return OCCIGenerator.class;
}
示例9: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return MinitlGenerator.class;
}
示例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;
}
示例13: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return TestLanguageGenerator.class;
}
示例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();
}
}
示例15: bindIGenerator2
import org.eclipse.xtext.generator.IGenerator2; //导入依赖的package包/类
public Class<? extends IGenerator2> bindIGenerator2() {
return FileAwareTestLanguageGenerator.class;
}