Class SearchCompiler.Child
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Child
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.Child extends SearchCompiler.UnaryMatch
Matches objects if they are children of the expression
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
match
-
-
Constructor Summary
Constructors Constructor Description Child(SearchCompiler.Match m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.java.lang.String
toString()
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
equals, getOperand, hashCode
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Constructor Detail
-
Child
public Child(SearchCompiler.Match m)
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-