/* get the depth of the class in the inheritance tree */ public int getDepth(AbstractSymbol clazz) { int depth = 0; CgenNode nd = nodeMap.get(clazz); while (nd.name != TreeConstants.Object_) { nd = nd.getParentNode(); depth++; } return depth; }