public static class SearchCompiler.Or extends SearchCompiler.AbstractBinaryMatch
lhs, rhs
Constructor and Description |
---|
Or(SearchCompiler.Match lhs,
SearchCompiler.Match rhs)
Constructs a new
Or match. |
Modifier and Type | Method and Description |
---|---|
boolean |
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.
|
boolean |
match(Tagged osm)
Tests whether the tagged object matches this criterion.
|
java.lang.String |
toString() |
equals, getLhs, getRhs, hashCode, parenthesis
test
public Or(SearchCompiler.Match lhs, SearchCompiler.Match rhs)
Or
match.lhs
- left hand siderhs
- right hand sidepublic boolean match(OsmPrimitive osm)
SearchCompiler.Match
match
in class SearchCompiler.Match
osm
- the primitive to testpublic boolean match(Tagged osm)
SearchCompiler.Match
match
in class SearchCompiler.Match
osm
- the tagged object to testpublic java.lang.String toString()
toString
in class java.lang.Object