public interface ParserFactory
Parser
s.
High-level parsers and refiners can use this to retrieve appropriate parsers for sub units.
Implementations can dictate a highly-customized structure that allows for changes and updates to how parsing of various units is performed.
Custom parser factories will usually extends from BaseTokenFactory
.
Modifier and Type | Method and Description |
---|---|
Parser |
atRuleParser()
Gets the
AtRuleParser . |
Parser |
attributeSelectorParser()
Gets the
AttributeSelectorParser . |
Parser |
classSelectorParser()
Gets the
ClassSelectorParser . |
Parser |
combinatorParser()
Gets the
CombinatorParser . |
Parser |
complexSelectorParser()
Gets the
ComplexSelectorParser . |
Parser |
functionValueParser()
Gets the
FunctionValueParser . |
Parser |
hexColorValueParser()
Gets the
HexColorValueParser . |
Parser |
idSelectorParser()
Gets the
IdSelectorParser . |
Parser |
importantParser()
Gets the parser to parse a "important!" value.
|
Parser |
keyframeRuleParser()
Gets the
KeyframeRuleParser . |
Parser |
keyframeSelectorParser()
Gets the parser to parse a
KeyframeSelector . |
Parser |
keyframeSelectorSequenceParser()
Gets the
KeyframeSelectorSequenceParser . |
Parser |
keywordValueParser()
Gets the
KeywordValueParser . |
Parser |
mediaExpressionParser()
Gets the
MediaQueryExpressionParser . |
Parser |
mediaQueryListParser()
Gets the
MediaQueryListParser . |
Parser |
mediaQueryParser()
Gets the
MediaQueryParser . |
Parser |
numericalValueParser()
Gets the
NumericalValueParser . |
Parser |
operatorParser()
Gets the
OperatorParser . |
Parser |
propertyValueParser()
Gets the
PropertyValueParser . |
Parser |
pseudoSelectorParser()
Gets the
PseudoSelectorParser . |
Parser |
rawDeclarationParser()
Gets the
DeclarationParser . |
Parser |
rawDeclarationSequenceParser()
Gets the
DeclarationSequenceParser . |
Parser |
rawSelectorParser()
Gets the
SelectorParser . |
Parser |
rawSelectorSequenceParser()
Gets the
SelectorSequenceParser . |
Parser |
repeatableSelector()
Gets the parser to parse
SimpleSelector (excluding type and universal selectors) or a PseudoElementSelector . |
Parser |
ruleParser()
Gets the
RuleParser . |
Parser |
statementParser()
Gets a parser to parse a single statement (rule or at-rule).
|
Parser |
stringValueParser()
Gets the
StringValueParser . |
Parser |
stylesheetParser()
Gets the
StylesheetParser . |
Parser |
termParser()
Gets the parser to parse a
Term value. |
Parser |
termSequenceParser()
Gets the
TermSequenceParser . |
Parser |
typeOrUniversaleSelectorParser()
Gets the parser to parse a
TypeSelector or a UniversalSelectorParser . |
Parser |
typeSelectorParser()
Gets the
TypeSelectorParser . |
Parser |
unicodeRangeValueParser()
Gets the
UnicodeRangeValueParser . |
Parser |
universalSelectorParser()
Gets the
UniversalSelectorParser . |
Parser stylesheetParser()
StylesheetParser
.Parser atRuleParser()
AtRuleParser
.Parser ruleParser()
RuleParser
.Parser statementParser()
Parser rawSelectorParser()
SelectorParser
.Parser rawSelectorSequenceParser()
SelectorSequenceParser
.Parser rawDeclarationParser()
DeclarationParser
.Parser rawDeclarationSequenceParser()
DeclarationSequenceParser
.Parser complexSelectorParser()
ComplexSelectorParser
.Parser combinatorParser()
CombinatorParser
.Parser classSelectorParser()
ClassSelectorParser
.Parser idSelectorParser()
IdSelectorParser
.Parser attributeSelectorParser()
AttributeSelectorParser
.Parser typeSelectorParser()
TypeSelectorParser
.Parser universalSelectorParser()
UniversalSelectorParser
.Parser pseudoSelectorParser()
PseudoSelectorParser
.Parser repeatableSelector()
SimpleSelector
(excluding type and universal selectors) or a PseudoElementSelector
.Parser typeOrUniversaleSelectorParser()
TypeSelector
or a UniversalSelectorParser
.Parser numericalValueParser()
NumericalValueParser
.Parser functionValueParser()
FunctionValueParser
.Parser keywordValueParser()
KeywordValueParser
.Parser hexColorValueParser()
HexColorValueParser
.Parser stringValueParser()
StringValueParser
.Parser unicodeRangeValueParser()
UnicodeRangeValueParser
.Parser operatorParser()
OperatorParser
.Parser importantParser()
Parser termParser()
Term
value.
This differs from the other term parsers in that it parses just a single Term
.
Parser termSequenceParser()
TermSequenceParser
.
This differs from the other term parsers in that it parses a list of both Term
s AND Operator
s, but it does
not parse importants or broadcast a PropertyValue
.
Parser propertyValueParser()
PropertyValueParser
.
This differs from the other term parsers in that it parses a list of both Term
s AND Operator
s, plus it
parses importants and broadcasts a PropertyValue
.
Parser mediaQueryListParser()
MediaQueryListParser
.Parser mediaQueryParser()
MediaQueryParser
.Parser mediaExpressionParser()
MediaQueryExpressionParser
.Parser keyframeSelectorParser()
KeyframeSelector
.Parser keyframeSelectorSequenceParser()
KeyframeSelectorSequenceParser
.Parser keyframeRuleParser()
KeyframeRuleParser
.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.