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