org.scijava.sjep
Interface Operator

All Superinterfaces:
Comparable<Operator>, Token, Verb
All Known Implementing Classes:
DefaultOperator

public interface Operator
extends Verb, Comparable<Operator>

Interface for mathematical operators.

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.

Author:
Curtis Rueden

Nested Class Summary
static class Operator.Associativity
           
 
Method Summary
 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()
           
 
Methods inherited from interface org.scijava.sjep.Verb
getArity
 
Methods inherited from interface org.scijava.sjep.Token
getToken
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getAssociativity

Operator.Associativity getAssociativity()

isLeftAssociative

boolean isLeftAssociative()

isRightAssociative

boolean isRightAssociative()

isInfix

boolean isInfix()
True iff the operator is an infix operator (e.g., a-b).


isPrefix

boolean isPrefix()
True iff the operator is a prefix operator (e.g., -a).


isPostfix

boolean isPostfix()
True iff the operator is a postfix operator (e.g., a').


getPrecedence

double getPrecedence()


Copyright © 2015 SciJava. All rights reserved.