title: How to check for Java class member order
body: <p>We're are using PMD and Checkstyle (from developers IDE and central CI server) to check code to our coding conventions.</p>
  
  <p>I was expecting for these tools to provide a rule that checks for class members order but they don't seem to have one.</p>
  
  <p>By class member order I mean something like:</p>
  
  <pre><code>public static properties
  public properties
  protected properties
  private properties
  
  public constructors
  protected constructors
  private constructors
  
  static methods
  
  non-static methods
  </code></pre>
  
  <p>I could certainly write my own PMD rule but I'm not used of it and would prefer not reinventing the wheel.</p>
  
  <p>Do you know any tool that could do this kind of checks for us?</p>