Package | Description |
---|---|
com.salesforce.omakase.ast |
Contains general AST (Abstract Syntax Tree) units, such as Rule and top-level AST interfaces, such as Syntax, Commentable and
Refinable.
|
com.salesforce.omakase.ast.selector |
Contains selector AST members.
|
com.salesforce.omakase.plugin |
Interfaces for plugging new features into the parsing process (rework, validation, etc...).
|
com.salesforce.omakase.plugin.syntax |
Plugins related to standard syntax refinement parsing.
|
com.salesforce.omakase.util |
Utilities and helpers.
|
Modifier and Type | Method and Description |
---|---|
SyntaxCollection<Rule,Selector> |
Rule.selectors()
Gets the collection of selectors for this
Rule . |
Modifier and Type | Method and Description |
---|---|
Selector |
Selector.append(SelectorPart newPart)
Appends the given part to this
Selector . |
Selector |
Selector.appendAll(Iterable<SelectorPart> newParts)
Appends all of the given parts to this
Selector . |
Selector |
Selector.copy() |
Selector |
SelectorPart.parent()
Gets the parent
Selector instance. |
protected Selector |
Selector.self() |
Modifier and Type | Method and Description |
---|---|
SyntaxCollection<Selector,SelectorPart> |
Selector.parts()
Gets the individual parts of the selector.
|
Modifier and Type | Method and Description |
---|---|
void |
BasePlugin.selector(Selector selector)
|
Modifier and Type | Method and Description |
---|---|
static void |
SelectorPlugin.delegateRefinement(Selector selector,
Grammar grammar,
Broadcaster broadcaster)
A convenience method to delegate refinement of a
Selector to this class. |
void |
SelectorPlugin.refine(Selector selector,
Grammar grammar,
Broadcaster broadcaster)
Refines the given
Selector . |
Modifier and Type | Method and Description |
---|---|
static <T extends SelectorPart> |
Selectors.filter(Class<T> klass,
Selector selector)
Filters the selector parts in the given
Selector to only the ones of the given class type. |
static Optional<ClassSelector> |
Selectors.findClassSelector(Selector selector,
String name)
Checks the given
Selector for a ClassSelector that matches the given name. |
static Optional<IdSelector> |
Selectors.findIdSelector(Selector selector,
String name)
Checks the given
Selector for the first IdSelector that matches the given name. |
static Optional<PseudoClassSelector> |
Selectors.findPseudoClassSelector(Selector selector,
String name,
boolean exact)
Checks the given
Selector for the first PseudoClassSelector that matches the given name. |
static Optional<PseudoElementSelector> |
Selectors.findPseudoElementSelector(Selector selector,
String name,
boolean exact)
Checks the given
Selector for the first PseudoElementSelector that matches the given name. |
static Optional<TypeSelector> |
Selectors.findTypeSelector(Selector selector,
String name)
Checks the given
Selector for the first TypeSelector that matches the given name. |
static boolean |
Selectors.hasClassSelector(Selector selector,
String name)
Checks the given parts for a
ClassSelector that matches the given name. |
static boolean |
Selectors.hasIdSelector(Selector selector,
String name)
Checks the given parts for a
IdSelector that matches the given name. |
static boolean |
Selectors.hasPseudoClassSelector(Selector selector,
String name,
boolean exact)
Checks the given parts for a
PseudoClassSelector that matches the given name. |
static boolean |
Selectors.hasPseudoElementSelector(Selector selector,
String name,
boolean exact)
Checks the given parts for a
PseudoElementSelector that matches the given name. |
static boolean |
Selectors.hasTypeSelector(Selector selector,
String name)
Checks the given parts for a
TypeSelector that matches the given name. |
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.