Constructor and Description |
---|
CombinationParser(Parser... parsers)
Creates a new instance using the given
Parser s, in order. |
Modifier and Type | Method and Description |
---|---|
boolean |
parse(Source source,
Grammar grammar,
Broadcaster broadcaster)
Parse from the current position of the given source, notifying the given
Broadcaster of any applicable events and
data. |
boolean |
parse(Source source,
Grammar grammar,
Broadcaster broadcaster,
boolean parentIsConditional)
Parse from the current position of the given source, notifying the given
Broadcaster of any applicable events and
data. |
public boolean parse(Source source, Grammar grammar, Broadcaster broadcaster)
Parser
Broadcaster
of any applicable events and
data.
Necessary grammar tokens and other parsers should be retrieved from the provided Grammar
instance.
parse
in interface Parser
source
- The source to parse.grammar
- The grammar.broadcaster
- The broadcaster.#parse(Source, Grammar, Broadcaster, Boolean)
public boolean parse(Source source, Grammar grammar, Broadcaster broadcaster, boolean parentIsConditional)
Parser
Broadcaster
of any applicable events and
data.
Necessary grammar tokens and other parsers should be retrieved from the provided Grammar
instance.
parse
in interface Parser
source
- The source to parse.grammar
- The grammar.broadcaster
- The broadcaster.parentIsConditional
- Indicates that the parent rule is a conditional rule.Parser.parse(Source, Grammar, Broadcaster)
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.