/** * Performs a binary search for the definition of the specified direct method * @param methodIdItem The MethodIdItem of the direct method to search for * @return The EncodedMethod for the specified direct method, or null if not found */ public EncodedMethod findDirectMethodByMethodId(MethodIdItem methodIdItem) { return findMethodByMethodIdInternal(methodIdItem.index, directMethods); }
/** * Performs a binary search for the definition of the specified method. It can be either direct or virtual * @param methodIdItem The MethodIdItem of the virtual method to search for * @return The EncodedMethod for the specified virtual method, or null if not found */ public EncodedMethod findMethodByMethodId(MethodIdItem methodIdItem) { EncodedMethod encodedMethod = findMethodByMethodIdInternal(methodIdItem.index, directMethods); if (encodedMethod != null) { return encodedMethod; } return findMethodByMethodIdInternal(methodIdItem.index, virtualMethods); }
/** * Performs a binary search for the definition of the specified virtual method * @param methodIdItem The MethodIdItem of the virtual method to search for * @return The EncodedMethod for the specified virtual method, or null if not found */ public EncodedMethod findVirtualMethodByMethodId(MethodIdItem methodIdItem) { return findMethodByMethodIdInternal(methodIdItem.index, virtualMethods); }
/** * Performs a binary search for the definition of the specified method. It can be either direct or virtual * @param methodIdItem The MethodIdItem of the virtual method to search for * @return The EncodedMethod for the specified virtual method, or null if not found */ public EncodedMethod findMethodByMethodId(MethodIdItem methodIdItem) { EncodedMethod encodedMethod = findMethodByMethodIdInternal(methodIdItem.index, directMethods); if (encodedMethod != null) { return encodedMethod; } return findMethodByMethodIdInternal(methodIdItem.index, virtualMethods); }