1 22 23 package org.xquark.extractor.algebra; 24 25 26 public abstract class BinaryAtomicOp extends BinaryOperator { 27 28 private static final String RCSRevision = "$Revision: 1.4 $"; 29 private static final String RCSName = "$Name: $"; 30 31 32 public BinaryAtomicOp() { 33 } 34 35 public BinaryAtomicOp(Expression leftOperand, Expression rightOperand) 36 { 37 super(leftOperand, rightOperand); 38 } 39 40 public boolean replaceChild(Expression oldChild, Expression newChild) 41 { 42 44 boolean retVal = false; 45 if (getLeftOperand() == oldChild) { 46 setLeftOperand(newChild); 47 retVal = true; 48 } 49 else if (getRightOperand()== oldChild) { 50 setRightOperand(newChild); 51 retVal = true; 52 } 53 54 return retVal; 56 } 57 } 58 | Popular Tags |