Beispiel #1
0
 /*
  * @see org.primordion.xholon.base.IXholon#height()
  */
 public int height() {
   int hL = 0;
   int hR = 0;
   if (isExternal()) {
     return 0;
   } else {
     if (hasChildNodes()) {
       hL = firstChild.height();
     }
     if (hasNextSibling()) {
       hR = nextSibling.height();
     }
     return hL > hR ? hL + 1 : hR + 1;
   }
 }