|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Op
Interface for an operation in the style expression language.
Operations need have only one operand, use BinaryOp
for
when they definitely have two.
Field Summary | |
---|---|
static char |
AND
|
static char |
CLOSE_PAREN
|
static char |
EQUALS
|
static char |
EXISTS
|
static char |
GT
|
static char |
GTE
|
static char |
LT
|
static char |
LTE
|
static char |
NOT
|
static char |
NOT_EQUALS
|
static char |
NOT_EXISTS
|
static char |
OPEN_PAREN
|
static char |
OR
|
static char |
REGEX
|
static char |
VALUE
|
Method Summary | |
---|---|
boolean |
eval(Element el)
Evaluate the expression. |
Op |
getFirst()
Get the first operand. |
char |
getType()
|
boolean |
hasHigherPriority(Op other)
Does this operation have a higher priority that the other one? |
boolean |
isType(char value)
|
int |
priority()
|
void |
setFirst(Op first)
|
java.lang.String |
value()
Get the value in a 'pure' form, without being quoted in any way. |
Field Detail |
---|
static final char EQUALS
static final char GT
static final char GTE
static final char LT
static final char LTE
static final char NOT_EQUALS
static final char EXISTS
static final char NOT_EXISTS
static final char AND
static final char OR
static final char VALUE
static final char OPEN_PAREN
static final char CLOSE_PAREN
static final char NOT
static final char REGEX
Method Detail |
---|
boolean eval(Element el)
el
- The OSM element to be tested.
boolean hasHigherPriority(Op other)
other
- The other operation.Op getFirst()
void setFirst(Op first)
char getType()
java.lang.String value()
boolean isType(char value)
int priority()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |