Class MemberNameCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class MemberNameCheck
    extends AbstractAccessControlNameCheck

    Checks that instance variable names conform to a format specified by the format property. The format is a regular expression and defaults to ^[a-z][a-zA-Z0-9]*$.

    An example of how to configure the check is:

     <module name="MemberName"/>
     

    An example of how to configure the check for names that begin with "m", followed by an upper case letter, and then letters and digits is:

     <module name="MemberName">
        <property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
     </module>
     
    Author:
    Rick Giles