Ejemplo n.º 1
0
 // Even though this function applies generally to expressions and tables and not just to TVEs as
 // such,
 // this function is somewhat TVE-related because TVEs DO represent the points where expression
 // trees
 // depend on tables.
 public static AbstractExpression getOtherTableExpression(AbstractExpression expr, Table table) {
   assert (expr != null);
   AbstractExpression retval = expr.getLeft();
   if (isOperandDependentOnTable(retval, table)) {
     retval = expr.getRight();
     assert (!isOperandDependentOnTable(retval, table));
   }
   return retval;
 }