private static Set < Class < ? > > describeClassTree ( Class < ? > inputClass ) { if ( inputClass == null ) { return Collections . emptySet ( ) ; } // create result collector Set < Class < ? > > classes = Sets . newLinkedHashSet ( ) ; // describe tree describeClassTree ( inputClass , classes ) ; return classes ; }
Given an object return the set of classes that it extends or implements .