Code example for Method

Methods: getModifiers, getReturnType

0
    } 
    return result;
  } 
 
  private boolean isPublicVoidMethod(Method method) {
    return Modifier.isPublic(method.getModifiers()) && method.getReturnType().equals(Void.TYPE);
  } 
 
  public List<Method> getPublicVoidMethods() {
    return publicVoidMethods;
  } 
 
  public void setPublicVoidMethods(List<Method> publicVoidMethods) {
    this.publicVoidMethods = publicVoidMethods;
  } 
}