public void printInferredRelations ( ClassDoc c ) { // check if the source is excluded from inference if ( hidden ( c ) ) return ; Options opt = optionProvider . getOptionsFor ( c ) ; for ( FieldDoc field : c . fields ( false ) ) { if ( hidden ( field ) ) continue ; // skip statics if ( field . isStatic ( ) ) continue ; // skip primitives FieldRelationInfo fri = getFieldRelationInfo ( field ) ; if ( fri == null ) continue ; // check if the destination is excluded from inference if ( hidden ( fri . cd ) ) continue ; // if source and dest are not already linked, add a dependency RelationPattern rp = getClassInfo ( c , true ) . getRelation ( fri . cd . toString ( ) ) ; if ( rp == null ) { String destAdornment = fri . multiple ? "*" : "" ; relation ( opt , opt . inferRelationshipType , c , fri . cd , "" , "" , destAdornment ) ; } } }
Prints associations recovered from the fields of a class . An association is inferred only if another relation between the two classes is not already in the graph .