public static class XbaseValueConverterService.IntUnderscoreValueConverter extends INTValueConverter
IValueConverter.RuleSpecific
NO_OP_CONVERTER
Constructor and Description |
---|
XbaseValueConverterService.IntUnderscoreValueConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
toValue(java.lang.String string,
INode node)
Creates a value from the given input.
|
assertValidValue, toEscapedString
assertTokens, createTokenContentMismatchException, createTokenTypeMismatchException, getLexer, getLexerProvider, getRule, getRuleName, getRuleName, getTokenDefMap, getTokenDefProvider, getTokenSource, setLexerProvider, setRule, setTokenDefProvider, toString
public XbaseValueConverterService.IntUnderscoreValueConverter()
public java.lang.Integer toValue(java.lang.String string, INode node)
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.
toValue
in interface IValueConverter<java.lang.Integer>
toValue
in class INTValueConverter
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.null
.