public class SubParseLexer extends AbstractLexer
Constructor and Description |
---|
SubParseLexer() |
Modifier and Type | Method and Description |
---|---|
InjectableLexerBlock |
getBlock() |
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
Class<?> |
getType() |
boolean |
isOrdered() |
Class<?> |
resolveType(Grammar grammar)
Resolves the type of the object parsed by this lexer.
|
void |
setBlock(LexerBlock block) |
void |
setType(Class<?> type) |
void |
validate(Grammar grammar)
Default implementation does nothing.
|
equals, getDslDoc, getEnd, getId, getListener, getListenerClass, getMatcherAutoCompleteConfiguration, getStart, hashCode, isRoot, isRootOnly, resolveEnd, resolveStart, setDslDoc, setEnd, setId, setListenerClass, setMatcherAutoCompleteConfiguration, setRoot, setRootOnly, setStart, toString
public boolean isOrdered()
public InjectableLexerBlock getBlock()
public void setBlock(LexerBlock block)
public Class<?> getType()
public void setType(Class<?> type)
public Class<?> resolveType(Grammar grammar) throws DslException
Lexer
DslException
public void validate(Grammar grammar) throws DslException
AbstractLexer
validate
in interface Lexer
validate
in class AbstractLexer
grammar
- Related grammarDslException
public LexerParser getParser(LexerParser parent) throws DslException
Lexer
parent
- Parent parserDslException