public final class MediaQueryListParser extends Object implements Parser
MediaQueryList
.
In the following example:
@
media all and (min-width: 800px), projection and (color) { ... }
The media query list comprises of the content all and (min-width: 800px), projection and (color)
.Constructor and Description |
---|
MediaQueryListParser() |
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. |
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)
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.