public abstract class Operator<C extends RuntimeContext<C>,N extends Node<C,N>,O extends Operator<C,N,O>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
label |
protected int |
precedence |
| Constructor and Description |
|---|
Operator(int precedence,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
calculate(N node1,
N node2,
C context) |
int |
getPosition() |
boolean |
isPrecedentThan(O operator) |
O |
setPosition(int position) |