public static final class ConditionFactory.PseudoClasses extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.function.Predicate<OsmPrimitive> |
IN_DOWNLOADED_AREA |
| Modifier | Constructor and Description |
|---|---|
private |
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 |
anticlockwise(Environment e)
anticlockwise whether the way is closed and oriented anticlockwise,
or non-closed and the 1st, 2nd and last node are in anticlockwise order. |
(package private) static boolean |
areaStyle(Environment e)
:area-style tests whether the object has an area style. |
(package private) static boolean |
clockwise(Environment e)
clockwise whether the way is closed and oriented clockwise,
or non-closed and the 1st, 2nd and last node are in clockwise order. |
(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 |
closed2(Environment e) |
(package private) static boolean |
completely_downloaded(Environment e) |
(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 |
selected(Environment e) |
(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 java.util.function.Predicate<OsmPrimitive> IN_DOWNLOADED_AREA
private 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 modifiedIPrimitive.isModified()static boolean _new(Environment e)
;new tests whether the object is new.e - MapCSS environmenttrue if the object is newPrimitiveId.isNew()static boolean connection(Environment e)
:connection tests whether the object is a connection node.e - MapCSS environmenttrue if the object is a connection nodeINode.isConnectionNode()static boolean tagged(Environment e)
:tagged tests whether the object is tagged.e - MapCSS environmenttrue if the object is taggedIPrimitive.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/parentIPrimitive.hasSameInterestingTags(IPrimitive)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(IPrimitive, 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 locationFunctions.is_right_hand_traffic(Environment)static boolean clockwise(Environment e)
clockwise whether the way is closed and oriented clockwise,
or non-closed and the 1st, 2nd and last node are in clockwise order.e - MapCSS environmenttrue if the way clockwiseFunctions.is_clockwise(Environment)static boolean anticlockwise(Environment e)
anticlockwise whether the way is closed and oriented anticlockwise,
or non-closed and the 1st, 2nd and last node are in anticlockwise order.e - MapCSS environmenttrue if the way clockwiseFunctions.is_anticlockwise(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.InDataSourceAreastatic boolean completely_downloaded(Environment e)
static boolean closed2(Environment e)
static boolean selected(Environment e)