示例#1
0
 public void print(java.io.PrintStream out) {
   out.print("(increment");
   for (Expression i : children) {
     out.print(" ");
     i.print(out);
   }
   out.print(")");
 }
示例#2
0
 public void setOperands(Expression op, Expression ignore) {
   children = new Expression[] {op};
   op.setParent(this);
 }
示例#3
0
 public void setOperands(Expression left, Expression right) {
   children[0] = left;
   children[1] = right;
   left.setParent(this);
   right.setParent(this);
 }