Modifier and Type | Field and Description |
---|---|
private int |
v |
Constructor and Description |
---|
Const(int v) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
acceptBreadth(BreadthIterator i) |
(package private) java.lang.Object |
acceptPostOrder(PostorderIterator i) |
(package private) java.lang.Object |
acceptPreOrder(PreorderIterator i) |
int |
evaluate() |
breadthIterator, postorderIterator, preorderIterator
private final int v
public Const(int v)
public int evaluate()
java.lang.Object acceptPreOrder(PreorderIterator i)
acceptPreOrder
in class AbsExpr
java.lang.Object acceptPostOrder(PostorderIterator i)
acceptPostOrder
in class AbsExpr
java.lang.Object acceptBreadth(BreadthIterator i)
acceptBreadth
in class AbsExpr