public JavaMethodDesc lookupMethod(String name, boolean onlyStatic) { return onlyStatic ? lookupStaticMethod(name) : lookupMethod(name); }
@CompilerDirectives.TruffleBoundary static JavaMethodDesc findMethod(Class<?> clazz, String name, boolean onlyStatic) { if (TruffleOptions.AOT) { return null; } JavaClassDesc classDesc = JavaClassDesc.forClass(clazz); JavaMethodDesc foundMethod = classDesc.lookupMethod(name, onlyStatic); if (foundMethod == null && isJNIName(name)) { foundMethod = classDesc.lookupMethodByJNIName(name, onlyStatic); } return foundMethod; }
JavaMethodDesc foundMethod = classDesc.lookupMethod(name, onlyStatic); if (foundMethod != null) { readable = true;