Class ContextSwitchTemplate.ChildSet
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
-
- org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ChildSet
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- ContextSwitchTemplate
private static class ContextSwitchTemplate.ChildSet extends ContextSwitchTemplate.ContextProvider
-
-
Field Summary
Fields Modifier and Type Field Description private SearchCompiler.MatchparentCondition-
Fields inherited from class org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
condition
-
-
Constructor Summary
Constructors Constructor Description ChildSet(SearchCompiler.Match parentCondition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)(package private) java.util.List<OsmPrimitive>getPrimitives(OsmPrimitive root)inthashCode()booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Field Detail
-
parentCondition
private final SearchCompiler.Match parentCondition
-
-
Constructor Detail
-
ChildSet
ChildSet(SearchCompiler.Match parentCondition)
-
-
Method Detail
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.MatchTests whether the primitive matches this criterion.- Specified by:
matchin classSearchCompiler.Match- Parameters:
osm- the primitive to test- Returns:
- true if the primitive matches this criterion
-
getPrimitives
java.util.List<OsmPrimitive> getPrimitives(OsmPrimitive root)
- Specified by:
getPrimitivesin classContextSwitchTemplate.ContextProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein classContextSwitchTemplate.ContextProvider
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classContextSwitchTemplate.ContextProvider
-
-