Package org.scijava.parse
Class Function
- java.lang.Object
-
- org.scijava.parse.Token
-
- org.scijava.parse.Operator
-
- org.scijava.parse.Function
-
- All Implemented Interfaces:
java.lang.Comparable<Operator>
public class Function extends Operator
A function is an implicit binary operator between two "noun" tokens—typically between a variable on the left and a group on the right, in which case the function's precedence is inferred from the group.Examples:
f()
→f (0) <Fn>
f(a)
→f a (1) <Fn>
f(a, b)
→f a b (2) <Fn>
f(g(a))
→f g a (1) <Fn> (1) <Fn>
- Author:
- Curtis Rueden
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.scijava.parse.Operator
Operator.Associativity
-
-
Constructor Summary
Constructors Constructor Description Function(double precedence)
-
Method Summary
-
Methods inherited from class org.scijava.parse.Operator
compareTo, getArity, getAssociativity, getPrecedence, instance, isInfix, isLeftAssociative, isPostfix, isPrefix, isRightAssociative
-
-