コード例 #1
0
  /**
   * Prints the sub-nodes of this object. See QueryTreeNode for how tree printing is supposed to
   * work.
   *
   * @param depth The depth of this node in the tree
   */
  public void printSubNodes(int depth) {
    if (SanityManager.DEBUG) {
      super.printSubNodes(depth);

      printLabel(depth, "javaNode: ");
      javaNode.treePrint(depth + 1);
    }
  }
コード例 #2
0
  /**
   * Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed
   * to work.
   *
   * @param depth The depth of this node in the tree
   */
  public void printSubNodes(int depth) {
    super.printSubNodes(depth);

    if (testCondition != null) {
      printLabel(depth, "testCondition: ");
      testCondition.treePrint(depth + 1);
    }

    if (thenElseList != null) {
      printLabel(depth, "thenElseList: ");
      thenElseList.treePrint(depth + 1);
    }
  }
コード例 #3
0
  /**
   * Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed
   * to work.
   *
   * @param depth The depth of this node in the tree
   */
  public void printSubNodes(int depth) {
    super.printSubNodes(depth);

    if (receiver != null) {
      printLabel(depth, "receiver: ");
      receiver.treePrint(depth + 1);
    }

    if (leftOperand != null) {
      printLabel(depth, "leftOperand: ");
      leftOperand.treePrint(depth + 1);
    }

    if (rightOperand != null) {
      printLabel(depth, "rightOperand: ");
      rightOperand.treePrint(depth + 1);
    }
  }