public interface Operator extends Verb, Comparable<Operator>
An operator is a special infix (in the case of binary or greater arity) or prefix (in the case of unary) symbol which maps to a particular function.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Operator.Associativity |
| Modifier and Type | Method and Description |
|---|---|
Operator.Associativity |
getAssociativity() |
double |
getPrecedence() |
boolean |
isInfix()
True iff the operator is an infix operator (e.g.,
a-b). |
boolean |
isLeftAssociative() |
boolean |
isPostfix()
True iff the operator is a postfix operator (e.g.,
a'). |
boolean |
isPrefix()
True iff the operator is a prefix operator (e.g.,
-a). |
boolean |
isRightAssociative() |
compareToOperator.Associativity getAssociativity()
boolean isLeftAssociative()
boolean isRightAssociative()
boolean isInfix()
a-b).boolean isPrefix()
-a).boolean isPostfix()
a').double getPrecedence()
Copyright © 2015 SciJava. All rights reserved.