public class IntegerLexer extends AbstractLexer
Constructor and Description |
---|
IntegerLexer() |
Modifier and Type | Method and Description |
---|---|
protected Number |
convertToNumber(String value) |
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
boolean |
isOrdered() |
Class<?> |
resolveType(Grammar grammar)
Resolves the type of the object parsed by this lexer.
|
equals, getDslDoc, getEnd, getId, getListener, getListenerClass, getMatcherAutoCompleteConfiguration, getStart, hashCode, isRoot, isRootOnly, resolveEnd, resolveStart, setDslDoc, setEnd, setId, setListenerClass, setMatcherAutoCompleteConfiguration, setRoot, setRootOnly, setStart, toString, validate
public boolean isOrdered()
public Class<?> resolveType(Grammar grammar)
Lexer
public LexerParser getParser(LexerParser parent)
Lexer
parent
- Parent parserprotected Number convertToNumber(String value) throws NumberFormatException
NumberFormatException