Class TermSequenceParser
- java.lang.Object
-
- com.salesforce.omakase.parser.declaration.TermSequenceParser
-
- All Implemented Interfaces:
Parser
public final class TermSequenceParser extends Object implements Parser
Parses a sequence of bothTerm
s andOperator
s.This does not parts importants or broadcast a
PropertyValue
.- See Also:
PropertyValueParser
-
-
Constructor Summary
Constructors Constructor Description TermSequenceParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
parse(Source source, Grammar grammar, Broadcaster broadcaster)
Parse from the current position of the given source, notifying the givenBroadcaster
of any applicable events and data.
-
-
-
Method Detail
-
parse
public boolean parse(Source source, Grammar grammar, Broadcaster broadcaster)
Description copied from interface:Parser
Parse from the current position of the given source, notifying the givenBroadcaster
of any applicable events and data.Necessary grammar tokens and other parsers should be retrieved from the provided
Grammar
instance.- Specified by:
parse
in interfaceParser
- Parameters:
source
- The source to parse.grammar
- The grammar.broadcaster
- The broadcaster.- Returns:
- True if we parsed something (excluding whitespace and comments), false otherwise. Note that a return value of true does not indicate that the parsed content was completely valid syntax (unknown for some units until refinement).
- See Also:
#parse(Source, Grammar, Broadcaster, Boolean)
-
-