public class ObjectLexer extends AbstractLexer
Modifier and Type | Class and Description |
---|---|
static class |
ObjectLexer.DefaultObjectLexerListener
Empty convenience implementation.
|
static interface |
ObjectLexer.ObjectLexerListener
Allows hooks on a parsing action of this lexer.
|
protected class |
ObjectLexer.ObjectLexerParser
Parser for the ObjectLexer.
|
Constructor and Description |
---|
ObjectLexer() |
Modifier and Type | Method and Description |
---|---|
List<LexerBlock> |
getBlocks() |
Class<? extends ObjectLexer.ObjectLexerListener> |
getObjectLexerListenerClass() |
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.
|
void |
setBlocks(List<LexerBlock> blocks) |
void |
setObjectLexerListenerClass(Class<? extends ObjectLexer.ObjectLexerListener> objectLexerListenerClass) |
void |
setOrdered(boolean ordered) |
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 void setOrdered(boolean ordered)
public Class<?> resolveType(Grammar grammar)
Lexer
public void setType(Class<?> type)
public List<LexerBlock> getBlocks()
public void setBlocks(List<LexerBlock> blocks)
public Class<? extends ObjectLexer.ObjectLexerListener> getObjectLexerListenerClass()
public void setObjectLexerListenerClass(Class<? extends ObjectLexer.ObjectLexerListener> objectLexerListenerClass)
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