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. A catch parameter is considered to be
a local variable.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>
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity |
LocalFinalVariableNameCheck
public LocalFinalVariableNameCheck()
Creates a new LocalFinalVariableNameCheck instance.