src/main/java/io/github/classgraph/ClassInfo.java
static void addClassContainment(final List<SimpleEntry<String, String>> classContainmentEntries,
            final Map<String, ClassInfo> classNameToClassInfo) {
        for (final SimpleEntry<String, String> ent : classContainmentEntries) {
            final String innerClassName = ent.getKey();
            final ClassInfo innerClassInfo = ClassInfo.getOrCreateClassInfo(innerClassName,
                    /* classModifiers = */ 0, classNameToClassInfo);
            final String outerClassName = ent.getValue();
            final ClassInfo outerClassInfo = ClassInfo.getOrCreateClassInfo(outerClassName,
                    /* classModifiers = */ 0, classNameToClassInfo);
            innerClassInfo.addRelatedClass(RelType.CONTAINED_WITHIN_OUTER_CLASS, outerClassInfo);
            outerClassInfo.addRelatedClass(RelType.CONTAINS_INNER_CLASS, innerClassInfo);
        }
    }
/**
     * Add class containment info.
     *
     * @param classContainmentEntries
     *            the class containment entries
     * @param classNameToClassInfo
     *            the map from class name to class info
     */
Add class containment info.
@param classContainmentEntries
the class containment entries
@param classNameToClassInfo
the map from class name to class info
Add class containment info . @param classContainmentEntries the class containment entries @param classNameToClassInfo the map from class name to class info
static void addClassContainment(final List<SimpleEntry<String, String>> classContainmentEntries,
            final Map<String, ClassInfo> classNameToClassInfo) {
        for (final SimpleEntry<String, String> ent : classContainmentEntries) {
            final String innerClassName = ent.getKey();
            final ClassInfo innerClassInfo = ClassInfo.getOrCreateClassInfo(innerClassName,
                    /* classModifiers = */ 0, classNameToClassInfo);
            final String outerClassName = ent.getValue();
            final ClassInfo outerClassInfo = ClassInfo.getOrCreateClassInfo(outerClassName,
                    /* classModifiers = */ 0, classNameToClassInfo);
            innerClassInfo.addRelatedClass(RelType.CONTAINED_WITHIN_OUTER_CLASS, outerClassInfo);
            outerClassInfo.addRelatedClass(RelType.CONTAINS_INNER_CLASS, innerClassInfo);
        }
    }
static void addClassContainment ( final List < SimpleEntry < String , String > > classContainmentEntries , final Map < String , ClassInfo > classNameToClassInfo ) { for ( final SimpleEntry < String , String > ent : classContainmentEntries ) { final String innerClassName = ent . getKey ( ) ; final ClassInfo innerClassInfo = ClassInfo . getOrCreateClassInfo ( innerClassName , /* classModifiers = */ 0 , classNameToClassInfo ) ; final String outerClassName = ent . getValue ( ) ; final ClassInfo outerClassInfo = ClassInfo . getOrCreateClassInfo ( outerClassName , /* classModifiers = */ 0 , classNameToClassInfo ) ; innerClassInfo . addRelatedClass ( RelType . CONTAINED_WITHIN_OUTER_CLASS , outerClassInfo ) ; outerClassInfo . addRelatedClass ( RelType . CONTAINS_INNER_CLASS , innerClassInfo ) ; } }
Add class containment info.
Add class containment info .