Class SearchCompiler.Xor
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.Xor
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
Matches if the left OR the right expression match, but not both.
-
Field Summary
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.AbstractBinaryMatch
lhs, rhs -
Constructor Summary
ConstructorsConstructorDescriptionXor(SearchCompiler.Match lhs, SearchCompiler.Match rhs) Constructs a newXormatch. -
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
-
Xor
Constructs a newXormatch.- 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
-