public static class SearchCompiler.ExactKeyValue extends SearchCompiler.TaggedMatch
Modifier and Type | Class and Description |
---|---|
private static class |
SearchCompiler.ExactKeyValue.Mode |
Modifier and Type | Field and Description |
---|---|
private String |
key |
private Pattern |
keyPattern |
private SearchCompiler.ExactKeyValue.Mode |
mode |
private String |
value |
private Pattern |
valuePattern |
Constructor and Description |
---|
ExactKeyValue(boolean regexp,
String key,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Tagged osm)
Tests whether the tagged object matches this criterion.
|
String |
toString() |
match
evaluate, existsMatch, forallMatch
private final Pattern keyPattern
private final Pattern valuePattern
private final SearchCompiler.ExactKeyValue.Mode mode
public ExactKeyValue(boolean regexp, String key, String value) throws SearchCompiler.ParseError
SearchCompiler.ParseError
public boolean match(Tagged osm)
SearchCompiler.Match
match
in class SearchCompiler.TaggedMatch
osm
- the tagged object to test