com.puppycrawl.tools.checkstyle.checks.coding
Class MultipleStringLiteralsCheck
- Configurable, Contextualizable
public class MultipleStringLiteralsCheck
Checks for multiple occurrences of the same string literal within a
single file.
- Daniel Grenner
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 |
beginTree
public void beginTree(DetailAST aRootAST)
- beginTree in interface Check
finishTree
public void finishTree(DetailAST aRootAST)
- finishTree in interface Check
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
setAllowedDuplicates
public void setAllowedDuplicates(int aAllowedDuplicates)
Sets the maximum allowed duplicates of a string.
aAllowedDuplicates - The maximum number of duplicates.
visitToken
public void visitToken(DetailAST aAST)
- visitToken in interface Check