|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.sizes.OuterTypeNumberCheck
public class OuterTypeNumberCheck
Checks for the number of defined types at the "outer" level.
Constructor Summary | |
---|---|
OuterTypeNumberCheck()
|
Method Summary | |
---|---|
void |
beginTree(DetailAST aAst)
Called before the starting to process a tree. |
void |
finishTree(DetailAST aAst)
Called after finished processing a tree. |
int[] |
getDefaultTokens()
Returns the default token a check is interested in. |
void |
leaveToken(DetailAST aAst)
Called after all the child nodes have been process. |
void |
setMax(int aTo)
Sets the maximum allowed number of outer types. |
void |
visitToken(DetailAST aAst)
Called to process a token. |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
---|
destroy, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
---|
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
---|
configure, contextualize, finishLocalSetup, getConfiguration, setupChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OuterTypeNumberCheck()
Method Detail |
---|
public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public void beginTree(DetailAST aAst)
Check
beginTree
in class Check
aAst
- the root of the treepublic void finishTree(DetailAST aAst)
Check
finishTree
in class Check
aAst
- the root of the treepublic void visitToken(DetailAST aAst)
Check
visitToken
in class Check
aAst
- the token to processpublic void leaveToken(DetailAST aAst)
Check
leaveToken
in class Check
aAst
- the token leavingpublic void setMax(int aTo)
aTo
- the new number.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |