1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-06-28 21:56:23 -07:00
Abacus/src/org/nwapw/abacus/tree/OpNode.java

39 lines
747 B
Java
Raw Normal View History

package org.nwapw.abacus.tree;
public class OpNode extends TreeNode {
private String operation;
private TreeNode left;
private TreeNode right;
public OpNode(String operation){
this(operation, null, null);
}
public OpNode(String operation, TreeNode left, TreeNode right){
this.operation = operation;
this.left = left;
this.right = right;
}
public String getOperation() {
return operation;
}
public TreeNode getLeft() {
return left;
}
public void setLeft(TreeNode left) {
this.left = left;
}
public TreeNode getRight() {
return right;
}
public void setRight(TreeNode right) {
this.right = right;
}
}