public class INTValueConverter extends AbstractLexerBasedConverter<Integer>
IValueConverter.RuleSpecificNO_OP_CONVERTER| Constructor and Description |
|---|
INTValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertValidValue(Integer value) |
protected String |
toEscapedString(Integer value) |
Integer |
toValue(String string,
INode node)
Creates a value from the given input.
|
assertTokens, assertTokens, createTokenContentMismatchException, createTokenTypeMismatchException, getLexer, getLexerProvider, getRule, getRuleName, getRuleName, getTokenDefMap, getTokenDefProvider, getTokenSource, setLexerProvider, setRule, setTokenDefProvider, toStringprotected String toEscapedString(Integer value)
toEscapedString in class AbstractLexerBasedConverter<Integer>protected void assertValidValue(Integer value)
assertValidValue in class AbstractLexerBasedConverter<Integer>public Integer toValue(String string, INode node)
IValueConverterCreates 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.
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.Copyright © 2015. All Rights Reserved.