package com.minres.rdl.converter; import com.google.inject.Inject; import com.minres.rdl.IntegerWithRadix; import com.minres.rdl.converter.IDValueConverter; import com.minres.rdl.converter.NUMValueConverter; import com.minres.rdl.converter.STRValueConverter; import org.eclipse.xtext.common.services.DefaultTerminalConverters; import org.eclipse.xtext.conversion.IValueConverter; import org.eclipse.xtext.conversion.ValueConverter; @SuppressWarnings("all") public class RdlTerminalConverters extends DefaultTerminalConverters { @Inject private NUMValueConverter numValueConverter; @Inject private STRValueConverter stringConverter; @Inject private IDValueConverter idConverter; @ValueConverter(rule = "NUM") public IValueConverter getNumValueConverter() { return this.numValueConverter; } @ValueConverter(rule = "STR") public IValueConverter getStrValueConverter() { return this.stringConverter; } @ValueConverter(rule = "ID") public IValueConverter getIdValueConverter() { return this.idConverter; } }