public class TransformLexer extends AbstractLexer
Constructor and Description |
---|
TransformLexer() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAddToMatchWeight() |
LexerBlock |
getBlock() |
Class<? extends MatcherListener> |
getMatcherListenerClass() |
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
LexerMatcher.Priority |
getPriority() |
Class<?> |
getType() |
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 |
setAddToMatchWeight(Integer addToMatchWeight) |
void |
setBlock(LexerBlock block) |
void |
setEnd(LexerMatcher end) |
void |
setMatcherListenerClass(Class<? extends MatcherListener> matcherListenerClass) |
void |
setPriority(LexerMatcher.Priority priority) |
void |
setStart(LexerMatcher start) |
void |
setType(Class<?> type) |
void |
validate(Grammar grammar)
Default implementation does nothing.
|
equals, getDslDoc, getEnd, getId, getListener, getListenerClass, getMatcherAutoCompleteConfiguration, getStart, hashCode, isRoot, isRootOnly, resolveEnd, setDslDoc, setId, setListenerClass, setMatcherAutoCompleteConfiguration, setRoot, setRootOnly, toString
public boolean isOrdered()
public LexerBlock getBlock()
public void setBlock(LexerBlock block)
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 LexerMatcher resolveStart(LexerParser lexerParser) throws DslException
Lexer
resolveStart
in interface Lexer
resolveStart
in class AbstractLexer
DslException
LexerParser.resolveStart()
public void setStart(LexerMatcher start)
setStart
in class AbstractLexer
public void setEnd(LexerMatcher end)
setEnd
in class AbstractLexer
public LexerParser getParser(LexerParser parent) throws DslException
Lexer
parent
- Parent parserDslException
public Class<?> getType()
public void setType(Class<?> type)
public Integer getAddToMatchWeight()
public void setAddToMatchWeight(Integer addToMatchWeight)
public LexerMatcher.Priority getPriority()
public void setPriority(LexerMatcher.Priority priority)
public Class<? extends MatcherListener> getMatcherListenerClass()
public void setMatcherListenerClass(Class<? extends MatcherListener> matcherListenerClass)