Class SearchCompiler.WayLength
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.RangeMatch
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.WayLength
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
private static class SearchCompiler.WayLength extends SearchCompiler.RangeMatch
Matches if the length of a way is within the given range
-
-
Constructor Summary
Constructors Constructor Description WayLength(PushbackTokenizer tokenizer)
WayLength(PushbackTokenizer.Range range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Long
getNumber(OsmPrimitive osm)
protected java.lang.String
getString()
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.RangeMatch
equals, hashCode, match, toString
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Constructor Detail
-
WayLength
WayLength(PushbackTokenizer.Range range)
-
WayLength
WayLength(PushbackTokenizer tokenizer) throws SearchParseError
- Throws:
SearchParseError
-
-
Method Detail
-
getNumber
protected java.lang.Long getNumber(OsmPrimitive osm)
- Specified by:
getNumber
in classSearchCompiler.RangeMatch
-
getString
protected java.lang.String getString()
- Specified by:
getString
in classSearchCompiler.RangeMatch
-
-