/** * Finds the method with the given name and descriptor in the given * class or its hierarchy. The name and descriptor may contain wildcards. */ public Method findMethod(Clazz clazz, String name, String descriptor) { return findMethod(null, clazz, name, descriptor); }
/** * Finds the method with the given name and descriptor in the given * class or its hierarchy. The name and descriptor may contain wildcards. */ public Method findMethod(Clazz clazz, String name, String descriptor) { return findMethod(null, clazz, name, descriptor); }
/** * Finds the method with the given name and descriptor in the given * class or its hierarchy. The name and descriptor may contain wildcards. */ public Method findMethod(Clazz clazz, String name, String descriptor) { return findMethod(null, clazz, name, descriptor); }
/** * Returns whether an accessor method is needed to access * the invoked method from the lambda class. */ public boolean needsAccessorMethod() { // We assume unknown classes don't need an accessor method. return referencedInvokedClass != null && new MemberFinder().findMethod(lambdaClass, referencedInvokedClass, invokedMethodName, invokedMethodDesc) == null; }
/** * Returns whether an accessor method is needed to access * the invoked method from the lambda class. */ public boolean needsAccessorMethod() { // We assume unknown classes don't need an accessor method. return referencedInvokedClass != null && new MemberFinder().findMethod(lambdaClass, referencedInvokedClass, invokedMethodName, invokedMethodDesc) == null; }
/** * Returns whether an accessor method is needed to access * the invoked method from the lambda class. */ public boolean needsAccessorMethod() { // We assume unknown classes don't need an accessor method. return referencedInvokedClass != null && new MemberFinder().findMethod(lambdaClass, referencedInvokedClass, invokedMethodName, invokedMethodDesc) == null; }