Class ContextSwitchTemplate.ParentSet
- 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.ParentSet
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- ContextSwitchTemplate
private static class ContextSwitchTemplate.ParentSet extends ContextSwitchTemplate.ContextProvider
-
-
Field Summary
Fields Modifier and Type Field Description private SearchCompiler.Match
childCondition
-
Fields inherited from class org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
condition
-
-
Constructor Summary
Constructors Constructor Description ParentSet(SearchCompiler.Match child)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
(package private) java.util.List<OsmPrimitive>
getPrimitives(OsmPrimitive root)
int
hashCode()
boolean
match(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
-
childCondition
private final SearchCompiler.Match childCondition
-
-
Constructor Detail
-
ParentSet
ParentSet(SearchCompiler.Match child)
-
-
Method Detail
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.Match
Tests whether the primitive matches this criterion.- Specified by:
match
in 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:
getPrimitives
in classContextSwitchTemplate.ContextProvider
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classContextSwitchTemplate.ContextProvider
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classContextSwitchTemplate.ContextProvider
-
-