protected boolean isHandlerMethod(Method pMethod) { if (!Modifier.isPublic(pMethod.getModifiers())) { return false; // Ignore methods, which aren't public } if (Modifier.isStatic(pMethod.getModifiers())) { return false; // Ignore methods, which are static } if (!isVoidMethodEnabled() && pMethod.getReturnType() == void.class) { return false; // Ignore void methods. } if (pMethod.getDeclaringClass() == Object.class) { return false; // Ignore methods from Object.class } return true; }
protected boolean isHandlerMethod(Method pMethod) { if (!Modifier.isPublic(pMethod.getModifiers())) { return false; // Ignore methods, which aren't public } if (Modifier.isStatic(pMethod.getModifiers())) { return false; // Ignore methods, which are static } if (!isVoidMethodEnabled() && pMethod.getReturnType() == void.class) { return false; // Ignore void methods. } if (pMethod.getDeclaringClass() == Object.class) { return false; // Ignore methods from Object.class } return true; }
protected boolean isHandlerMethod(Method pMethod) { if (!Modifier.isPublic(pMethod.getModifiers())) { return false; // Ignore methods, which aren't public } if (Modifier.isStatic(pMethod.getModifiers())) { return false; // Ignore methods, which are static } if (!isVoidMethodEnabled() && pMethod.getReturnType() == void.class) { return false; // Ignore void methods. } if (pMethod.getDeclaringClass() == Object.class) { return false; // Ignore methods from Object.class } return true; }