public class BooleanLexer extends AbstractLexer
Constructor and Description |
---|
BooleanLexer() |
Modifier and Type | Method and Description |
---|---|
String |
getFalseValues() |
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
String |
getTrueValues() |
boolean |
isOrdered() |
LexerMatcher |
resolveStart(LexerParser lexerParser)
Resolves the start matcher for this lexer.
|
Class<?> |
resolveType(Grammar grammar)
Resolves the type of the object parsed by this lexer.
|
void |
setFalseValues(String falseValues) |
void |
setTrueValues(String trueValues) |
void |
validate(Grammar grammar)
Default implementation does nothing.
|
equals, getDslDoc, getEnd, getId, getListener, getListenerClass, getMatcherAutoCompleteConfiguration, getStart, hashCode, isRoot, isRootOnly, resolveEnd, setDslDoc, setEnd, setId, setListenerClass, setMatcherAutoCompleteConfiguration, setRoot, setRootOnly, setStart, toString
public boolean isOrdered()
public Class<?> resolveType(Grammar grammar)
Lexer
public LexerMatcher resolveStart(LexerParser lexerParser) throws DslException
Lexer
resolveStart
in interface Lexer
resolveStart
in class AbstractLexer
DslException
LexerParser.resolveStart()
public void setTrueValues(String trueValues)
public void setFalseValues(String falseValues)
public String getTrueValues()
public String getFalseValues()
public void validate(Grammar grammar) throws DslException
AbstractLexer
validate
in interface Lexer
validate
in class AbstractLexer
grammar
- Related grammarDslException
public LexerParser getParser(LexerParser parent)
Lexer
parent
- Parent parser