Class SearchCompiler.Or
java.lang.Object
org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
org.openstreetmap.josm.data.osm.search.SearchCompiler.Or
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
Matches if the left OR the right expression match.
-
Field Summary
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
lhs, rhs -
Constructor Summary
ConstructorsConstructorDescriptionOr(SearchCompiler.Match lhs, SearchCompiler.Match rhs) Constructs a newOrmatch. -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
equals, getLhs, getRhs, hashCode, map, parenthesisMethods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
Constructor Details
-
Or
Constructs a newOrmatch.- Parameters:
lhs- left hand siderhs- right hand side
-
-
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
-
match
Description copied from class:SearchCompiler.MatchTests whether the tagged object matches this criterion.- Overrides:
matchin classSearchCompiler.Match- Parameters:
osm- the tagged object to test- Returns:
- true if the tagged object matches this criterion
-
toString
-