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

java.lang.Object
  extended by org.eclipse.xtext.conversion.impl.AbstractValueConverter<T>
      extended by org.eclipse.xtext.conversion.impl.AbstractLexerBasedConverter<java.lang.Integer>
          extended by org.eclipse.xtext.conversion.impl.INTValueConverter
              extended by org.eclipse.xtext.xbase.conversion.XbaseValueConverterService.IntUnderscoreValueConverter
All Implemented Interfaces:
IValueConverter<java.lang.Integer>, IValueConverter.RuleSpecific
Enclosing class:
XbaseValueConverterService

public static class XbaseValueConverterService.IntUnderscoreValueConverter
extends INTValueConverter


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.IntUnderscoreValueConverter()
           
 
Method Summary
 java.lang.Integer toValue(java.lang.String string, INode node)
          Creates a value from the given input.
 
Methods inherited from class org.eclipse.xtext.conversion.impl.INTValueConverter
assertValidValue, toEscapedString
 
Methods inherited from class org.eclipse.xtext.conversion.impl.AbstractLexerBasedConverter
assertTokens, createTokenContentMismatchException, createTokenTypeMismatchException, getLexer, getLexerProvider, getRule, getRuleName, getRuleName, getTokenDefMap, getTokenDefProvider, getTokenSource, setLexerProvider, setRule, setTokenDefProvider, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseValueConverterService.IntUnderscoreValueConverter

public XbaseValueConverterService.IntUnderscoreValueConverter()
Method Detail

toValue

public java.lang.Integer toValue(java.lang.String string,
                                 INode node)
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.

Specified by:
toValue in interface IValueConverter<java.lang.Integer>
Overrides:
toValue in class INTValueConverter
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.