public class RegexLexer extends AbstractLexer
Constructor and Description |
---|
RegexLexer() |
Modifier and Type | Method and Description |
---|---|
Class<AdditionalValidator<String>> |
getAdditionalValidator() |
InjectableLexerBlock |
getBlock() |
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
String |
getRegex() |
boolean |
isOrdered() |
Class<?> |
resolveType(Grammar grammar)
Resolves the type of the object parsed by this lexer.
|
void |
setAdditionalValidator(Class<AdditionalValidator<String>> additionalValidator) |
void |
setBlock(LexerBlock block) |
void |
setRegex(String regexp) |
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 String getRegex()
public void setRegex(String regexp)
public InjectableLexerBlock getBlock()
public void setBlock(LexerBlock block)
public Class<AdditionalValidator<String>> getAdditionalValidator()
public void setAdditionalValidator(Class<AdditionalValidator<String>> additionalValidator) throws UtilsException
UtilsException
public Class<?> resolveType(Grammar grammar) throws DslException
Lexer
DslException
public LexerParser getParser(LexerParser parent) throws DslException
Lexer
parent
- Parent parserDslException