public static class SearchCompiler.And extends SearchCompiler.AbstractBinaryMatch
lhs, rhs
Constructor and Description |
---|
And(SearchCompiler.Match lhs,
SearchCompiler.Match rhs)
Constructs a new
And 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 And(SearchCompiler.Match lhs, SearchCompiler.Match rhs)
And
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