Ejemplo n.º 1
0
  /**
   * Adds the provided node as the second argument of an AND clause to this node.
   *
   * @param node Node to 'AND' with.
   * @return New top AND node, new root.
   * @throws Exception
   */
  public ConditionsTreeNode and(ConditionsTreeNode node) throws Exception {
    mLeafSet.addAll(node.getLeafSet());

    if (mConditions == null) {
      mConditions = node;
      return node;
    }

    mConditions = mConditions.and(node);
    return mConditions;
  }