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

java.lang.Object
  extended by org.openstreetmap.josm.actions.search.SearchCompiler.Match
Direct Known Subclasses:
ContextSwitchTemplate.ContextProvider, SearchCompiler.Always, SearchCompiler.Any, SearchCompiler.BinaryMatch, SearchCompiler.BooleanMatch, SearchCompiler.ChangesetId, SearchCompiler.Closed, SearchCompiler.CountRange, SearchCompiler.ExactKeyValue, SearchCompiler.ExactType, SearchCompiler.Id, SearchCompiler.InArea, SearchCompiler.Incomplete, SearchCompiler.KeyValue, SearchCompiler.Modified, SearchCompiler.Never, SearchCompiler.New, SearchCompiler.RoleMatch, SearchCompiler.Selected, SearchCompiler.UnaryMatch, SearchCompiler.Untagged, SearchCompiler.UserMatch, SearchCompiler.Version
Enclosing class:
SearchCompiler

public abstract static class SearchCompiler.Match
extends java.lang.Object

Base class for all search operators.


Constructor Summary
SearchCompiler.Match()
           
 
Method Summary
protected  boolean existsMatch(java.util.Collection<? extends OsmPrimitive> primitives)
          Tests whether one of the primitives matches.
protected  boolean forallMatch(java.util.Collection<? extends OsmPrimitive> primitives)
          Tests whether all primitives match.
abstract  boolean match(OsmPrimitive osm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchCompiler.Match

public SearchCompiler.Match()
Method Detail

match

public abstract boolean match(OsmPrimitive osm)

existsMatch

protected boolean existsMatch(java.util.Collection<? extends OsmPrimitive> primitives)
Tests whether one of the primitives matches.


forallMatch

protected boolean forallMatch(java.util.Collection<? extends OsmPrimitive> primitives)
Tests whether all primitives match.



JOSM