org.openstreetmap.josm.actions.search
Class SearchCompiler.CountRange

java.lang.Object
  extended by org.openstreetmap.josm.actions.search.SearchCompiler.Match
      extended by org.openstreetmap.josm.actions.search.SearchCompiler.CountRange
Direct Known Subclasses:
SearchCompiler.AreaSize, SearchCompiler.NodeCountRange, SearchCompiler.TagCountRange, SearchCompiler.TimestampRange
Enclosing class:
SearchCompiler

private abstract static class SearchCompiler.CountRange
extends SearchCompiler.Match

Matches objects with properties in a certain range.


Field Summary
private  long maxCount
           
private  long minCount
           
 
Constructor Summary
SearchCompiler.CountRange(long minCount, long maxCount)
           
SearchCompiler.CountRange(PushbackTokenizer.Range range)
           
 
Method Summary
protected abstract  java.lang.Long getCount(OsmPrimitive osm)
           
protected abstract  java.lang.String getCountString()
           
 boolean match(OsmPrimitive osm)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openstreetmap.josm.actions.search.SearchCompiler.Match
existsMatch, forallMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minCount

private long minCount

maxCount

private long maxCount
Constructor Detail

SearchCompiler.CountRange

public SearchCompiler.CountRange(long minCount,
                                 long maxCount)

SearchCompiler.CountRange

public SearchCompiler.CountRange(PushbackTokenizer.Range range)
Method Detail

getCount

protected abstract java.lang.Long getCount(OsmPrimitive osm)

getCountString

protected abstract java.lang.String getCountString()

match

public boolean match(OsmPrimitive osm)
Specified by:
match in class SearchCompiler.Match

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


JOSM