org.jf.dexlib2.analysis.UnresolvedClassException Java Examples

The following examples show how to use org.jf.dexlib2.analysis.UnresolvedClassException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TypeProtoUtils.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable
public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
    try {
        String next = type.getSuperclass();
        if (next != null) {
            return type.getClassPath().getClass(next);
        } else {
            return null;
        }
    } catch (UnresolvedClassException ex) {
        return type.getClassPath().getUnknownClass();
    }
}
 
Example #2
Source File: TypeProtoUtils.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
@Nullable
public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
    try {
        String next = type.getSuperclass();
        if (next != null) {
            return type.getClassPath().getClass(next);
        } else {
            return null;
        }
    } catch (UnresolvedClassException ex) {
        return type.getClassPath().getUnknownClass();
    }
}
 
Example #3
Source File: TypeProtoUtils.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
@Nullable
public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
    try {
        String next = type.getSuperclass();
        if (next != null) {
            return type.getClassPath().getClass(next);
        } else {
            return null;
        }
    } catch (UnresolvedClassException ex) {
        return type.getClassPath().getUnknownClass();
    }
}
 
Example #4
Source File: TypeProtoUtils.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable
public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
    try {
        String next = type.getSuperclass();
        if (next != null) {
            return type.getClassPath().getClass(next);
        } else {
            return null;
        }
    } catch (UnresolvedClassException ex) {
        return type.getClassPath().getUnknownClass();
    }
}