Class StringValueParser
- java.lang.Object
-
- com.salesforce.omakase.parser.declaration.StringValueParser
-
- All Implemented Interfaces:
Parser
public final class StringValueParser extends Object implements Parser
Parses aStringValue
.- See Also:
StringValue
-
-
Constructor Summary
Constructors Constructor Description StringValueParser()
-
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)
-
-