Changeset 15985 in josm for trunk/scripts


Ignore:
Timestamp:
2020-03-01T23:36:00+01:00 (5 years ago)
Author:
simon04
Message:

see #18802 - Add Selector.getConditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r15984 r15985  
    5858import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRule;
    5959import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource;
    60 import org.openstreetmap.josm.gui.mappaint.mapcss.Selector;
    6160import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser;
    6261import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException;
     
    343342        private List<TagInfoTag> convertStyleSheet() {
    344343            return styleSource.rules.stream()
    345                     .map(rule -> rule.selector)
    346                     .filter(Selector.GeneralSelector.class::isInstance)
    347                     .map(Selector.GeneralSelector.class::cast)
    348                     .map(Selector.AbstractSelector::getConditions)
    349                     .flatMap(Collection::stream)
     344                    .flatMap(rule -> rule.selector.getConditions().stream())
    350345                    .filter(ConditionFactory.SimpleKeyValueCondition.class::isInstance)
    351346                    .map(ConditionFactory.SimpleKeyValueCondition.class::cast)
Note: See TracChangeset for help on using the changeset viewer.