V
- value type produced by the parserP
- parser class@Beta public final class JoinMatcherBootstrap<V,P extends BaseParser<V>> extends Object
JoinMatcher
An instance of this class is created by BaseParser.join(Object)
.
Its two arguments are a BaseParser
instance and the object to use
as a rule which will become the JoinMatcher
's "joining" rule; this
object is converted to a Rule
using BaseParser.toRule(Object)
.
Its using(Object)
method produces a JoinMatcherBuilder
;
the argument to this method (converted to a rule in a similar fashion as the
above) will become the "joined" rule of the produced matcher.
JoinMatcherBuilder
Constructor and Description |
---|
JoinMatcherBootstrap(P parser,
Rule joined) |
Modifier and Type | Method and Description |
---|---|
JoinMatcherBuilder<V> |
using(Object joining)
Define the joining rule
|
JoinMatcherBuilder |
using(Object rule,
Object rule2,
Object... moreRules)
Define the joining rule
|
public JoinMatcherBuilder<V> using(@Nonnull Object joining)
joining
- the ruleJoinMatcherBuilder
BaseParser.toRule(Object)
public JoinMatcherBuilder using(Object rule, Object rule2, Object... moreRules)
Like using(Object)
, except several rules are accepted as
arguments.
rule
- first rulerule2
- second rulemoreRules
- other rulesJoinMatcherBuilder
BaseParser.sequence(Object, Object, Object...)