static class Condition.PseudoClasses extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Predicate<OsmPrimitive> |
IN_DOWNLOADED_AREA |
Constructor and Description |
---|
PseudoClasses() |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
_new(Environment e)
;new tests whether the object is new. |
(package private) static boolean |
areaStyle(Environment e)
:area-style tests whether the object has an area style. |
(package private) static boolean |
closed(Environment e)
closed tests whether the way is closed or the relation is a closed multipolygon |
(package private) static boolean |
connection(Environment e)
:connection tests whether the object is a connection node. |
(package private) static boolean |
inDownloadedArea(Environment e)
in-downloaded-area tests whether the object is within source area ("downloaded area"). |
(package private) static boolean |
modified(Environment e)
:modified tests whether the object has been modified. |
(package private) static boolean |
righthandtraffic(Environment e)
righthandtraffic checks if there is right-hand traffic at the current location. |
(package private) static boolean |
sameTags(Environment e)
:same-tags tests whether the object has the same tags as its child/parent. |
(package private) static boolean |
tagged(Environment e)
:tagged tests whether the object is tagged. |
(package private) static boolean |
unclosed_multipolygon(Environment e)
unclosed-multipolygon tests whether the object is an unclosed multipolygon. |
(package private) static boolean |
unconnected(Environment e)
unconnected : tests whether the object is a unconnected node. |
private static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA
PseudoClasses()
static boolean closed(Environment e)
closed
tests whether the way is closed or the relation is a closed multipolygone
- MapCSS environmenttrue
if the way is closed or the relation is a closed multipolygonstatic boolean modified(Environment e)
:modified
tests whether the object has been modified.e
- MapCSS environmenttrue
if the object has been modifiedAbstractPrimitive.isModified()
static boolean _new(Environment e)
;new
tests whether the object is new.e
- MapCSS environmenttrue
if the object is newAbstractPrimitive.isNew()
static boolean connection(Environment e)
:connection
tests whether the object is a connection node.e
- MapCSS environmenttrue
if the object is a connection nodeNode.isConnectionNode()
static boolean tagged(Environment e)
:tagged
tests whether the object is tagged.e
- MapCSS environmenttrue
if the object is taggedOsmPrimitive.isTagged()
static boolean sameTags(Environment e)
:same-tags
tests whether the object has the same tags as its child/parent.e
- MapCSS environmenttrue
if the object has the same tags as its child/parentOsmPrimitive.hasSameInterestingTags(OsmPrimitive)
static boolean areaStyle(Environment e)
:area-style
tests whether the object has an area style. This is useful for validators.e
- MapCSS environmenttrue
if the object has an area styleElemStyles.hasAreaElemStyle(OsmPrimitive, boolean)
static boolean unconnected(Environment e)
unconnected
: tests whether the object is a unconnected node.e
- MapCSS environmenttrue
if the object is a unconnected nodestatic boolean righthandtraffic(Environment e)
righthandtraffic
checks if there is right-hand traffic at the current location.e
- MapCSS environmenttrue
if there is right-hand traffic at the current locationExpressionFactory.Functions.is_right_hand_traffic(Environment)
static boolean unclosed_multipolygon(Environment e)
unclosed-multipolygon
tests whether the object is an unclosed multipolygon.e
- MapCSS environmenttrue
if the object is an unclosed multipolygonstatic boolean inDownloadedArea(Environment e)
in-downloaded-area
tests whether the object is within source area ("downloaded area").e
- MapCSS environmenttrue
if the object is within source area ("downloaded area")SearchCompiler.InDataSourceArea