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