Class VilValueConverters

java.lang.Object
org.eclipse.xtext.conversion.impl.AbstractValueConverterService
org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService
de.uni_hildesheim.sse.vil.expressions.values.VilValueConverters
All Implemented Interfaces:
org.eclipse.xtext.conversion.IValueConverterService, org.eclipse.xtext.conversion.IValueConverterService.Introspectable

public class VilValueConverters extends org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService
Factory for the value converters. Typically, one would also define a converter for the STRING terminal, but due to the content nature of the VIL template language, we process this manually.
Author:
Holger Eichelberger
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverterService

    org.eclipse.xtext.conversion.IValueConverterService.Introspectable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.eclipse.xtext.conversion.impl.AbstractIDValueConverter
     
    private net.ssehub.easy.dslCore.values.StringValueConverter
     
    private net.ssehub.easy.dslCore.values.VersionValueConverter
     

    Fields inherited from class org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService

    defaultTerminalConverterFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.xtext.conversion.IValueConverter<String>
    ID()
    Returns the value converter for IDs.
    org.eclipse.xtext.conversion.IValueConverter<String>
    Returns the value converter for numbers.
    org.eclipse.xtext.conversion.IValueConverter<String>
    Returns the value converter for version numbers.

    Methods inherited from class org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService

    getConverter, getConverters, getDefaultTerminalConverterFactory, getGrammar, internalRegisterForClass, isConfigurationMethod, recursiveRegisterForClass, registerEFactoryConverters, setDefaultTerminalConverterFactory, setGrammar, toString, toValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • idValueConverter

      @Inject private org.eclipse.xtext.conversion.impl.AbstractIDValueConverter idValueConverter
    • textValueConverter

      @Inject private net.ssehub.easy.dslCore.values.StringValueConverter textValueConverter
    • versionValueConverter

      @Inject private net.ssehub.easy.dslCore.values.VersionValueConverter versionValueConverter
  • Constructor Details

    • VilValueConverters

      public VilValueConverters()
  • Method Details

    • ID

      public org.eclipse.xtext.conversion.IValueConverter<String> ID()
      Returns the value converter for IDs.
      Returns:
      the value converter for IDs.
    • NUMBER

      public org.eclipse.xtext.conversion.IValueConverter<String> NUMBER()
      Returns the value converter for numbers.
      Returns:
      the value converter for numbers.
    • VERSION

      public org.eclipse.xtext.conversion.IValueConverter<String> VERSION()
      Returns the value converter for version numbers.
      Returns:
      the value converter for version numbers.