public class MultipleStringLiteralsCheck extends Check
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
MultipleStringLiteralsCheck()
Construct an instance with default values.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
void |
finishTree(DetailAST aRootAST)
Called after finished processing a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
void |
setAllowedDuplicates(int aAllowedDuplicates)
Sets the maximum allowed duplicates of a string.
|
void |
setIgnoreOccurrenceContext(String[] aStrRep)
Adds a set of tokens the check is interested in.
|
void |
setIgnoreStringsRegexp(String aIgnoreStringsRegexp)
Sets regexp pattern for ignored strings.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
destroy, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public MultipleStringLiteralsCheck()
public void setAllowedDuplicates(int aAllowedDuplicates)
aAllowedDuplicates
- The maximum number of duplicates.public void setIgnoreStringsRegexp(String aIgnoreStringsRegexp)
aIgnoreStringsRegexp
- regexp pattern for ignored stringspublic final void setIgnoreOccurrenceContext(String[] aStrRep)
aStrRep
- the string representation of the tokens interested inpublic int[] getDefaultTokens()
Check
getDefaultTokens
クラス内 Check
TokenTypes
public void visitToken(DetailAST aAST)
Check
visitToken
クラス内 Check
aAST
- the token to processpublic void beginTree(DetailAST aRootAST)
Check
public void finishTree(DetailAST aRootAST)
Check
finishTree
クラス内 Check
aRootAST
- the root of the treeCopyright © 2001-2013. All Rights Reserved.