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:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.Or extends SearchCompiler.AbstractBinaryMatch
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
Constructors Constructor Description Or(SearchCompiler.Match lhs, SearchCompiler.Match rhs)Constructs a newOrmatch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.booleanmatch(Tagged osm)Tests whether the tagged object matches this criterion.java.lang.StringtoString()-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
equals, getLhs, getRhs, hashCode, map, parenthesis
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
-
-
-
Constructor Detail
-
Or
public Or(SearchCompiler.Match lhs, SearchCompiler.Match rhs)
Constructs a newOrmatch.- Parameters:
lhs- left hand siderhs- right hand side
-
-
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
-
match
public boolean match(Tagged osm)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-