private static class ContextSwitchTemplate.ChildSet extends ContextSwitchTemplate.ContextProvider
Modifier and Type | Field and Description |
---|---|
private SearchCompiler.Match |
parentCondition |
condition
Constructor and Description |
---|
ChildSet(SearchCompiler.Match parentCondition) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
(package private) List<OsmPrimitive> |
getPrimitives(OsmPrimitive root) |
int |
hashCode() |
boolean |
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.
|
match, test, validate
private final SearchCompiler.Match parentCondition
ChildSet(SearchCompiler.Match parentCondition)
public boolean match(OsmPrimitive osm)
SearchCompiler.Match
match
in class SearchCompiler.Match
osm
- the primitive to testList<OsmPrimitive> getPrimitives(OsmPrimitive root)
getPrimitives
in class ContextSwitchTemplate.ContextProvider
public int hashCode()
hashCode
in class ContextSwitchTemplate.ContextProvider
public boolean equals(Object obj)
equals
in class ContextSwitchTemplate.ContextProvider