protected static void register ( Class < ? > parent , Class < ? > clazz ) { Entry e = data . get ( parent ) ; if ( e == null ) { data . put ( parent , e = new Entry ( ) ) ; } final String cname = clazz . getCanonicalName ( ) ; e . addHit ( cname , clazz ) ; if ( clazz . isAnnotationPresent ( Alias . class ) ) { Alias aliases = clazz . getAnnotation ( Alias . class ) ; for ( String alias : aliases . value ( ) ) { e . addAlias ( alias , cname ) ; } } }
Register a class in the registry .