Java Code Examples for com.android.dx.rop.cst.CstType#OBJECT

The following examples show how to use com.android.dx.rop.cst.CstType#OBJECT . 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: ByteCatchList.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Helper method for {@link #listFor}, which tells whether a match
 * is <i>not</i> found for the exception type of the given item in
 * the given array. A match is considered to be either an exact type
 * match or the class {@code Object} which represents a catch-all.
 *
 * @param item {@code non-null;} item with the exception type to look for
 * @param arr {@code non-null;} array to search in
 * @param count {@code non-null;} maximum number of elements in the array to check
 * @return {@code true} iff the exception type is <i>not</i> found
 */
private static boolean typeNotFound(Item item, Item[] arr, int count) {
    CstType type = item.getExceptionClass();

    for (int i = 0; i < count; i++) {
        CstType one = arr[i].getExceptionClass();
        if ((one == type) || (one == CstType.OBJECT)) {
            return false;
        }
    }

    return true;
}
 
Example 2
Source File: ByteCatchList.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Helper method for {@link #listFor}, which tells whether a match
 * is <i>not</i> found for the exception type of the given item in
 * the given array. A match is considered to be either an exact type
 * match or the class {@code Object} which represents a catch-all.
 *
 * @param item {@code non-null;} item with the exception type to look for
 * @param arr {@code non-null;} array to search in
 * @param count {@code non-null;} maximum number of elements in the array to check
 * @return {@code true} iff the exception type is <i>not</i> found
 */
private static boolean typeNotFound(Item item, Item[] arr, int count) {
    CstType type = item.getExceptionClass();

    for (int i = 0; i < count; i++) {
        CstType one = arr[i].getExceptionClass();
        if ((one == type) || (one == CstType.OBJECT)) {
            return false;
        }
    }

    return true;
}
 
Example 3
Source File: ByteCatchList.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Helper method for {@link #listFor}, which tells whether a match
 * is <i>not</i> found for the exception type of the given item in
 * the given array. A match is considered to be either an exact type
 * match or the class {@code Object} which represents a catch-all.
 *
 * @param item {@code non-null;} item with the exception type to look for
 * @param arr {@code non-null;} array to search in
 * @param count {@code non-null;} maximum number of elements in the array to check
 * @return {@code true} iff the exception type is <i>not</i> found
 */
private static boolean typeNotFound(Item item, Item[] arr, int count) {
    CstType type = item.getExceptionClass();

    for (int i = 0; i < count; i++) {
        CstType one = arr[i].getExceptionClass();
        if ((one == type) || (one == CstType.OBJECT)) {
            return false;
        }
    }

    return true;
}
 
Example 4
Source File: ByteCatchList.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Helper method for {@link #listFor}, which tells whether a match
 * is <i>not</i> found for the exception type of the given item in
 * the given array. A match is considered to be either an exact type
 * match or the class {@code Object} which represents a catch-all.
 *
 * @param item {@code non-null;} item with the exception type to look for
 * @param arr {@code non-null;} array to search in
 * @param count {@code non-null;} maximum number of elements in the array to check
 * @return {@code true} iff the exception type is <i>not</i> found
 */
private static boolean typeNotFound(Item item, Item[] arr, int count) {
    CstType type = item.getExceptionClass();

    for (int i = 0; i < count; i++) {
        CstType one = arr[i].getExceptionClass();
        if ((one == type) || (one == CstType.OBJECT)) {
            return false;
        }
    }

    return true;
}
 
Example 5
Source File: ByteCatchList.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the class of exception handled.
 *
 * @return {@code non-null;} the exception class; {@link CstType#OBJECT}
 * if this entry handles all possible exceptions
 */
public CstType getExceptionClass() {
    return (exceptionClass != null) ?
        exceptionClass : CstType.OBJECT;
}
 
Example 6
Source File: ByteCatchList.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the class of exception handled.
 *
 * @return {@code non-null;} the exception class; {@link CstType#OBJECT}
 * if this entry handles all possible exceptions
 */
public CstType getExceptionClass() {
    return (exceptionClass != null) ?
        exceptionClass : CstType.OBJECT;
}
 
Example 7
Source File: ByteCatchList.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the class of exception handled.
 *
 * @return {@code non-null;} the exception class; {@link CstType#OBJECT}
 * if this entry handles all possible exceptions
 */
public CstType getExceptionClass() {
    return (exceptionClass != null) ?
        exceptionClass : CstType.OBJECT;
}
 
Example 8
Source File: ByteCatchList.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the class of exception handled.
 *
 * @return {@code non-null;} the exception class; {@link CstType#OBJECT}
 * if this entry handles all possible exceptions
 */
public CstType getExceptionClass() {
    return (exceptionClass != null) ?
        exceptionClass : CstType.OBJECT;
}