Class SearchCompiler.TaggedMatch
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.TaggedMatch
-
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Direct Known Subclasses:
SearchCompiler.Always
,SearchCompiler.Any
,SearchCompiler.BooleanMatch
,SearchCompiler.ExactKeyValue
,SearchCompiler.KeyValue
,SearchCompiler.Never
,SearchCompiler.ValueComparison
- Enclosing class:
- SearchCompiler
public abstract static class SearchCompiler.TaggedMatch extends SearchCompiler.Match
-
-
Constructor Summary
Constructors Constructor Description TaggedMatch()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static Pattern
compilePattern(String regex, int flags)
boolean
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.abstract boolean
match(Tagged tags)
Tests whether the tagged object matches this criterion.-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
-
-
-
Constructor Detail
-
TaggedMatch
public TaggedMatch()
-
-
Method Detail
-
match
public abstract boolean match(Tagged tags)
Description copied from class:SearchCompiler.Match
Tests whether the tagged object matches this criterion.- Overrides:
match
in classSearchCompiler.Match
- Parameters:
tags
- the tagged object to test- Returns:
- true if the tagged object matches this criterion
-
match
public final boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.Match
Tests whether the primitive matches this criterion.- Specified by:
match
in classSearchCompiler.Match
- Parameters:
osm
- the primitive to test- Returns:
- true if the primitive matches this criterion
-
compilePattern
protected static Pattern compilePattern(String regex, int flags) throws SearchParseError
- Throws:
SearchParseError
-
-