コード例 #1
0
  /** Make the given child the new parent. */
  public void enterChild(int index) {
    currentChild = currentParent.getChild();
    while ((currentChild != null) && (index != 0)) {
      index--;
      currentChild = currentChild.getSibling();
    }

    if (currentChild != null) {
      currentParent = currentChild;
      currentChild = currentParent.getChild();
    }
  }
コード例 #2
0
 /** Make the current parent's parent the new parent. */
 public void enterParent() {
   if (currentParent.getParent() != null) {
     currentParent = currentParent.getParent();
   }
   currentChild = currentParent.getChild();
 }
コード例 #3
0
 public void first() {
   currentChild = currentParent.getChild();
 }
コード例 #4
0
 CProfileIterator(CProfileNode start) {
   currentParent = start;
   currentChild = currentParent.getChild();
 }