Java Code Examples for com.sun.jdi.ClassType#equals()

The following examples show how to use com.sun.jdi.ClassType#equals() . 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: AWTGrabHandler.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private static boolean isAssignable(ClassType ct1, ClassType ct2) {
    // return ct1.isAssignableFrom(ct2)
    if (ct1.equals(ct2)) {
        return true;
    }
    ClassType cts = ct2.superclass();
    if (cts != null) {
        return isAssignable(ct1, cts);
    } else {
        return false;
    }
}
 
Example 2
Source File: RemoteAWTScreenshot.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private static boolean isInstanceOfClass(ClassType c1, ClassType c2) {
    if (c1.equals(c2)) {
        return true;
    }
    c1 = c1.superclass();
    if (c1 == null) {
        return false;
    }
    return isInstanceOfClass(c1, c2);
}
 
Example 3
Source File: JavaComponentInfo.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected static boolean isInstanceOfClass(ClassType c1, ClassType c2) {
    if (c1.equals(c2)) {
        return true;
    }
    c1 = c1.superclass();
    if (c1 == null) {
        return false;
    }
    return isInstanceOfClass(c1, c2);
}