|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.osmstyle.eval.AbstractOp
uk.me.parabola.mkgmap.osmstyle.eval.ExistsOp
public class ExistsOp
Tests for the existence of a tag. Return true if the tag exists, regardless of value.
Field Summary |
---|
Fields inherited from class uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp |
---|
first |
Fields inherited from interface uk.me.parabola.mkgmap.osmstyle.eval.Op |
---|
AND, CLOSE_PAREN, EQUALS, EXISTS, GT, GTE, LT, LTE, NOT, NOT_EQUALS, NOT_EXISTS, OPEN_PAREN, OR, REGEX, VALUE |
Constructor Summary | |
---|---|
ExistsOp()
|
Method Summary | |
---|---|
boolean |
eval(Element el)
Evaluate the expression. |
int |
priority()
|
void |
setFirst(Op first)
|
java.lang.String |
toString()
|
Methods inherited from class uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp |
---|
createOp, getFirst, getType, hasHigherPriority, isType, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExistsOp()
Method Detail |
---|
public void setFirst(Op first)
setFirst
in interface Op
setFirst
in class AbstractOp
public boolean eval(Element el)
Op
el
- The OSM element to be tested.
public int priority()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |