public final class MethodCountCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions| Modifier and Type | Field and Description |
|---|---|
static String |
MSG_MANY_METHODS
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_PACKAGE_METHODS
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_PRIVATE_METHODS
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_PROTECTED_METHODS
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_PUBLIC_METHODS
A key is pointing to the warning message text in "messages.properties"
file.
|
| Constructor and Description |
|---|
MethodCountCheck() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
leaveToken(DetailAST ast)
Called after all the child nodes have been process.
|
void |
setMaxPackage(int value)
Sets the maximum allowed
package methods per type. |
void |
setMaxPrivate(int value)
Sets the maximum allowed
private methods per type. |
void |
setMaxProtected(int value)
Sets the maximum allowed
protected methods per type. |
void |
setMaxPublic(int value)
Sets the maximum allowed
public methods per type. |
void |
setMaxTotal(int value)
Sets the maximum total methods per type.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
beginTree, clearMessages, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildpublic static final String MSG_PRIVATE_METHODS
public static final String MSG_PACKAGE_METHODS
public static final String MSG_PROTECTED_METHODS
public static final String MSG_PUBLIC_METHODS
public static final String MSG_MANY_METHODS
public MethodCountCheck()
public int[] getDefaultTokens()
AbstractCheckgetDefaultTokens in class AbstractCheckTokenTypespublic int[] getAcceptableTokens()
AbstractCheckgetAcceptableTokens in class AbstractCheckTokenTypespublic int[] getRequiredTokens()
AbstractCheckgetRequiredTokens in class AbstractCheckTokenTypespublic void visitToken(DetailAST ast)
AbstractCheckvisitToken in class AbstractCheckast - the token to processpublic void leaveToken(DetailAST ast)
AbstractCheckleaveToken in class AbstractCheckast - the token leavingpublic void setMaxPrivate(int value)
private methods per type.value - the maximum allowed.public void setMaxPackage(int value)
package methods per type.value - the maximum allowed.public void setMaxProtected(int value)
protected methods per type.value - the maximum allowed.public void setMaxPublic(int value)
public methods per type.value - the maximum allowed.public void setMaxTotal(int value)
value - the maximum allowed.Copyright © 2001–2018. All rights reserved.