| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv class | Matcher.
Mapper represents a local CSS for a Node that is used to match the Node's children. |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final AttributeResolver | |
| private final Set | |
| private final List | |
| private final Set | |
| private final Map | |
| private final List | |
| private final StylesheetFactory | |
| private final TreeResolver | |
| private final Set | |
| private final Matcher. |
| Access | Constructor and Description |
|---|---|
| public | Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv Matcher. | |
| public CascadedStyle | |
| public String | |
| private Ruleset | |
| public List | |
| private Matcher. | |
| private Ruleset | |
| public PageInfo | |
| public CascadedStyle | |
| public boolean | |
| public boolean | |
| public boolean | |
| private static boolean | |
| public boolean | |
| private void | |
| protected Matcher. |
| _activeElements | back to summary |
|---|---|
| private final Set<Object> _activeElements | |
| _attRes | back to summary |
|---|---|
| private final AttributeResolver _attRes | |
| _focusElements | back to summary |
|---|---|
| private final Set<Object> _focusElements | |
| _fontFaceRules | back to summary |
|---|---|
| private final List<FontFaceRule> _fontFaceRules | |
| _hoverElements | back to summary |
|---|---|
| private final Set<Object> _hoverElements | |
| _map | back to summary |
|---|---|
| private final Map<Object, Matcher. | |
| _pageRules | back to summary |
|---|---|
| private final List<PageRule> _pageRules | |
| _styleFactory | back to summary |
|---|---|
| private final StylesheetFactory _styleFactory | |
| _treeRes | back to summary |
|---|---|
| private final TreeResolver _treeRes | |
| _visitElements | back to summary |
|---|---|
| private final Set<Object> _visitElements | |
| docMapper | back to summary |
|---|---|
| private final Matcher. | |
| Matcher | back to summary |
|---|---|
| public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium) | |
| addAllStylesheets | back to summary |
|---|---|
| private void addAllStylesheets(List<Stylesheet> stylesheets, TreeMap<String, Selector> sorter, String medium) | |
| createDocumentMapper | back to summary |
|---|---|
| pack-priv Matcher. | |
| getCascadedStyle | back to summary |
|---|---|
| public CascadedStyle getCascadedStyle(Object e, boolean restyle) | |
| getCSSForAllDescendants | back to summary |
|---|---|
| public String getCSSForAllDescendants(Object e) Returns CSS rulesets for descendants of e. For example, if e is an svg element and we have the ruleset 'svg rect { .. }' then the string returned will be 'rect { .. }'. FIXME: Does not correctly handle sibling selectors. | |
| getElementStyle | back to summary |
|---|---|
| private Ruleset getElementStyle(Object e) | |
| getFontFaceRules | back to summary |
|---|---|
| public List | |
| getMapper | back to summary |
|---|---|
| private Matcher. | |
| getNonCssStyle | back to summary |
|---|---|
| private Ruleset getNonCssStyle(Object e) | |
| getPageCascadedStyle | back to summary |
|---|---|
| public PageInfo getPageCascadedStyle(String pageName, String pseudoPage) | |
| getPECascadedStyle | back to summary |
|---|---|
| public CascadedStyle getPECascadedStyle(Object e, String pseudoElement) May return null. We assume that restyle has already been done by a getCascadedStyle if necessary. | |
| isActiveStyled | back to summary |
|---|---|
| public boolean isActiveStyled(Object e) | |
| isFocusStyled | back to summary |
|---|---|
| public boolean isFocusStyled(Object e) | |
| isHoverStyled | back to summary |
|---|---|
| public boolean isHoverStyled(Object e) | |
| isNullOrEmpty | back to summary |
|---|---|
| private static boolean isNullOrEmpty(String str) | |
| isVisitedStyled | back to summary |
|---|---|
| public boolean isVisitedStyled(Object e) | |
| link | back to summary |
|---|---|
| private void link(Object e, Matcher. | |
| matchElement | back to summary |
|---|---|
| protected Matcher. | |
| Modifier and Type | Field and Description |
|---|---|
| private final AttributeResolver | |
| private final List | |
| private final List | |
| private final Set | |
| private final TreeResolver |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv String |
| attRes | back to summary |
|---|---|
| private final AttributeResolver attRes | |
| axes | back to summary |
|---|---|
| private final List<Selector> axes | |
| mappedSelectors | back to summary |
|---|---|
| private final List<Selector> mappedSelectors | |
| topSelectors | back to summary |
|---|---|
| private final Set<Selector> topSelectors | |
| treeRes | back to summary |
|---|---|
| private final TreeResolver treeRes | |
| AllDescendantMapper | back to summary |
|---|---|
| pack-priv AllDescendantMapper(List<Selector> axes, AttributeResolver attRes, TreeResolver treeRes) | |
| map | back to summary |
|---|---|
| pack-priv void map(Object e) | |
| toCSS | back to summary |
|---|---|
| pack-priv String toCSS() | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private Map | |
| private final List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CascadedStyle | |
| public CascadedStyle | |
| pack-priv Matcher. |
| axes | back to summary |
|---|---|
| private final List<Selector> axes | |
| children | back to summary |
|---|---|
| private Map<String, Matcher. | |
| mappedSelectors | back to summary |
|---|---|
| private final List<Selector> mappedSelectors | |
| pseudoSelectors | back to summary |
|---|---|
| private final Map<String, List<Selector>> pseudoSelectors | |
| Mapper | back to summary |
|---|---|
| pack-priv Mapper(Collection<Selector> selectors) | |
| Mapper | back to summary |
|---|---|
| private Mapper(List<Selector> axes, List<Selector> mappedSelectors, Map<String, List<Selector>> pseudoSelectors) | |
| getCascadedStyle | back to summary |
|---|---|
| pack-priv CascadedStyle getCascadedStyle(Object e) | |
| getPECascadedStyle | back to summary |
|---|---|
| public CascadedStyle getPECascadedStyle(Object e, String pseudoElement) May return null. We assume that restyle has already been done by a getCascadedStyle if necessary. | |
| mapChild | back to summary |
|---|---|
| pack-priv Matcher. Side effect: creates and stores a Mapper for the element | |