public int getClassDepth ( ) { int depth = 0 ; ClassFile outer = mOuterClass ; while ( outer != null ) { depth ++ ; outer = outer . mOuterClass ; } return depth ; }
Returns a value indicating how deeply nested an inner class is with respect to its outermost enclosing class . For top level classes 0 is returned . For first level inner classes 1 is returned etc .