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, setTokens
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
public 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()
AbstractCheck
getDefaultTokens
in class AbstractCheck
TokenTypes
public int[] getAcceptableTokens()
AbstractCheck
getAcceptableTokens
in class AbstractCheck
TokenTypes
public int[] getRequiredTokens()
AbstractCheck
getRequiredTokens
in class AbstractCheck
TokenTypes
public void visitToken(DetailAST ast)
AbstractCheck
visitToken
in class AbstractCheck
ast
- the token to processpublic void leaveToken(DetailAST ast)
AbstractCheck
leaveToken
in class AbstractCheck
ast
- 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.