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() |
matchevaluate, existsMatch, forallMatchprivate 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.ParseErrorpublic boolean match(Tagged osm)
SearchCompiler.Matchmatch in class SearchCompiler.TaggedMatchosm - the tagged object to test