org.eclipse.xtext.xbase.conversion
Class XbaseValueConverterService.OtherOperatorsValueConverter

java.lang.Object
  extended by org.eclipse.xtext.conversion.impl.AbstractValueConverter<java.lang.String>
      extended by org.eclipse.xtext.xbase.conversion.XbaseValueConverterService.OtherOperatorsValueConverter
All Implemented Interfaces:
IValueConverter<java.lang.String>
Enclosing class:
XbaseValueConverterService

public static class XbaseValueConverterService.OtherOperatorsValueConverter
extends AbstractValueConverter<java.lang.String>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter
IValueConverter.RuleSpecific
 
Field Summary
 
Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter
NO_OP_CONVERTER
 
Constructor Summary
XbaseValueConverterService.OtherOperatorsValueConverter()
           
 
Method Summary
 java.lang.String toString(java.lang.String value)
          Transforms the given value to a string that is conformant to the expected terminal or data type rule.
 java.lang.String toValue(java.lang.String string, INode node)
          Creates a value from the given input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseValueConverterService.OtherOperatorsValueConverter

public XbaseValueConverterService.OtherOperatorsValueConverter()
Method Detail

toValue

public java.lang.String toValue(java.lang.String string,
                                INode node)
                         throws ValueConverterException
Description copied from interface: IValueConverter

Creates a value from the given input. The input is conformant to a data type or terminal rule.

The given string or node may be null but not both of them.

Parameters:
string - the string that was inferred from the node. Usually the node's text but may be reduced to the parts of the node that are not hidden.
node - the parsed node including hidden parts.
Returns:
the new value or null.
Throws:
ValueConverterException - indicates that the string or node did not fulfil the expected format.

toString

public java.lang.String toString(java.lang.String value)
                          throws ValueConverterException
Description copied from interface: IValueConverter
Transforms the given value to a string that is conformant to the expected terminal or data type rule.

Parameters:
value - the to-be-transformed value
Returns:
a string represenation for that value.
Throws:
ValueConverterException - indicates that the value cannot be converted to a valid string.