Class SearchCompiler.And
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.And
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
Matches if both left and right expressions match.
-
Field Summary
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
lhs, rhs -
Constructor Summary
ConstructorsConstructorDescriptionAnd(SearchCompiler.Match lhs, SearchCompiler.Match rhs) Constructs a newAndmatch. -
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
-
And
Constructs a newAndmatch.- 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
-