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

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

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