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:
Predicate<OsmPrimitive>
- Enclosing class:
- ContextSwitchTemplate
-
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
condition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) 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 Details
-
childCondition
-
-
Constructor Details
-
ParentSet
ParentSet(SearchCompiler.Match child)
-
-
Method Details
-
match
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
- Specified by:
getPrimitivesin classContextSwitchTemplate.ContextProvider
-
hashCode
- Overrides:
hashCodein classContextSwitchTemplate.ContextProvider
-
equals
- Overrides:
equalsin classContextSwitchTemplate.ContextProvider
-