public abstract class AbstractNestedDepthCheck extends Check
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize| コンストラクタと説明 |
|---|
AbstractNestedDepthCheck(int aMax)
Creates new instance of checks.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
int |
getMax()
Getter for maximum allowed nesting depth.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
protected void |
nestIn(DetailAST aAST,
String aMessageId)
Increasing current nesting depth.
|
protected void |
nestOut()
Decreasing current nesting depth
|
void |
setMax(int aMax)
Setter for maximum allowed nesting depth.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitTokencalculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScoreconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic AbstractNestedDepthCheck(int aMax)
aMax - default allowed nesting depth.public final int[] getRequiredTokens()
CheckgetRequiredTokens クラス内 CheckTokenTypespublic void beginTree(DetailAST aRootAST)
Checkpublic final int getMax()
public final void setMax(int aMax)
aMax - maximum allowed nesting depth.protected final void nestIn(DetailAST aAST, String aMessageId)
aAST - note which increases nesting.aMessageId - message id for logging error.protected final void nestOut()
Copyright © 2001-2013. All Rights Reserved.