com.puppycrawl.tools.checkstyle.checks.naming
Class LocalFinalVariableNameCheck
- Configurable, Contextualizable
public class LocalFinalVariableNameCheck
Checks that local final 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="LocalFinalVariableName"/>
An example of how to configure the check for names that are only upper case
letters and digits is:
<module name="LocalFinalVariableName">
<property name="format" value="^[A-Z][A-Z0-9]*$"/>
</module>
Version:
- Rick Giles
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
LocalFinalVariableNameCheck
public LocalFinalVariableNameCheck()
Creates a new LocalFinalVariableNameCheck
instance.
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check