Class SearchCompiler.Not
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Not
-
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
public static class SearchCompiler.Not extends SearchCompiler.UnaryMatch
Inverts the match.
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
match
-
-
Constructor Summary
Constructors Constructor Description Not(SearchCompiler.Match match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchCompiler.Match
getMatch()
boolean
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.boolean
match(Tagged osm)
Tests whether the tagged object matches this criterion.String
toString()
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.UnaryMatch
equals, getOperand, hashCode
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
-
-
-
Constructor Detail
-
Not
public Not(SearchCompiler.Match match)
-
-
Method Detail
-
match
public 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
-
match
public boolean match(Tagged osm)
Description copied from class:SearchCompiler.Match
Tests whether the tagged object matches this criterion.- Overrides:
match
in classSearchCompiler.Match
- Parameters:
osm
- the tagged object to test- Returns:
- true if the tagged object matches this criterion
-
getMatch
public SearchCompiler.Match getMatch()
-
-