private abstract static class ExprFactory2.BinOp extends java.lang.Object implements Expr
Modifier and Type | Field and Description |
---|---|
private Expr |
l |
private java.lang.String |
opString |
private Expr |
r |
Constructor and Description |
---|
BinOp(Expr l,
java.lang.String opString,
Expr r) |
Modifier and Type | Method and Description |
---|---|
int |
eval() |
protected abstract int |
run(int x,
int y) |
java.lang.String |
toString() |
private final java.lang.String opString