private void allRelation ( Options opt , RelationType rt , ClassDoc from ) { String tagname = rt . lower ; for ( Tag tag : from . tags ( tagname ) ) { String t [ ] = tokenize ( tag . text ( ) ) ; // l-src label l-dst target t = t . length == 1 ? new String [ ] { "-" , "-" , "-" , t [ 0 ] } : t ; // Shorthand if ( t . length != 4 ) { System . err . println ( "Error in " + from + "\n" + tagname + " expects four fields (l-src label l-dst target): " + tag . text ( ) ) ; return ; } ClassDoc to = from . findClass ( t [ 3 ] ) ; if ( to != null ) { if ( hidden ( to ) ) continue ; relation ( opt , rt , from , to , t [ 0 ] , t [ 1 ] , t [ 2 ] ) ; } else { if ( hidden ( t [ 3 ] ) ) continue ; relation ( opt , rt , from , from . toString ( ) , to , t [ 3 ] , t [ 0 ] , t [ 1 ] , t [ 2 ] ) ; } } }
Print all relations for a given s class s tag