org.eclipse.xtext.common.AbstractTerminalsRuntimeModule Maven / Gradle / Ivy
/*
* generated by Xtext
*/
package org.eclipse.xtext.common;
import java.util.Properties;
import org.eclipse.xtext.Constants;
import org.eclipse.xtext.service.DefaultRuntimeModule;
import com.google.inject.Binder;
import com.google.inject.name.Names;
/**
* Manual modifications go to {org.eclipse.xtext.common.TerminalsRuntimeModule}
*/
@SuppressWarnings("all")
public abstract class AbstractTerminalsRuntimeModule extends DefaultRuntimeModule {
protected Properties properties = null;
@Override
public void configure(Binder binder) {
properties = tryBindProperties(binder, "org/eclipse/xtext/common/Terminals.properties");
super.configure(binder);
}
public void configureLanguageName(Binder binder) {
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.common.Terminals");
}
public void configureFileExtensions(Binder binder) {
if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("terminals");
}
// contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
public Class extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
return org.eclipse.xtext.common.services.TerminalsGrammarAccess.class;
}
// contributed by org.eclipse.xtext.generator.parseTreeConstructor.ParseTreeConstructorFragment
public Class extends org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor> bindIParseTreeConstructor() {
return org.eclipse.xtext.common.parseTreeConstruction.TerminalsParsetreeConstructor.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy