Search in sources :

Example 1 with ObjectTypeInfo

use of com.jopdesign.common.type.ObjectTypeInfo in project jop by jop-devel.

the class UsedCodeFinder method getClassInfo.

private ClassInfo getClassInfo(MemberID sig) {
    String className;
    if (sig.isArrayClass()) {
        ArrayTypeInfo at = ArrayTypeInfo.parse(sig.getClassName());
        if (at.getElementType() instanceof ObjectTypeInfo) {
            className = ((ObjectTypeInfo) at.getElementType()).getClassRef().getClassName();
        } else {
            return null;
        }
    } else {
        className = sig.getClassName();
    }
    ClassInfo classInfo = appInfo.getClassInfo(className);
    if (classInfo == null) {
        ignoreClass(className);
    }
    return classInfo;
}
Also used : ObjectTypeInfo(com.jopdesign.common.type.ObjectTypeInfo) ArrayTypeInfo(com.jopdesign.common.type.ArrayTypeInfo) ClassInfo(com.jopdesign.common.ClassInfo)

Aggregations

ClassInfo (com.jopdesign.common.ClassInfo)1 ArrayTypeInfo (com.jopdesign.common.type.ArrayTypeInfo)1 ObjectTypeInfo (com.jopdesign.common.type.ObjectTypeInfo)1