protected class OrLexerBlock.OrBlockResolver extends AbstractLexerBlockResolver
Modifier | Constructor and Description |
---|---|
protected |
OrBlockResolver(Grammar grammar) |
Modifier and Type | Method and Description |
---|---|
void |
consume(LexerParser parser)
Indicates that this parser has been consumed.
|
LexerBlock |
getBlock() |
void |
inject(Object target,
LexerParser value)
Method used to inject result.
|
protected List<Lexer> |
internalResolveLexers(Grammar g)
Called to effectively resolve lexers list after unicity and max occur checks have been done.
|
boolean |
isExcluded(Matcher matcher) |
boolean |
isMinConsommationReached() |
computeSafeMode, identify, identify, identifyAndConsume, identifyAndConsume, isHasBeenConsumed, isMaxConsommationReached, resolveLexers
protected OrBlockResolver(Grammar grammar) throws DslException
DslException
protected List<Lexer> internalResolveLexers(Grammar g) throws DslException
AbstractLexerBlockResolver
internalResolveLexers
in class AbstractLexerBlockResolver
DslException
public void consume(LexerParser parser) throws DslException
LexerBlockResolver
consume
in interface LexerBlockResolver
consume
in class AbstractLexerBlockResolver
DslException
public void inject(Object target, LexerParser value) throws UtilsException
LexerBlockResolver
UtilsException
public boolean isExcluded(Matcher matcher) throws DslException
DslException
public boolean isMinConsommationReached()
isMinConsommationReached
in interface LexerBlockResolver
isMinConsommationReached
in class AbstractLexerBlockResolver
public LexerBlock getBlock()